weixin_39634132 2020-11-29 13:32
浏览 0

undertaker: Remove model if cloud-destroy fails and --force is specified

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

  • 写回答

5条回答 默认 最新

  • weixin_39634132 2020-11-29 13:32
    关注

    !!build!! Build job couldn't get to github.

    评论

报告相同问题?