Subordinate charms
André Moreira
andre.lcm at gmail.com
Thu May 26 21:51:35 UTC 2016
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: <Fill in summary here>
maintainer: OMMITED
description: |
<Multi-line description here>
tags:
- misc
subordinate: false
provides:
principal:
interface: principal
And a subordinate:
metadata.yaml:
name: charm-supordinate
summary: <Fill in summary here>
maintainer: OMMITED
description: |
<Multi-line description here>
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 <jose at 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 <bbaqar at plumgrid.com
>> <mailto:bbaqar at 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 <tom at analytical-labs.com
>> <mailto:tom at 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.lcm at gmail.com
>> <mailto:andre.lcm at 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 <bbaqar at plumgrid.com
>> <mailto:bbaqar at plumgrid.com>>:
>>
>> Try the normal charm remove command:
>> *juju remove-service <subordinate-charm-name> *
>> *
>> *
>> Regards
>>
>> 2016-05-27 2:24 GMT+05:00 André Moreira
>> <andre.lcm at gmail.com <mailto:andre.lcm at 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 at lists.ubuntu.com <mailto:Juju at 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 at lists.ubuntu.com <mailto:Juju at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160526/0e817961/attachment.html>
More information about the Juju
mailing list