Juju doesn't properly report CaaS charm status

Bug #1906278 reported by Kenneth Koski on 2020-11-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thomas Miller

Bug Description

I am developing a charm, and it had an error in it. It was difficult to notice the error, because `juju status` didn't properly show that the workload pod was in an error state:

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
katib uk8s microk8s/localhost 2.8.6 unsupported 10:18:28-06:00

App Version Status Scale Charm Store Rev OS Address Notes
katib-controller docker.io/kubeflowkatib/kat... waiting 1 katib-controller local 0 kubernetes
katib-db rocks.canonical.com:443/mar... active 1 mariadb-k8s jujucharms 34 kubernetes
katib-manager docker.io/kubeflowkatib/kat... active 1 katib-manager local 0 kubernetes
katib-ui docker.io/kubeflowkatib/kat... active 1 katib-ui local 0 kubernetes

Unit Workload Agent Address Ports Message
katib-controller/0* active idle 443/TCP,8080/TCP
katib-db/0* active idle 3306/TCP ready
katib-manager/0* active idle 6789/TCP
katib-ui/0* active idle 8000/TCP


$ microk8s kubectl get pods -nkatib
katib-controller-86c95bfc4c-8btzj 0/1 CrashLoopBackOff 6 10m
katib-controller-operator-0 1/1 Running 0 10m
katib-db-0 1/1 Running 0 10m
katib-db-operator-0 1/1 Running 0 10m
katib-manager-7fd857d47-85dj5 1/1 Running 0 10m
katib-manager-operator-0 1/1 Running 0 10m
katib-ui-664666c9b7-t2jhb 1/1 Running 0 10m
katib-ui-operator-0 1/1 Running 0 10m
modeloperator-5f99cfd5b8-7q6lc 1/1 Running 0 11m

This also meant that `juju wait -wv` improperly succeeded early, because it didn't realize that the workload pod was actually not up and running.

Kenneth Koski (knkski) wrote :

juju debug-log from controller

Ian Booth (wallyworld) on 2020-11-30
Changed in juju:
milestone: none → 2.8.8
status: New → Triaged
importance: Undecided → High
Thomas Miller (tlmiller) on 2020-12-01
Changed in juju:
assignee: nobody → Thomas Miller (tlmiller)
Thomas Miller (tlmiller) on 2020-12-10
Changed in juju:
status: Triaged → In Progress
Thomas Miller (tlmiller) on 2020-12-16
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments