-
-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependent pack installation with "st2 pack install <pack>" #3336
Comments
st2 pack install <pack>
+:100: |
+1 |
What about something like this: https://github.com/mickmcgrath13/bitovi_packs ? |
@mickmcgrath13 that looks cool!!! mind creating a PR to implement that in the |
I tried making my own pack that leverages the vSphere pack; when I try to run an action or workflow in the vSphere pack from my own pack, it fails claiming |
@jeking3 if you have a workflow that calls an action in another pack - e.g. with This is standard functionality, and something I've done plenty of times, and it has always worked for me. If it's not working for you, then something else is going on. Probably worth posting on the support forum |
You are correct - I mistook the inventory not found error message for a class not found message. Thanks. |
Ah cool. Was worried something else was going on. |
My Use case: I have a custom internal pack that acts as a collection of my workflows and rules. One of those rules depends on a trigger in the Having a pack dependency of |
Copy https://github.com/StackStorm/discussions/issues/354 discussion to here: Requirements:
Configuration for pack dependencies:Pack dependency should be configured in pack and it will be saved to
Design for Pack dependency managementAdd new actions to
m4dcoder commented 4 days ago • @jinpingh @armab How do we plan to install nested dependencies? Get list of dependency packs that need to be installed after pack is successfully installed. I believe more correct implementation would be to get the pack dependencies installed first, because during the pack registration if pack_a tries to register content (say rules) that relies on ref.pack_b it won't pass validation before pack_b content is available. armab commented 2 hours ago • Installing new version by default when specific pack pins older version, while another pack pins specific newer version could be disastrous for production systems. Remember the case with our st2cicd server when we pin every st2 pack version and updating aws pack version from very old to new automatically would break workflows. Would be nice to take ideas from other package managers. WDYT? @jinpingh @armab For dependency, from my point of view, we have to set up certain dependency rules. For example, if pack A dependency as: A->B->C, pack C dependency as: C->D->A. How to deal with it special if the pack dependencies installed first? @jinpingh Good point! armab commented 14 minutes ago • See https://en.wikipedia.org/wiki/Dependency_hell which lists some of the recommendations and also highlights question that @m4dcoder raised. From that link interesting point: Solutions ^^ That's a good idea of relying on versioning when doing any automated upgrades/dependency hell resolution and good stuff that will also encourage everyone to use correct semantic versioning, when "major version" should be always incremented when breaking changes were introduced. Right now contributors usually incorrectly bumping minor version X.Y.Z on breaking changes, instead of X.Y.Z major version. Please copy entire discussion to open Github Issue #3336 to allow community give feedback as well. |
Any thoughts on leveraging any existing package management systems to handle our dependencies? I know this would be a big change, but could we potentially use something like Same could be said for doing it with RPM/DEB. Bonus here is that we could have RPMs/DEBs depend on system level packages for things that require those pieces. All of the points above are great points and my general question is: "Do we want to solve the problem ourselves, or piggy-back on an existing solution?" For these scenarios i love a pros/cons list:
|
cc @mickmcgrath13 you might be interested as well ^^ |
A lot of work is going on in the content-packaging realm with ansible/mazer as well. |
Enhancement Request:
It would be good to if
st2 pack install <pack1>
could check for other pack dependencies for pack1 - say pack2, pack3 and implicitly also install them.Example: If I create a custom pack eg. vslx and then pack uses actions from ansible pack (available in stackstorm exchange), then as part of the pack installation process for vslx, ansible pack can also be installed. The pack requirements can possibly be provided in the a file
pack_requirements
or any other better way of identification.The text was updated successfully, but these errors were encountered: