"blocked" state "Missing cni resource" gets overridden with "active/idle" state

Bug #1911000 reported by Martin Kalcok
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Worker Charm
Triaged
Medium
Unassigned

Bug Description

When you deploy kubernetes-worker charm from source and you forget to manually include it's resources, it should end up in blocked state with message "Missing cni resource.". It does happen, but then it's immediately replaced with `active/idle` state and message "Kubernetes worker running.".

Here's output of the `juju show-status-log`:

11 Jan 2021 10:06:38Z workload active Kubernetes worker running.
11 Jan 2021 10:06:39Z juju-unit idle
11 Jan 2021 10:10:30Z workload blocked Missing cni resource.
11 Jan 2021 10:10:31Z workload active Kubernetes worker running.
11 Jan 2021 10:12:43Z workload blocked Missing cni resource.
11 Jan 2021 10:12:45Z workload active Kubernetes worker running.
11 Jan 2021 10:18:00Z workload blocked Missing cni resource.
11 Jan 2021 10:18:02Z workload active Kubernetes worker running.

My guess is that `@hookenv.atexit` decorated function `charm_status()` in `reactive/kubernetes_worker.py` is culprit in this.

Revision history for this message
George Kraft (cynerva) wrote :
Changed in charm-kubernetes-worker:
importance: Undecided → Medium
status: New → Triaged
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.