I have a large model with a few hundreds of units.
An action; “diagnose”, outputs some values set by the action.
I want to write some code to filter the result from the action and the documentation is not covering well how to do this. Here is the documentation I refer to:
https://discourse.charmhub.io/t/working-with-actions/1033
Is there anyone who can assist me on this topic?
I would love to get some pointers as how I can work with actions with a juju and/or bash application for building, automation around actions.
Adding the above information to the official documentation would be a great thing.
timClicks
(Tim McNamara)
9 April 2020 21:26
2
We’ve recently changed the behaviour of actions to make this simpler. There shouldn’t need to be show-action-output step.
The UX around Juju Actions has undergone a fairly radical re-design to address some long standing issues and deliver some nice usability improvements.
An early version of this was delivered in Juju 2.7. Coming in Juju 2.8 is a more polished iteration.
Key points:
terminology changes
running an action defaults to synchronous (block until done)
running actions can be cancelled
new ability to display progress log messages
cleaner plain text output option
stdout and stderr included in output
nume…