set-status --application not properly reflected in juju status and show-application
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
I was testing out application status (status-set --application) and found 2 issues:
1) 'juju status --format=tabular' doesn't show the message for an application status (I thought it would be in Notes)
2) 'juju show-application' doesn't show the value either
For example, doing:
$ juju run --unit ubuntu-lite/0 "status-set --application=False maintenance foo"
$ juju run --unit ubuntu-lite/0 "status-set --application=True maintenance bar"
I can see the Status change and the Unit message in 'juju status':
$ juju status
...
App Version Status Scale Charm Store Rev OS Notes
ubuntu-lite 18.04 maintenance 1 ubuntu-lite jujucharms 7 ubuntu
...
Unit Workload Agent Machine Public address Ports Message
ubuntu-lite/0* maintenance idle 1 10.207.1.54 foo
However, there is no Application message, nor is it in 'show-application':
$ juju show-application ubuntu-lite
ubuntu-lite:
charm: ubuntu-lite
series: bionic
channel: stable
principal: true
exposed: false
remote: false
endpoint-
another: ""
ubuntu: ""
It *is* in 'juju status --format=yaml':
applications:
ubuntu-lite:
charm: cs:~jameinel/
series: bionic
os: ubuntu
charm-origin: jujucharms
charm-name: ubuntu-lite
charm-rev: 7
exposed: false
application
current: maintenance
message: bar
since: 27 Nov 2019 12:08:29Z
https:/ /bugs.launchpad .net/juju/ +bug/1850268 - a bug for (1) created earlier.