Add support for "juju status myapplication/leader"

Bug #1981508 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Wishlist
Evanson Mwangi
2.9
Fix Released
Wishlist
Evanson Mwangi

Bug Description

Hi,

We can currently do the following operations on the leader unit:

* juju ssh myapplication/leader

* juju run --unit myapplication/leader

Can we also add "juju status myapplication/leader"? It would be helpful to show which unit is the leader and filter that out rather than having to find it in the full "juju status" output.

| $ juju status myapp/leader
| Model Controller Cloud/Region Version SLA Timestamp
| mymodel mycontroller aws/my-region 2.9.32 unsupported 02:06:26Z
|
| Nothing matched specified filter.

| $ juju version
| 2.9.32-ubuntu-amd64

Haw Loeung (hloeung)
Changed in juju:
importance: Undecided → Wishlist
Changed in juju:
status: New → Triaged
Changed in juju:
assignee: nobody → Evanson Mwangi (mr-parish)
Changed in juju:
milestone: none → 3.0.1
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Evanson Mwangi (mr-parish) wrote :
Changed in juju:
milestone: 3.0.1 → 3.0-rc1
Changed in juju:
status: In Progress → Fix Committed
Ian Booth (wallyworld)
Changed in juju:
milestone: 3.0-rc1 → 3.0-beta4
Revision history for this message
Haw Loeung (hloeung) wrote :

Any chance of this being included in 2.9.x?

Revision history for this message
Evanson Mwangi (mr-parish) wrote :

Hi Haw, It will be included in the next release of 2.9.x as well. here is the PR.https://github.com/juju/juju/pull/14560

Revision history for this message
Haw Loeung (hloeung) wrote :

Thank you!

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.