status stays green for unit where uniter is in restart loop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
Juju should bubble up to status output when a unit has a uniter in a restart loop due to error, currently it stays green which is misleading.
It's a different bug which needs to be resolved, but can be triggered in juju 2.9.22:
1. bootstrap 2.8
2. deploy ubuntu charm
3. upgrade juju client and controller to 2.9 - do no upgrade the default model.
4. juju refresh --switch ch:ubuntu ubuntu.
The unit will stay green, but fall into a uniter restart loop of:
unit-ubuntu-0: 14:13:42 INFO juju.worker.uniter unit "ubuntu/0" shutting down: failed to initialize uniter for "unit-ubuntu-0": cannot parse URL "ch:amd64/
unit-ubuntu-0: 14:13:42 ERROR juju.worker.
When you say "stays green", do you mean the workload status shows as "Active", which juju renders as green? (green being an indication that the workload is healthy). As opposed to the agent status, which should reflect the error in the uniter. I guess agent status does show hook errors and other issues with the charm but not uniter restarts due to errors.