Re: Subordinate charms
José, They are charms I created to deploy some services that I have. I have a "principal" charm with something like this (I had to change the actual names): metadata.yaml: name: charm-principal summary: maintainer: OMMITED description: | tags: - misc subordinate: false provides: principal: interface: principal And a subordinate: metadata.yaml: name: charm-supordinate summary: maintainer: OMMITED description: | tags: - misc subordinate: true requires: principal: interface: principal scope: container When I deploy both charms, as expected, only the "charm-principal" get a unit. I cannot destroy the relation between them and, if I remove "charm-subordinate", the unit of the principal charm is destroyed. André 2016-05-26 18:45 GMT-03:00 José Antonio Rey <j...@ubuntu.com>: > André, > > What are you installing and trying to remove? I will do some quick testing > around, and would like to reproduce the same scenario that you have. > > On 05/26/2016 04:43 PM, André Moreira wrote: > >> Hi Bilal, >> >> I think that is not possible. When I try, I receive this: "You may not >> remove a subordinate relation." >> >> André >> >> 2016-05-26 18:41 GMT-03:00 Bilal Baqar <bba...@plumgrid.com >> <mailto:bba...@plumgrid.com>>: >> >> Try removing the relation between the two. The unit of the >> subordinate charm will be removed from that node. >> >> Regards >> >> On Fri, May 27, 2016 at 2:38 AM, Tom Barber <t...@analytical-labs.com >> <mailto:t...@analytical-labs.com>> wrote: >> >> Hi Andre >> >> Can you give us a clue what you are installing/uninstalling >> because I believe Bilal is correct, I've not see it wipe out the >> parent charms either. >> >> Tom >> >> -- >> >> Director Meteorite.bi - Saiku Analytics Founder >> Tel: +44(0)5603641316 <tel:%2B44%280%295603641316> >> >> (Thanks to the Saiku community we reached our Kickstart >> < >> http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/ >> > >> goal, but you can always help by sponsoring the project >> <http://www.meteorite.bi/products/saiku/sponsorship>) >> >> On 26 May 2016 at 22:36, André Moreira <andre@gmail.com >> <mailto:andre@gmail.com>> wrote: >> >> Using this, it also removes the unit of the charm it is >> subordinated to. >> >> 2016-05-26 18:34 GMT-03:00 Bilal Baqar <bba...@plumgrid.com >> <mailto:bba...@plumgrid.com>>: >> >> Try the normal charm remove command: >> *juju remove-service * >> * >> * >> Regards >> >> 2016-05-27 2:24 GMT+05:00 André Moreira >> <andre@gmail.com <mailto:andre@gmail.com>>: >> >> How can I remove a subordinate charm without >> removing the principal? >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com <mailto:Juju@lists.ubuntu.com> >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> >> >> >> -- >> Bilal Baqar >> MTS - PLUMgrid Inc. >> >> >> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com <mailto:Juju@lists.ubuntu.com> >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> >> >> >> >> -- >> Bilal Baqar >> MTS - PLUMgrid Inc. >> >> >> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> >> > > -- > José Antonio Rey > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Subordinate charms
Hi Bilal, I think that is not possible. When I try, I receive this: "You may not remove a subordinate relation." André 2016-05-26 18:41 GMT-03:00 Bilal Baqar <bba...@plumgrid.com>: > Try removing the relation between the two. The unit of the subordinate > charm will be removed from that node. > > Regards > > On Fri, May 27, 2016 at 2:38 AM, Tom Barber <t...@analytical-labs.com> > wrote: > >> Hi Andre >> >> Can you give us a clue what you are installing/uninstalling because I >> believe Bilal is correct, I've not see it wipe out the parent charms either. >> >> Tom >> >> -- >> >> Director Meteorite.bi - Saiku Analytics Founder >> Tel: +44(0)5603641316 >> >> (Thanks to the Saiku community we reached our Kickstart >> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/> >> goal, but you can always help by sponsoring the project >> <http://www.meteorite.bi/products/saiku/sponsorship>) >> >> On 26 May 2016 at 22:36, André Moreira <andre@gmail.com> wrote: >> >>> Using this, it also removes the unit of the charm it is subordinated to. >>> >>> 2016-05-26 18:34 GMT-03:00 Bilal Baqar <bba...@plumgrid.com>: >>> >>>> Try the normal charm remove command: >>>> *juju remove-service * >>>> >>>> Regards >>>> >>>> 2016-05-27 2:24 GMT+05:00 André Moreira <andre@gmail.com>: >>>> >>>>> How can I remove a subordinate charm without removing the principal? >>>>> >>>>> -- >>>>> >>>>> Le doux charme de maint songe >>>>> Par leur bel art inventé >>>>> Sous les habits du mensonge >>>>> Nous offre la vérité. >>>>> -La Fontaine >>>>> >>>>> -- >>>>> Juju mailing list >>>>> Juju@lists.ubuntu.com >>>>> Modify settings or unsubscribe at: >>>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>>> >>>>> >>>> >>>> >>>> -- >>>> Bilal Baqar >>>> MTS - PLUMgrid Inc. >>>> >>>> >>>> >>> >>> >>> -- >>> >>> Le doux charme de maint songe >>> Par leur bel art inventé >>> Sous les habits du mensonge >>> Nous offre la vérité. >>> -La Fontaine >>> >>> -- >>> Juju mailing list >>> Juju@lists.ubuntu.com >>> Modify settings or unsubscribe at: >>> https://lists.ubuntu.com/mailman/listinfo/juju >>> >>> >> > > > -- > Bilal Baqar > MTS - PLUMgrid Inc. > > > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Subordinate charms
Using this, it also removes the unit of the charm it is subordinated to. 2016-05-26 18:34 GMT-03:00 Bilal Baqar <bba...@plumgrid.com>: > Try the normal charm remove command: > *juju remove-service * > > Regards > > 2016-05-27 2:24 GMT+05:00 André Moreira <andre@gmail.com>: > >> How can I remove a subordinate charm without removing the principal? >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> > > > -- > Bilal Baqar > MTS - PLUMgrid Inc. > > > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Subordinate charms
How can I remove a subordinate charm without removing the principal? -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Juju service commands or communitation protocol
Sure! My intentions are on Java, but I haven't decided anything yet. André Envoyé de mon iPhone > Le 5 nov. 2015 à 12:39, Mark Shuttleworth <m...@ubuntu.com> a écrit : > >> On 05/11/15 15:19, Adam Stokes wrote: >>> On Thu, Nov 5, 2015 at 8:24 AM, Mark Shuttleworth <m...@ubuntu.com> wrote: >>> >>>> On 05/11/15 00:19, André Moreira wrote: >>>> Thank you, Adam. This is exactly what I was looking for. >>>> André >>> If you end up making bindings for another language like Ruby or Node >>> then we'll be glad to publicise that to the community too! >>> >>> Mark >> I dare say it, how about Perl? :)) https://metacpan.org/release/Juju > > Something for everybody ;) > > Mark -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Juju service commands or communitation protocol
I will certainly have a look. Thank you. André Envoyé de mon iPhone > Le 5 nov. 2015 à 06:44, Samuel Cozannet <samuel.cozan...@canonical.com> a > écrit : > > Hi André, > > Not sure about your use case, but we've used this integration (python native > I am afraid) to do some Juju autoscaling with a metrology tool (Zabbix). Have > a look if you're doing something similar :) > > Repo (a bit outdated now): https://github.com/SaMnCo/ob-zabbix/ > video: https://www.youtube.com/watch?v=IF7bUgDCYMM > > ++ > Sam > > > > > -- > Samuel Cozannet > Cloud, Big Data and IoT Strategy Team > Business Development - Cloud and ISV Ecosystem > Changing the Future of Cloud > Ubuntu / Canonical UK LTD / Juju > samuel.cozan...@canonical.com > mob: +33 616 702 389 > skype: samnco > Twitter: @SaMnCo_23 > > >> On Thu, Nov 5, 2015 at 12:19 AM, André Moreira <andre@gmail.com> wrote: >> Thank you, Adam. This is exactly what I was looking for. >> André >> >> 2015-11-04 14:21 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: >>> You'll have to check out some of the bindings code: >>> >>> http://bazaar.launchpad.net/~juju-deployers/python-jujuclient/trunk/view/head:/jujuclient.py >>> >>> That should give you a good indication of what the juju api server >>> requires. For example the credentials need to be in a form of >>> >>> >>> {'Type': 'Admin', >>> 'Request': 'Login', >>> 'RequestId': 1, >>> 'Params': {'AuthTag': 'user-admin', >>> 'Password': None}} >>> >>> The above library is a single file which is pretty easy to grok and has >>> good documentation on what the functions do. >>> >>>> On Wed, Nov 4, 2015 at 11:04 AM, André Moreira <andre@gmail.com> wrote: >>>> Hi Adam, >>>> What I mean is how do I construct the json requests and how should I >>>> expect the json response to be provided. Do you know where do I find this >>>> kind of documentation? I mean, is there a doc for it without needing to >>>> read the source code? >>>> André >>>> >>>> 2015-11-04 11:34 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: >>>>> If you're going to use Go or creating bindings of your own the api >>>>> documentation is https://godoc.org/github.com/juju/juju/api. >>>>> >>>>>> On Wed, Nov 4, 2015 at 8:30 AM, André Moreira <andre@gmail.com> >>>>>> wrote: >>>>>> Thank you, Mark, for the reply. >>>>>> Nice to know there is this library and there will be an official one! >>>>>> But, if I want to use the REST api without the python library, where can >>>>>> I find documentation for it? >>>>>> Thanks in advance, >>>>>> André >>>>>> >>>>>> 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth <m...@ubuntu.com>: >>>>>>> On 04/11/15 09:02, Merlijn Sebrechts wrote: >>>>>>> > I'm very interested to hear more about that python library! Is this >>>>>>> > something that will be discussed at the summit? >>>>>>> >>>>>>> It could be. There have been a couple of informal variations on this >>>>>>> theme from various sources, we recently decided it was worth making an >>>>>>> official one. Someone closer to that work would be able to provide more >>>>>>> insight, including whether it will be based on one like >>>>>>> http://python-jujuclient.readthedocs.org/ or whether it's a fresh start. >>>>>>> >>>>>>> Mark >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Le doux charme de maint songe >>>>>> Par leur bel art inventé >>>>>> Sous les habits du mensonge >>>>>> Nous offre la vérité. >>>>>> -La Fontaine >>>>>> >>>>>> -- >>>>>> Juju mailing list >>>>>> Juju@lists.ubuntu.com >>>>>> Modify settings or unsubscribe at: >>>>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>> >>>> >>>> >>>> -- >>>> >>>> Le doux charme de maint songe >>>> Par leur bel art inventé >>>> Sous les habits du mensonge >>>> Nous offre la vérité. >>>> -La Fontaine >> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju > -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Juju service commands or communitation protocol
Thank you, Adam. This is exactly what I was looking for. André 2015-11-04 14:21 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: > You'll have to check out some of the bindings code: > > > http://bazaar.launchpad.net/~juju-deployers/python-jujuclient/trunk/view/head:/jujuclient.py > > That should give you a good indication of what the juju api server > requires. For example the credentials need to be in a form of > > > {'Type': 'Admin', > 'Request': 'Login', > 'RequestId': 1, > 'Params': {'AuthTag': 'user-admin', > 'Password': None}} > > The above library is a single file which is pretty easy to grok and has > good documentation on what the functions do. > > On Wed, Nov 4, 2015 at 11:04 AM, André Moreira <andre@gmail.com> > wrote: > >> Hi Adam, >> What I mean is how do I construct the json requests and how should I >> expect the json response to be provided. Do you know where do I find this >> kind of documentation? I mean, is there a doc for it without needing to >> read the source code? >> André >> >> 2015-11-04 11:34 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: >> >>> If you're going to use Go or creating bindings of your own the api >>> documentation is https://godoc.org/github.com/juju/juju/api. >>> >>> On Wed, Nov 4, 2015 at 8:30 AM, André Moreira <andre@gmail.com> >>> wrote: >>> >>>> Thank you, Mark, for the reply. >>>> Nice to know there is this library and there will be an official one! >>>> But, if I want to use the REST api without the python library, where >>>> can I find documentation for it? >>>> Thanks in advance, >>>> André >>>> >>>> 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth <m...@ubuntu.com>: >>>> >>>>> On 04/11/15 09:02, Merlijn Sebrechts wrote: >>>>> > I'm very interested to hear more about that python library! Is this >>>>> > something that will be discussed at the summit? >>>>> >>>>> It could be. There have been a couple of informal variations on this >>>>> theme from various sources, we recently decided it was worth making an >>>>> official one. Someone closer to that work would be able to provide more >>>>> insight, including whether it will be based on one like >>>>> http://python-jujuclient.readthedocs.org/ or whether it's a fresh >>>>> start. >>>>> >>>>> Mark >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Le doux charme de maint songe >>>> Par leur bel art inventé >>>> Sous les habits du mensonge >>>> Nous offre la vérité. >>>> -La Fontaine >>>> >>>> -- >>>> Juju mailing list >>>> Juju@lists.ubuntu.com >>>> Modify settings or unsubscribe at: >>>> https://lists.ubuntu.com/mailman/listinfo/juju >>>> >>>> >>> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> > > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Juju service commands or communitation protocol
Thank you, Mark, for the reply. Nice to know there is this library and there will be an official one! But, if I want to use the REST api without the python library, where can I find documentation for it? Thanks in advance, André 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth: > On 04/11/15 09:02, Merlijn Sebrechts wrote: > > I'm very interested to hear more about that python library! Is this > > something that will be discussed at the summit? > > It could be. There have been a couple of informal variations on this > theme from various sources, we recently decided it was worth making an > official one. Someone closer to that work would be able to provide more > insight, including whether it will be based on one like > http://python-jujuclient.readthedocs.org/ or whether it's a fresh start. > > Mark > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: Juju service commands or communitation protocol
Hi Adam, What I mean is how do I construct the json requests and how should I expect the json response to be provided. Do you know where do I find this kind of documentation? I mean, is there a doc for it without needing to read the source code? André 2015-11-04 11:34 GMT-02:00 Adam Stokes <adam.sto...@canonical.com>: > If you're going to use Go or creating bindings of your own the api > documentation is https://godoc.org/github.com/juju/juju/api. > > On Wed, Nov 4, 2015 at 8:30 AM, André Moreira <andre@gmail.com> wrote: > >> Thank you, Mark, for the reply. >> Nice to know there is this library and there will be an official one! >> But, if I want to use the REST api without the python library, where can >> I find documentation for it? >> Thanks in advance, >> André >> >> 2015-11-04 6:32 GMT-02:00 Mark Shuttleworth <m...@ubuntu.com>: >> >>> On 04/11/15 09:02, Merlijn Sebrechts wrote: >>> > I'm very interested to hear more about that python library! Is this >>> > something that will be discussed at the summit? >>> >>> It could be. There have been a couple of informal variations on this >>> theme from various sources, we recently decided it was worth making an >>> official one. Someone closer to that work would be able to provide more >>> insight, including whether it will be based on one like >>> http://python-jujuclient.readthedocs.org/ or whether it's a fresh start. >>> >>> Mark >>> >> >> >> >> -- >> >> Le doux charme de maint songe >> Par leur bel art inventé >> Sous les habits du mensonge >> Nous offre la vérité. >> -La Fontaine >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> > -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Juju service commands or communitation protocol
Is there a REST API for juju or the only possible ways to communicate with it are either by juju command-line or juju gui? A service can communicate with juju main agent and, for instance, add a new unit or start another service? What is the proper way to do this? Is it possible to a charm to ask juju to start another machine, add instances of a service or destroy instances? For instance, by doing something simular to the juju gui: how juju gui performs the creation of machines? I´d like to have a service that monitors other services and add instances to scale out, for instance. -- Le doux charme de maint songe Par leur bel art inventé Sous les habits du mensonge Nous offre la vérité. -La Fontaine -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju