Description of change
There are various situations that might cause the undertaker's Destroy() call to fail - examples we've seen include kubernetes not being available or problems with other clouds. If the user has specified --force on the destroy-model command we should remove the model in spite of those errors.
QA steps
- Bootstrap a controller and add a k8s to it.
- Create a k8s model.
- Stop the k8s instance.
- Destroy the model - the model will hang around and the undertaker will log errors about not being able to destroy it in k8x.
- Force-destroy the model - it should get removed successfully.
Documentation changes
None
Bug reference
https://bugs.launchpad.net/juju/+bug/1830216 https://bugs.launchpad.net/juju/+bug/1828870 https://bugs.launchpad.net/juju/+bug/1829423
该提问来源于开源项目:juju/juju