Kubernetes-HA: Unable to install packs #5615
Answered
by
arm4b
sanjayh94
asked this question in
Operations
-
Installed stackstorm in a GCP cluster using the HA helm chart and tried installing the supplied packs but all of them fail in the "install_pack_requirements" phase. I tried using the Web UI and the CLI client. Tried installing different packs without any success. root@stackstorm-dev-st2client-549c876b54-4s96m:/opt/stackstorm# st2 pack install splunk
For the "splunk" pack, the following content will be registered:
actions | 3
rules | 0
sensors | 0
aliases | 1
triggers | 0
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: 624db5ef14383ecef69d6248
action.ref: packs.install
parameters:
packs:
- splunk
status: failed
start_timestamp: Wed, 06 Apr 2022 15:46:55 UTC
end_timestamp: Wed, 06 Apr 2022 15:47:04 UTC
log:
- status: requested
timestamp: '2022-04-06T15:46:55.895000Z'
- status: scheduled
timestamp: '2022-04-06T15:46:56.032000Z'
- status: running
timestamp: '2022-04-06T15:46:56.690000Z'
- status: failed
timestamp: '2022-04-06T15:47:04.656000Z'
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 "splunk" (None)
Traceback (most recent call last):
File "/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py", line 395, in <module>
obj.run()
File "/opt/stackstorm/st2/lib/python3.6/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 98, in run
no_download=no_download,
File "/opt/stackstorm/st2/lib/python3.6/site-packages/st2common/util/virtualenvs.py", line 89, in setup_pack_virtualenv
raise Exception(msg)
Exception: Pack "splunk" is not installed. Looked in: /opt/stackstorm/packs
"
stdout: ''
task_id: install_pack_requirements
type: error
output:
conflict_list: []
message: ''
packs_list:
- splunk
warning_list: null
+--------------------------+------------------------+------------------------------------+-----------------------------+-------------------------------+
| id | status | task | action | start_timestamp |
+--------------------------+------------------------+------------------------------------+-----------------------------+-------------------------------+
| 624db5f1815f8882e6eac802 | succeeded (0s elapsed) | init_task | core.noop | Wed, 06 Apr 2022 15:46:57 UTC |
| 624db5f2815f8882e6eac811 | succeeded (2s elapsed) | download_pack | packs.download | Wed, 06 Apr 2022 15:46:58 UTC |
| 624db5f4815f8882e6eac820 | succeeded (1s elapsed) | make_a_prerun | packs.virtualenv_prerun | Wed, 06 Apr 2022 15:47:00 UTC |
| 624db5f5815f8882e6eac82f | succeeded (1s elapsed) | get_pack_dependencies | packs.get_pack_dependencies | Wed, 06 Apr 2022 15:47:01 UTC |
| 624db5f7815f8882e6eac83e | succeeded (0s elapsed) | check_dependency_and_conflict_list | core.noop | Wed, 06 Apr 2022 15:47:03 UTC |
| 624db5f7815f8882e6eac84d | failed (1s elapsed) | install_pack_requirements | packs.setup_virtualenv | Wed, 06 Apr 2022 15:47:03 UTC |
+--------------------------+------------------------+------------------------------------+-----------------------------+-------------------------------+ |
Beta Was this translation helpful? Give feedback.
Answered by
arm4b
Apr 7, 2022
Replies: 1 comment 2 replies
-
Check this documentation: https://github.com/StackStorm/stackstorm-k8s#install-custom-st2-packs-in-the-cluster |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
sanjayh94
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this documentation: https://github.com/StackStorm/stackstorm-k8s#install-custom-st2-packs-in-the-cluster
In short, there are 2 approaches for pack/content management with the st2 K8s HA model and you might need a bit more work to ship the packs in your ST2 cluster.