juju debug log doesn't point to issue with kubelet service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Kubernetes Worker Charm |
New
|
Undecided
|
Unassigned |
Bug Description
When snap.kubelet.daemon fails to start on the worker machines and thus don't map the nodes to charmed k8s, `juju debug-log` doesn't explicitly point to that issue. Instead, it says that the pods couldn't be scheduled due to nodes unavailability:
```
unit-kubernetes
unit-kubernetes
unit-kubernetes
```
`juju status` shows the workload in ‘waiting’ state with message ‘Waiting for 4 kube-system pods to start’.
`journalctl -u snap.kubelet.
```
Feb 08 10:03:36 juju-401d1a-
Feb 08 10:03:36 juju-401d1a-
```
It would be great to log at least the systemctl status output into the Juju log if it ends up needing to exit the hook with that status.
juju version: 2.9.22-ubuntu-amd64
charmed-k8s version: 1.21 (bundle 733)