StackStorm / st2packs-dockerfiles

Source for st2packs-builder and st2packs-runner images
3 stars 20 forks source link

custom pack doesn't run on Stackstorm v3.2.0 #20

Open jackaddteq opened 4 years ago

jackaddteq commented 4 years ago

We built a custom pack docker image from stackstorm/st2packs (https://hub.docker.com/r/stackstorm/st2packs). Then we integrate that customized image into Stackstorm HA helm chart v3.2.0. When running actions from the custom pack, getting this error. "/opt/stackstorm/virtualenvs/captain/bin/python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by /opt/stackstorm/virtualenvs/captain/bin/python)"

it appears that stackstorm/st2packs image is on Ubuntu 18.04.4. StackStorm v3.2.0 is running on Ubunto 16.0.4. Due to the ubunto version diff, the above error occurs.

stackstorm/st2packs has 2 tags: builder, runtime. It doesn't have tag in versions so we can go back to older version. How can we get stackstorm/st2pack image on ubuntu 16.0.4 and python3 on it because our pack is written in python3 ?

Thanks

arm4b commented 4 years ago

Yes, your issue is related to py2 vs py3 environment issues.

About 2 months ago stackstorm-ha Helm chart migrated from python 2 + Ubuntu Xenial to python 3 + Ubuntu Bionic in https://github.com/StackStorm/stackstorm-ha/releases/tag/v0.30.0 release. This transition was also associated with switching from 3.2dev to 3.3dev Docker images. Keep in mind that stacksrtorm-ha is still in beta state and more breaking changes are expected. As platform is supported by several folks during their free time, but used by a dozen of Fortune 100 companies, we would love to get more support from our community and involvement in helping with the development and maintenance.

In this scenario we recommend switching to python 3 and latest st2 version as stackstorm-ha pins it. If you can't, as a workaround to your specific issue you can use the 3.2dev in st2packs-dockerfiles: https://github.com/StackStorm/st2packs-dockerfiles/blob/32d20cc1ae0e014b658c419a81fed7e32a15f99a/st2packs-builder/Dockerfile#L1