Some charms, such as cs:telegraf require running actions to complete charm/software upgrades.
for instance, going from telegraf-28 to telegraf-29 provides a juju status which notes:
Install filebeat-6.8.0 with the ‘reinstall’ action.
On each unit.
As a standard openstack cloud has ~50+ such units, I’d rather not have
to write an awk-based loop to iterate through these units, but rather
juju run-action should have an [–application | -a] flag or an
application/all argument to trigger the action to run on all units of
There are of course workarounds…
juju status --format=short \ | cut -d' ' -f2 \ | cut -d':' -f1 -s \ | grep ^<application> \ | xargs -I@ juju run-action @ <action>
…but they’re hardly elegant.