-
Notifications
You must be signed in to change notification settings - Fork 392
Destroy command deletes all similar images of other projects too #944
Comments
@matteotanca-sardex to make process more quickier - would you mind preparing workable POC either in form of gist or repo using public roles only ? |
https://github.com/matteotanca-sardex/ac-bug-944-poc I've included a log for the destroy output. After building the two projects, try to destroy one of them. It will destroy the images of other project too. |
@matteotanca-sardex Thank you for your efforts and input! |
Confirmed
running destroy in any subfolder generates excessive removal playbook
|
I changed the title, in this case, there is only one role, identical for both projects, and all images are deleted if you destroy one project. The docker layer for the executed role is the same so it deletes all images. If you try to put a var in the rule and change the value of the var, like var=site1 for the first project and var=site2 for the second, only conductor images are deleted for all similar projects if you destroy one of them. However without conductor you need to rebuild all of them to be able to run them. The docker layer for the rule is a little bit different so are the created images. https://github.com/matteotanca-sardex/ac-bug-944-poc find the branch withvars I guess all commands, run, build, destroy, should work with project name as namespace. Thanks for your work! |
Addressed in #950 |
I'm using sa-ansible-container and I can confirm this is solved. |
container.yml
OS / ENVIRONMENT
SUMMARY
After building those two container.yml, if I destroy one project, both projects conductors are deleted so I have to rebuild both.
STEPS TO REPRODUCE
EXPECTED RESULTS
I expect that destroy command doesn't destroy other projects images.
ACTUAL RESULTS
Both conductors, site1-conductor and site2-conductor images are deleted.
The text was updated successfully, but these errors were encountered: