'juju run-action' should have a --wait option

Bug #1445066 reported by Tim Penhey
58
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Wishlist
Unassigned

Bug Description

The normal way to retrieve results from an action is to call:
    juju action do <unit> <action name>
and copy the uuid output and put it into
    juju action fetch <uuid>

I would like to be able to ask for an action to be executed, and say that I'm happy to wait for the results.

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: actions tech-debt
Revision history for this message
Robie Basak (racb) wrote :

This is especially painful because there is no output format that just gives me the id for easy shell capture.

Revision history for this message
Robie Basak (racb) wrote :

Attached is a quick, partially tested workaround shell function.

Call it like this:

juju_action_wait_do my-service/0 foo

Robie Basak (racb)
tags: added: cli-ux
Marco Ceppi (marcoceppi)
tags: added: charmers
tags: added: conjure
Stuart Bishop (stub)
tags: added: canonical-is
Changed in juju-core:
milestone: none → 2.0.0
summary: - 'juju action do' should have a --wait option
+ 'juju run-action' should have a --wait option
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
importance: Medium → Wishlist
tags: removed: tech-debt
Revision history for this message
Anastasia (anastasia-macmood) wrote :

PR against develop (2.2): https://github.com/juju/juju/pull/7060

Thank you, Stuart \o/

Changed in juju:
status: Triaged → Fix Committed
milestone: none → 2.2-beta1
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.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.