Destroying model fails initially, but works a second time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Yang Kelvin Liu |
Bug Description
I tried to destroy a model, and it initially failed:
$ juju destroy-model kubeflow --yes --destroy-storage --force
Destroying model
Waiting for model to be removed, 6 application(s), 2 volume(s), 2 filesystems(s)....
Waiting for model to be removed, 2 volume(s), 2 filesystems(
If I wait longer, I just get more dots. However, cancelling the first operation and rerunning it works:
$ juju destroy-model kubeflow --yes --destroy-storage --force
Destroying model
Waiting for model to be removed, 2 volume(s), 2 filesystems(s)...
Waiting for model to be removed.
Model destroyed.
juju debug-log shows a bunch of errors like this for each application during the failed model destruction, and no errors during the successful destruction:
application-foo: 10:30:05 ERROR juju.worker.
Changed in juju: | |
milestone: | none → 2.7-beta1 |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.6.7 → 2.6.8 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Here's the YAML for the K8s namespace that's getting destroyed by this command:
apiVersion: v1 io/controller: ... tamp: "2019-08- 07T21:07: 11Z" namespaces/ kubeflow
kind: Namespace
metadata:
annotations:
juju.
juju.io/model: ...
creationTimes
name: kubeflow
resourceVersion: "2208"
selfLink: /api/v1/
uid: ...
spec:
finalizers:
- kubernetes
status:
phase: Active
Here's the output from `juju status`:
Model Controller Cloud/Region Version SLA Timestamp Notes
kubeflow cdkkf cdkkf/us-east-1 2.6.7 unsupported 16:26:02-05:00 attempt 31 to destroy model failed (will retry): model not empty, found 2 volumes, 2 filesystems (model not empty)
Model "admin/kubeflow" is empty.
Here's the resources left in the namespace:
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE eclaim/ database- 2ee3af8e- katib-db- 0 Bound pvc-2818d654- 2ff9-4ef2- 9ea3-7da578a1c1 78 1Gi RWO juju-operator- storage 14m eclaim/ database- d6c8b0ed- mariadb- 0 Bound pvc-225cd47c- e8a0-4ebb- 93d6-e9eadd088d ee 1Gi RWO juju-operator- storage 14m
persistentvolum
persistentvolum
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE e/pvc-225cd47c- e8a0-4ebb- 93d6-e9eadd088d ee 1Gi RWO Delete Bound kubeflow/ database- d6c8b0ed- mariadb- 0 juju-operator- storage 14m e/pvc-2818d654- 2ff9-4ef2- 9ea3-7da578a1c1 78 1Gi RWO Delete Bound kubeflow/ database- 2ee3af8e- katib-db- 0 juju-operator- storage 14m
persistentvolum
persistentvolum
I tried deleting the PV/PVCs, which did not make the deletion process work, and didn't destroy the Juju storage resources:
storage: 2ff9-4ef2- 9ea3-7da578a1c1 78 e8a0-4ebb- 93d6-e9eadd088d ee 2ff9-4ef2- 9ea3-7da578a1c1 78 e8a0-4ebb- 93d6-e9eadd088d ee
database/0:
kind: filesystem
life: alive
status:
current: detached
since: 07 Aug 2019 16:18:17-05:00
persistent: false
database/1:
kind: filesystem
life: alive
status:
current: detached
since: 07 Aug 2019 16:18:16-05:00
persistent: false
filesystems:
"0":
provider-id: 2818d654-
volume: "0"
storage: database/0
attachments: null
pool: kubernetes
size: 32
life: alive
status:
current: detached
since: 07 Aug 2019 16:18:17-05:00
"1":
provider-id: 225cd47c-
volume: "1"
storage: database/1
attachments: null
pool: kubernetes
size: 31
life: alive
status:
current: detached
since: 07 Aug 2019 16:18:16-05:00
volumes:
"0":
provider-id: pvc-2818d654-
storage: database/0
pool: kubernetes
size: 856
persistent: false
life: alive
status:
current: detached
since: 07 Aug 2019 16:18:17-05:00
"1":
provider-id: pvc-225cd47c-
storage: database/1
pool: kubernetes
size: 855
persistent: false
life: alive
status:
c...