Mixing colocation and multiple unit leads to unexpected result

Bug #1687663 reported by Vincenzo Di Somma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Menno Finlay-Smits

Bug Description

juju add-unit ubuntu -n 4 --to 0 resulted in one new unit on machine 0 and 3 new machines created.

https://paste.ubuntu.com/24497481/

juju version 2.2-beta2-xenial-amd64 with Openstack Ocata

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1687663] [NEW] Mixing colocation and multiple unit leads to unexpected result

That is intended behavior. If you want to create 4 instances on one machine
you would have to specify:
  juju add-unit ubuntu -n4 --to 0,0,0,0
as you might actually want:
  juju add-unit ubuntu -n4 --to 0,1,2,3
or any other number of combinations, the logic is to accept the arguments
of '--to' but provide the rest of the machines in the same fashion we would
provide them without any --to argument (e.g. request new instances).

There is an argument that we should require the number of arguments in
'--to' to match the -nX value, but we would need a way to specify a 'new
machine' in the --to argument.

On Tue, May 2, 2017 at 12:25 PM, Vincenzo Di Somma <
<email address hidden>> wrote:

> Public bug reported:
>
> juju add-unit ubuntu -n 4 --to 0 resulted in one new unit on machine 0
> and 3 new machines created.
>
>
> https://paste.ubuntu.com/24497481/
>
> juju version 2.2-beta2-xenial-amd64 with Openstack Ocata
>
> ** Affects: juju
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju.
> Matching subscriptions: juju bugs
> https://bugs.launchpad.net/bugs/1687663
>
> Title:
> Mixing colocation and multiple unit leads to unexpected result
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/1687663/+subscriptions
>

Revision history for this message
Vincenzo Di Somma (vds) wrote :

I don't think I've found that syntax documented anywhere.
Probably document it clearly, including in --help, would be enough for the moment?

Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :

I ran into this myself recently. I'll fix the help.

Changed in juju:
milestone: none → 2.2.0
importance: Undecided → Medium
assignee: nobody → Menno Finlay-Smits (menno.smits)
status: New → Triaged
Changed in juju:
milestone: 2.2.0 → 2.2-rc1
Revision history for this message
Menno Finlay-Smits (menno.smits) wrote :
Changed in juju:
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.