k8s resources dangling when removing stateful set based charm
Bug #1870457 reported by
Harry Pidcock
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
juju deploy cs:~charmed-
# wait for all green
juju remove-application mongodb-k8s
# wait for application to disappear from juju status
juju deploy cs:~charmed-
# deploy should be stuck in terminating state
juju debug-log
# has errors like "operator %q exists and is terminating due to dangling %s resource(s)"
tags: | added: k8s |
Changed in juju: | |
status: | Incomplete → Triaged |
Changed in juju: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I tried to reproduce this on 2.8-beta1 edge snap.
As soon as the application disappeared from status, I re-deployed and everything seemed to work.
The only log noise I saw was below. It seems the firewaller can better handle an app being removed.
And same with operator - it gets an app lifecycle event, exists with a not found error, and then restarts. Each restart the initialisation fails as would be expected with a not found. A few tweaks should fix that.
tracer: ++ queue handler reactive/ mongo.py: 34:set_ mongodb_ active mongodb- k8s: 14:15:47 INFO unit.mongodb- k8s/0.juju- log Invoking reactive handler: reactive/ mongo.py: 34:set_ mongodb_ active mongodb- k8s: 14:15:47 INFO unit.mongodb- k8s/0.juju- log status-set: active: ready caasfirewaller processing change for application "mongodb-k8s", application "mongodb-k8s" not found mongodb- k8s: 14:15:48 ERROR juju.worker. dependency "operator" manifold worker returned unexpected error: application "mongodb-k8s" not found mongodb- k8s: 14:15:51 ERROR juju.worker. dependency "operator" manifold worker returned unexpected error: failed to initialize caasoperator for "mongodb-k8s": application "mongodb-k8s" not found mongodb- k8s: 14:15:54 ERROR juju.worker. dependency "operator" manifold worker returned unexpected error: failed to initialize caasoperator for "mongodb-k8s": application "mongodb-k8s" not found mongodb- k8s: 14:15:59 ERROR juju.worker. dependency "operator" manifold worker returned unexpected error: failed to initialize caasoperator for "mongodb-k8s": application "mongodb-k8s" not found mongodb- k8s: 14:16:07 INFO unit.mongodb- k8s/1.juju- log Reactive main running for hook install
application-
application-
controller-0: 14:15:48 WARNING juju.worker.
application-
application-
application-
application-
application-