juju destroy-model --force spins forever on k8s model with persistent storage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Attempting to destroy-model --force on a k8s model with persistent storage spins forever:
juju destroy-model discourse --force
WARNING! This command will destroy the "discourse" model.
This includes all containers, applications, data and other resources.
Continue [y/N]? y
Destroying model
Waiting for model to be removed, 1 application(s), 1 volume(s), 1 filesystems(
However checking juju debug-log -m controller:
controller-0: 14:33:24 WARNING juju.apiserver.
So list storages, and try to delete manually:
juju list-storage
Unit Storage id Type Pool Size Status Message
discourse-charm/0 discourse-storage/0 filesystem kubernetes 48MiB attached Successfully provisioned volume pvc-60ba8b8b-
juju remove-storage discourse-storage/0
ERROR Juju command "remove-storage" not supported on kubernetes models
At this point I asked in #juju and hml suggested --destroy-storage:
juju destroy-model discourse --destroy-storage
WARNING! This command will destroy the "discourse" model.
This includes all containers, applications, data and other resources.
Continue [y/N]? y
Destroying model
Waiting for model to be removed, 1 application(s), 1 volume(s), 1 filesystems(s).....
Waiting for model to be removed, 1 application(
Waiting for model to be removed......
Model destroyed.
So this works. I can't quite recall why I was using --force, likely as iterating on a new operator charm and needing to kick broken units/models harder on destroy before I added storage to the charm.
Anyway, this feel bug worthy on feedback from --force from an end user perspective if using with k8s and storage, as it spins forever with no feedback of an issue unless you know to look in the controller logs.
description: | updated |
Changed in juju: | |
milestone: | none → 2.8-rc1 |
importance: | Undecided → High |
status: | New → Triaged |
Changed in juju: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 2.8-rc1 → 2.8.1 |
Changed in juju: | |
milestone: | 2.8.1 → 2.8.2 |
Changed in juju: | |
milestone: | 2.8.2 → 2.8.3 |
Changed in juju: | |
milestone: | 2.8.4 → 2.8.5 |
Changed in juju: | |
status: | New → Triaged |
assignee: | Ian Booth (wallyworld) → nobody |
Changed in juju: | |
milestone: | 2.8.5 → 2.8.6 |
Changed in juju: | |
milestone: | 2.8.6 → 2.8-next |
Even on non-k8s, this fails to destroy a model with storage:
| jenkins@ juju-59050e- is-mojo- ci-0:~$ juju storage c9ba-48bb- 8521-a7c2bd680e 0a 100GiB detached
| Unit Storage id Volume id Provider Id Size State Message
| 0 e7a329f5-