Unit Status Missing Life Field

Bug #1968092 reported by Stone Preston
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Jack Shaw

Bug Description

unit status does not seem to report life information like other entities do. The unit status struct defined here: https://github.com/juju/juju/blob/82265be153c73c1aa549c7ad2ac6cda3f5712f92/rpc/params/status.go#L210 has a DetailedStatus member that should contain a life field. However, when accessing the life field of such a struct, it is empty.

Also, the status output provided by the juju CLI does not show life when displaying unit status as shown in this status output: https://pastebin.canonical.com/p/8GndX8QVB8/

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jack Shaw (jack-shaw)
milestone: none → 2.9.29
Changed in juju:
milestone: 2.9.29 → 2.9.30
Jack Shaw (jack-shaw)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Jack Shaw (jack-shaw) wrote :

Hi,

I have looked a bit into this for you. `juju status` not displaying life is an intentional feature when life is 'alive', so this works as intended
https://github.com/juju/juju/blob/bda4b329215738dc748c7178b7be5aeccf839914/apiserver/facades/client/client/status.go#L1713-L1719

However, the fact that the command `juju show-x` inconsistently show the life value (application, machine, unit, etc. don't but model, etc. do) needs to be addressed

Revision history for this message
Jack Shaw (jack-shaw) wrote :

Hi,

I have looked a bit into this for you. `juju status` not displaying life is an intentional feature when life is 'alive', so this works as intended
https://github.com/juju/juju/blob/bda4b329215738dc748c7178b7be5aeccf839914/apiserver/facades/client/client/status.go#L1713-L1719

However, the fact that the command `juju show-x` inconsistently show the life value (application, machine, unit, etc. don't but model, etc. do) needs to be addressed

https://github.com/juju/juju/pull/14001

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9.30 → 2.9.31
Changed in juju:
status: Fix Committed → Fix Released
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.