python_libjuju destroy model with --force doesn't clean-up instances when using openstack provider
Bug #1913418 reported by
Alex Kavanagh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When destroy models (particularly when using --force) on the openstack provider, juju leaves instances running / doesn't clean up after itself.
This is so repeatable that we are implementing a work-around in zaza: https:/
(It reaps instances on - almost - every single CI run).
We think this might be due to errored units or something similar. We don't really care whether a unit errors out as the model is being destroyed. We'd really like a --just-kill-it type option which literally just removes the instances / storage / network ports, and doesn't try to run any hooks to tear down the model.
To post a comment you must log in.
As an additional note, I've noticed that the problem might be that if "--destroy-storage" (and the equivalent to python_libjuju destroy_model()) isn't used then the instances don't get reaped. If it is used, then the instances are reaped. This isn't definitive, just an observation.