Run action on leader

Bug #1787986 reported by Tom Haddon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Joseph Phillips

Bug Description

As part of upgrading CDK we need to be able to run an action (snapshot) on the etcd leader. Currently we do this by doing:

etcd_leader=$(juju status --format json | jq -r '.applications["etcd"]["units"] | with_entries(select(.value.leader == true)) | keys[]')
juju run-action $etcd_leader snapshot

There really should be a way to do this via juju itself.

Tags: actions
Tim Penhey (thumper)
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.5-beta1
tags: added: actions
Changed in juju:
assignee: nobody → Richard Harding (rharding)
Changed in juju:
assignee: Richard Harding (rharding) → Joseph Phillips (manadart)
status: Triaged → In Progress
Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
status: In Progress → Fix Committed
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.