juju using Openstack provider does not remove security groups on remove-machine after a failed provisioning
Bug #1940637 reported by
Gareth Woolridge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Committed
|
High
|
Simon Richardson | ||
2.9 |
Fix Released
|
Undecided
|
Simon Richardson | ||
3.0 |
Fix Released
|
Undecided
|
Simon Richardson |
Bug Description
When using the Openstack provider on juju 2.8.9 controller/model we hit an Openstack quota issue which caused add-unit to fail with instances stuck in error state.
We removed the machines eg juju remove-machine --force but observed that openstack security groups pertaining to those instances were not removed. This meant after bumping instance quota and trying again we hit the same issue due to being at secgroup quota limit.
It was necessary to remove the security groups manually with openstack security group delete ....
Expected outcome: juju should tidyup after itself wrt secgroups.
Changed in juju: | |
milestone: | 2.9-next → 3.1-beta1 |
Changed in juju: | |
assignee: | nobody → Simon Richardson (simonrichardson) |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 3.1-beta1 → 3.1-rc1 |
Changed in juju: | |
milestone: | 3.1-rc1 → 3.1-rc2 |
Changed in juju: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Is this happening if you also just 'juju remove-machine' without '--force' ?
What is the underlying error state, is the issue that the machine never came up, or it did come up but then ended up hanging after a while with an error.
Certainly we shouldn't be leaking security groups as a general case. And we should be trying to clean them up even with '--force'. It does mean that if we fail to clean them up, likely '--force' will still progress the removal of the rest of the machine information because you asked us to.
However, if any 'juju remove-machine' leaks a security group, that is definitely something we should be fixing. I also wonder if 'force' makes us progress faster, and that leaves us hitting something like "cannot remove security group because it is still in use".