pack install does not unload pack pre-flight
Open
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.action2in yaml file - install pack
- invalid action
test.action1should be listed
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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