juju run should allow specification of leader units like juju run-action

Bug #1814962 reported by Alexander Balderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Achilleas Anagnostopoulos

Bug Description

juju run-action allows for the syntax:
"juju run-action <application>/leader"

juju run should also allow for a way to specify the leader unit.
eg:
"juju run --unit <application/leader"

Tags: cdo-qa
tags: added: cdo-qa
Revision history for this message
Richard Harding (rharding) wrote :

This is added in Juju 2.5 and there are instructions on using it in the help docs.

$ juju run-action mysql/leader backup
resolved leader: mysql/0
action: <ID>

Marking as invalid as it's released as a feature.

Changed in juju:
status: New → Invalid
Revision history for this message
Richard Harding (rharding) wrote :

Apologies, I completely misread this and missed the run vs run-action distinction. This is definitely something that we could look at adding to flesh out the support here. Thanks for the prod.

Changed in juju:
status: Invalid → Triaged
importance: Undecided → High
milestone: none → 2.6-beta1
Changed in juju:
assignee: nobody → Achilleas Anagnostopoulos (achilleasa)
status: Triaged → In Progress
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :
Changed in juju:
status: In Progress → Fix Committed
Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

Fix has been backported to 2.5 via https://github.com/juju/juju/pull/9774

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.