st2 icon indicating copy to clipboard operation
st2 copied to clipboard

when i exec "st2 packs install a" ,but b was installed!!!!why?

Open OMS-ZH opened this issue 2 years ago • 4 comments

SUMMARY

when i exec "st2 packs install a" ,but b was installed!

STACKSTORM VERSION

Paste the output of st2 --version:

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 -->

Steps to reproduce the problem

1.st2 pack install file:///opt/stackstorm/packs/sre_publish_handle when i exec "st2 packs install a" ,but b was installed! 企业微信截图_16911139138419

2.sre_publish_handle/packs.yml ref="sre_publish_handle" 企业微信截图_16911134613219

3.sre_alarm_handle/packs.yml ref="sre_alarm_handle" 企业微信截图_16911136107692 4.st2 pack list the sre_publish_handle was in pack list 企业微信截图_16911139729942 5. ls -al virtualenvs i can`t find the documen that name is "sre_publish_handle" whit in virtualenvs 企业微信截图_1691114017337

Expected Results

i think the pack of sre_pubish_handle should be installed finally. but i don`t know why......

OMS-ZH avatar Aug 04 '23 02:08 OMS-ZH

the version is: st2 3.8.0, on Python 3.8.10

OMS-ZH avatar Aug 04 '23 02:08 OMS-ZH

I think if your application package is written correctly and you put it in /opt/stackstorm/packs/, it will be installed when you execute st2 reload.

chain312 avatar Aug 08 '23 19:08 chain312

I think if your application package is written correctly and you put it in /opt/stackstorm/packs/, it will be installed when you execute st2 reload.

yes, when i execute st2 reload, the pack that in /opt/stackstorm/packs will be install,but the virtual environment doesn`t be created.so i need use "st2 packs install file://xxxx" to install packs

OMS-ZH avatar Aug 09 '23 02:08 OMS-ZH

yes, when i execute st2 reload, the pack that in /opt/stackstorm/packs will be install,but the virtual environment doesn`t be created.so i need use "st2 packs install file://xxxx" to install packs

you can also execute packs.setup_virtualenv. I do this in a orquesta workflow with newly created packs. I create template yaml files > packs.load > packs.setup_virtualenv > python script to add to RBAC > sudo st2-apply-rbac-definitions

fdrab avatar Aug 09 '23 04:08 fdrab