-
Notifications
You must be signed in to change notification settings - Fork 19
Description
in docker
root@3f26f6521096:/opt/stackstorm# st2 pack install zabbix
For the "zabbix" pack, the following content will be registered:
actions | 18
rules | 0
sensors | 0
aliases | 0
triggers | 1
Installation may take a while for packs with many items.
[ succeeded ] init_task
[ succeeded ] download_pack
[ succeeded ] make_a_prerun
[ succeeded ] get_pack_dependencies
[ succeeded ] check_dependency_and_conflict_list
[ failed ] install_pack_requirements
id: 647d6cc36e9d2a0bc9df9ceb
action.ref: packs.install
parameters:
packs:
- zabbix
status: failed
start_timestamp: Mon, 05 Jun 2023 05:04:03 UTC
end_timestamp: Mon, 05 Jun 2023 05:05:33 UTC
log: - status: requested
timestamp: '2023-06-05T05:04:03.111000Z' - status: scheduled
timestamp: '2023-06-05T05:04:03.190000Z' - status: running
timestamp: '2023-06-05T05:04:03.212000Z' - status: failed
timestamp: '2023-06-05T05:05:34.020000Z'
result:
errors: -
message: Execution failed. See result for details.
result:
exit_code: 1
result: None
stderr: "st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "zabbix" (/opt/stackstorm/packs/zabbix)
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/zabbix"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv successfully removed.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "zabbix" in "/opt/stackstorm/virtualenvs/zabbix"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/zabbix" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy --verbose --no-download /opt/stackstorm/virtualenvs/zabbix" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing requirement six>=1.9.0,<2.0 with command /opt/stackstorm/virtualenvs/zabbix/bin/pip install six>=1.9.0,<2.0.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing pack specific requirements from "/opt/stackstorm/packs/zabbix/requirements.txt"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing requirements from file /opt/stackstorm/packs/zabbix/requirements.txt with command /opt/stackstorm/virtualenvs/zabbix/bin/pip install -U -r /opt/stackstorm/packs/zabbix/requirements.txt.
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 395, in
obj.run()
File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 214, in run
output = action.run(**self.parameters)
File "/opt/stackstorm/packs/packs/actions/pack_mgmt/setup_virtualenv.py", line 93, in run
setup_pack_virtualenv(
File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/virtualenvs.py", line 133, in setup_pack_virtualenv
install_requirements(
File "/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/virtualenvs.py", line 301, in install_requirements
raise Exception(
Exception: Failed to install requirements from "/opt/stackstorm/packs/zabbix/requirements.txt": Collecting py-zabbix==1.1.3
Using cached py_zabbix-1.1.3-py2.py3-none-any.whl (12 kB)
Collecting pytz
Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting st2client
Using cached st2client-3.8.0-py3-none-any.whl (184 kB)
Using cached st2client-3.7.0.tar.gz (114 kB)
Using cached st2client-3.6.0.post0.tar.gz (111 kB)
Using cached st2client-3.5.0.tar.gz (111 kB)
Using cached st2client-3.4.1.tar.gz (106 kB)
Using cached st2client-3.4.0.tar.gz (106 kB)
Using cached st2client-3.3.0.tar.gz (104 kB)
Using cached st2client-3.2.0.tar.gz (104 kB)
Using cached st2client-3.1.0.tar.gz (103 kB)
(stderr: ERROR: Command errored out with exit status 1:
command: /opt/stackstorm/virtualenvs/zabbix/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-giqc4a0x/st2client_6df651eb0fcd4217881f12762d351d40/setup.py'"'"'; file='"'"'/tmp/pip-install-giqc4a0x/st2client_6df651eb0fcd4217881f12762d351d40/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)_file);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bsy83z13
cwd: /tmp/pip-install-giqc4a0x/st2client_6df651eb0fcd4217881f12762d351d40/
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-giqc4a0x/st2client_6df651eb0fcd4217881f12762d351d40/setup.py", line 32, in
install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)
File "/tmp/pip-install-giqc4a0x/st2client_6df651eb0fcd4217881f12762d351d40/dist_utils.py", line 88, in fetch_requirements
reqs.append(str(req.req))
AttributeError: 'ParsedRequirement' object has no attribute 'req'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.3.3; however, version 23.1.2 is available.
You should consider upgrading via the '/opt/stackstorm/virtualenvs/zabbix/bin/python -m pip install --upgrade pip' command.
)
"
stdout: ''
task_id: install_pack_requirements
type: error
output:
conflict_list: []
message: ''
packs_list:
- zabbix
warning_list: null
+--------------------------+------------------------+-------------------+-------------------+-----------------+
| id | status | task | action | start_timestamp |
+--------------------------+------------------------+-------------------+-------------------+-----------------+
| 647d6cc3f9d90c91f3d12318 | succeeded (0s elapsed) | init_task | core.noop | Mon, 05 Jun |
| | | | | 2023 05:04:03 |
| | | | | UTC |
| 647d6cc3f9d90c91f3d12328 | succeeded (6s elapsed) | download_pack | packs.download | Mon, 05 Jun |
| | | | | 2023 05:04:03 |
| | | | | UTC |
| 647d6cc9f9d90c91f3d12338 | succeeded (0s elapsed) | make_a_prerun | packs.virtualenv_ | Mon, 05 Jun |
| | | | prerun | 2023 05:04:09 |
| | | | | UTC |
| 647d6cc9f9d90c91f3d12348 | succeeded (1s elapsed) | get_pack_dependen | packs.get_pack_de | Mon, 05 Jun |
| | | cies | pendencies | 2023 05:04:09 |
| | | | | UTC |
| 647d6ccaf9d90c91f3d12358 | succeeded (0s elapsed) | check_dependency_ | core.noop | Mon, 05 Jun |
| | | and_conflict_list | | 2023 05:04:10 |
| | | | | UTC |
| 647d6ccaf9d90c91f3d12368 | failed (83s elapsed) | install_pack_requ | packs.setup_virtu | Mon, 05 Jun |
| | | irements | alenv | 2023 05:04:10 |
| | | | | UTC |
+--------------------------+------------------------+-------------------+-------------------+-----------------+