Juju deploy same application twice, failed "application already exist"

Tom Barber tom at spicule.co.uk
Thu Apr 20 12:40:11 UTC 2017


Sorry, yeah didn't hit reply all! :)

Yeah, deploy a service once, add unit for more capacity or HA generally.

On Thu, Apr 20, 2017 at 1:36 PM, fengxia <fxia1 at lenovo.com> wrote:

> I c. So I should have used add-unit command instead of "deploy". Is that
> right?
>
> On 04/20/2017 08:34 AM, Tom Barber wrote:
>
> You add new "units" so you can run n units of a charm which then can use
> the internal peer relation to deal with inter-app communications.
>
> Tom
>
> On Thu, Apr 20, 2017 at 1:32 PM, fengxia <fxia1 at lenovo.com> wrote:
>
>> Hi,
>>
>> I have developed a charm called "test". Using command line to deploy from
>> local repo:
>>
>> $ juju deploy $JUJU_REPOSITORY/trusty/test
>>
>> First one went well. Issuing this command again will give error:
>>
>> 08:28:49 ERROR cmd supercommand.go:460 cannot add application "test":
>> application already exists
>>
>> Must be missing something. How do you achieve HA then if one cant install
>> multiple instances of a charm?
>>
>> --
>> Feng xia
>> Engineer
>> Lenovo USA
>>
>> Phone: 5088011794
>> fxia1 at lenovo.com
>>
>> Lenovo.com
>> Twitter | Facebook | Instagram | Blogs | Forums
>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/juju
>>
>
>
>
> --
> Tom Barber
> CTO Spicule LTD
> tom at spicule.co.uk
>
> http://spicule.co.uk
>
> @spiculeim <http://twitter.com/spiculeim>
>
> Schedule a meeting with me <http://meetme.so/spicule>
>
> GB: +44(0)5603641316 <+44%2056%200364%201316>
> US: +18448141689 <(844)%20814-1689>
>
> <https://leanpub.com/juju-cookbook>
>
>
> --
> Feng xia
> Engineer
> Lenovo USA
>
> Phone: 5088011794 <(508)%20801-1794>fxia1 at lenovo.com
>  	
> Lenovo.com
> Twitter | Facebook | Instagram | Blogs | Forums
>
>


-- 
Tom Barber
CTO Spicule LTD
tom at spicule.co.uk

http://spicule.co.uk

@spiculeim <http://twitter.com/spiculeim>

Schedule a meeting with me <http://meetme.so/spicule>

GB: +44(0)5603641316
US: +18448141689

<https://leanpub.com/juju-cookbook>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20170420/4938655c/attachment.html>


More information about the Juju mailing list