juju commands managing units should support adding/removing more than one unit at a time
Bug #809599 reported by
Jim Baker
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Wishlist
|
Jim Baker |
Bug Description
Seeing blogs with info like the following suggests that add-unit should take an optional parameter (maybe -n and --num-units, there may be better options) to describe the number of units to add:
juju add-unit hadoop-slave
juju add-unit hadoop-slave
juju add-unit hadoop-slave
juju add-unit hadoop-slave
Related branches
lp://staging/~jimbaker/pyjuju/support-num-units
- Kapil Thangavelu (community): Approve
- William Reade (community): Approve
-
Diff: 425 lines (+161/-42)9 files modifiedjuju/control/add_unit.py (+11/-6)
juju/control/deploy.py (+11/-5)
juju/control/remove_unit.py (+17/-16)
juju/control/tests/test_add_unit.py (+32/-1)
juju/control/tests/test_deploy.py (+32/-1)
juju/control/tests/test_remove_unit.py (+53/-8)
juju/state/service.py (+2/-2)
juju/state/tests/test_service.py (+1/-1)
misc/bash_completion.d/juju (+2/-2)
Changed in ensemble: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in juju: | |
milestone: | none → florence |
assignee: | nobody → Jim Baker (jimbaker) |
status: | Confirmed → In Progress |
summary: |
- ensemble add-unit should support adding more than one unit at a time + juju commands managing units should support adding/removing more than + one unit at a time |
description: | updated |
description: | updated |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Excerpts from Jim Baker's message of Tue Jul 12 22:16:30 UTC 2011:
> Public bug reported:
>
> Seeing blogs with info like the following suggests that add-unit should
> take an optional parameter (maybe -n and --num-units, there may be
> better options) to describe the number of units to add:
>
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave
I'd like it to go even further and also have the idea of sizing services:
ensemble deploy formula-bar srv-foo --size 5
or resizing:
ensemble resize-service srv-foo #
Where it will tell me
srv-foo has 5 units
Desired size is 3
Terminated units:
srv-foo/8
machine: 12: { dns_name: ec2-xxxxxxx }
srv-foo/9
machine: 17: { dns_name: ec2-xxxxxxx }
Or if expanding:
srv-foo has 3 units
Desired size is 5:
Allocating existing machines:
machine: 19 { dns_name: ec2-xxxxxxx}
Provisioning 1 new machine(s)
It should probably default to confirming this without a --yes/-y flag
to avoid destroying data in something like Cassandra or Mongo.
Maybe this belongs in a separate feature request but I think its related.