StackStorm / StackStorm/st2

pack install does not unload pack pre-flight

Open
#3,143 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement status:under discussion
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Hi guys,

as far as i can see, nobody created an issue for this topic.

When installing a new pack, stackstorm does not unload the pack, before or after pulling it from github, as it did in 2.0.
In consequence you end up having action, rules and sensors listed with dead links.

How to reproduce:

  • create a pack and action test.action1
  • st2 pack install
  • rename the action to test.action2 in yaml file
  • install pack
  • invalid action test.action1 should be listed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with st2 pack install: create test.action1, rename it to test.action2 in the pack YAML, and install the pack again. Trace the pack-install flow to determine where unloading is handled, then verify that the old action, rules, and sensors no longer appear with dead links.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.