Can't destroy kubernetes model

Bug #1885029 reported by Kenneth Koski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

I am trying to destroy a model deployed on top of microk8s. When I attempt to destroy it, I get these two applications hanging around (out of a larger bundle), preventing model destruction:

Model Controller Cloud/Region Version SLA Timestamp Notes
kubeflow uk8s microk8s/localhost 2.7.6 unsupported 17:32:58-05:00 attempt 22 to destroy model failed (will retry): model not empty, found 2 applications (model not empty)

App Version Status Scale Charm Store Rev OS Address Notes
dex-auth active 0/1 dex-auth local 0 kubernetes 10.152.183.181
oidc-gatekeeper active 0/1 oidc-gatekeeper local 0 kubernetes 10.152.183.158

Relation provider Requirer Interface Type Message
oidc-gatekeeper:oidc-client dex-auth:oidc-client oidc-client regular

Tailing logs from the controller shows this message repeated quite a bit:

88c65c78-b955-4b25-8a8b-cf670baddca2: controller-0 2020-06-24 22:31:19 ERROR juju.worker.dependency engine.go:671 "caas-unit-provisioner" manifold worker returned unexpected error: cannot set scale for application "oidc-gatekeeper" to 1: application is not found or not alive
2020-06-24 22:31:55 ERROR juju.worker.dependency engine.go:671 "caas-unit-provisioner" manifold worker returned unexpected error: cannot set scale for application "oidc-gatekeeper" to 1: application is not found or not alive

Revision history for this message
Ian Booth (wallyworld) wrote :

I think this might be fixed in 2.8

Do you still see the issue using 2.8.1?

Revision history for this message
Kenneth Koski (knkski) wrote :

I've run into the same issue on 2.8.1. Those same two charms are refusing to go away, even if I try `juju remove-application --force --no-wait dex-auth oidc-gatekeeper`. I've attached the output from `juju debug-log`.

summary: - Can't destroy kubernetes model with juju 2.7
+ Can't destroy kubernetes model
Revision history for this message
Ian Booth (wallyworld) wrote :

We also need the juju dump-model output to see what's stuck.
Also kubectl get all,pvc,pv

Revision history for this message
Kenneth Koski (knkski) wrote :

Get all in regular format

Revision history for this message
Kenneth Koski (knkski) wrote :

get all in YAML format

Revision history for this message
Kenneth Koski (knkski) wrote :

juju dump-model

Revision history for this message
Kenneth Koski (knkski) wrote :

And juju status:

$ juju status --relations
Model Controller Cloud/Region Version SLA Timestamp Notes
kubeflow uk8s microk8s/localhost 2.7.7 unsupported 08:51:04-05:00 attempt 36 to destroy model failed (will retry): model not empty, found 2 applications (model not empty)

App Version Status Scale Charm Store Rev OS Address Notes
dex-auth active 0/1 dex-auth local 0 kubernetes 10.152.183.12
oidc-gatekeeper active 0/1 oidc-gatekeeper local 0 kubernetes 10.152.183.51

Relation provider Requirer Interface Type Message
oidc-gatekeeper:oidc-client dex-auth:oidc-client oidc-client regular

Revision history for this message
Kenneth Koski (knkski) wrote :

microk8s inspection report

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.