Skip to content

ImportError: No module named st2common.util.shell when run linux.service #5004

@dove-young

Description

@dove-young

SUMMARY

Provide a quick summary of your bug report.

st2 run linux.service service=mongod act=restart hosts=agentavtone-worker1
...
id: 5f191803f06137c07014deb3
action.ref: linux.service
context.user: st2admin
parameters:
  act: restart
  hosts: agentavtone-worker1
  service: mongod
status: failed
start_timestamp: Thu, 23 Jul 2020 04:54:27 UTC
end_timestamp: Thu, 23 Jul 2020 04:54:33 UTC
result:
  agentavtone-worker1:
    failed: true
    return_code: 1
    stderr: "0: 2 windows (created Thu Jul  9 00:06:22 2020)
1: 1 windows (created Tue Jul 21 20:58:59 2020)
Traceback (most recent call last):
  File "/tmp/5f191803f06137c07014deb2/service.py", line 23, in <module>
    from st2common.util.shell import quote_unix
ImportError: No module named st2common.util.shell"
    stdout: ''
    succeeded: false

STACKSTORM VERSION

Paste the output of st2 --version:

st2 3.2.0, on Python 2.7.5

OS, environment, install method

Post what OS you are running this on, along with any other relevant information/

  • e.g. Docker, Vagrant, Kubernetes, etc. Describe how you installed ST2
  • e.g. one-line install, custom install, etc -->

one-line install

Steps to reproduce the problem

Show how to reproduce the problem, using a minimal test-case. Make sure to include any content
(pack content - workflows, actions, etc.) which are needed to reproduce the problem.

Expected Results

What did you expect to happen when running the steps above?

Actual Results

What happened? What output did you get?

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions