Implementing Juju Actions

Nate Finch nate.finch at canonical.com
Thu Mar 27 15:34:59 UTC 2014


What's the difference between Actions and Set?   If I do "juju set mysql
admins=nate,bill" the mysql charm sees the updated admins, and performs
some action (updating permissions in this case).  How is that different
from something like "juju do setadmins mysql nate,bill" ?


On Thu, Mar 27, 2014 at 11:24 AM, Gustavo Niemeyer <gustavo at niemeyer.net>wrote:

> On Thu, Mar 27, 2014 at 12:05 PM, James Solomon <binary132 at gmail.com>
> wrote:
> > I'd like to clarify what I'm understanding here: we are to implement the
> new
> > commands alongside "deploy" and "set" as verbs belonging to the Charm
> code.
> > And these commands are implemented separately from the /cmd code tree (I
> > guess the Command and RunCommand interfaces are for the "juju run" code
> > discussed above.)
>
> That's almost right. It does need something analogous to the "set"
> command, and that is in fact sitting right next to the "set"
> configuration command. This is the "do" command in "juju do ...", and
> is not a verb belonging to the charm code. In addition to that, it
> needs action-get and action-set commands, analogous to config-get and
> config-set, and that is available to the charm hooks.
>
> > "That's surprising, FWIW" -- on that side note, one scalable alternative
> to
> > parallel SSH for remote exec is ZeroMQ, which is really effective in
>
> We already have a comprehensive mechanism to distribute requests to
> the unit agents. The main surprise is that it's not being used in this
> case. That said, if we are to discuss this, let's please start a new
> thread as this is a completely independent subject.
>
>
> gustavo @ http://niemeyer.net
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20140327/7b869600/attachment.html>


More information about the Juju-dev mailing list