juju cli should not fail because of pending environment
Bug #849071 reported by
Ahmed Kamal
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Wishlist
|
Jim Baker |
Bug Description
Everytime I bootstrap or deploy something .. I always wait an undetermined amount of time for ec2 to "catch-up"
Can we have a "wait" option such that the ensemble command doesn't return till the operation is completed
ensemble bootstrap [-w | --wait]
This should be supported for various operations:
- Bootstrap
- deploy (till it's started, or install_error I guess + I guess should set exit status)
- add-unit
Perhaps there should even be a "ensemble wait" that waits on all async operations to finish, so I can like
for i in `seq 1 5`; do ensemble add-unit foo ; done
ensemble wait
Related branches
lp://staging/~jimbaker/pyjuju/robust-zk-connect
- Kapil Thangavelu (community): Approve
- William Reade (community): Approve
-
Diff: 715 lines (+231/-335)7 files modifiedjuju/lib/tests/test_twistutils.py (+12/-1)
juju/lib/twistutils.py (+15/-1)
juju/providers/common/base.py (+0/-2)
juju/providers/common/connect.py (+50/-29)
juju/providers/common/tests/test_connect.py (+154/-48)
juju/providers/ec2/tests/test_connect.py (+0/-143)
juju/providers/orchestra/tests/test_connect.py (+0/-111)
Changed in juju: | |
milestone: | none → florence |
assignee: | nobody → Jim Baker (jimbaker) |
status: | Confirmed → In Progress |
summary: |
- Ensemble needs to support wait cli option + juju cli should not fail because of pending environment |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
This is *essential* for writing full end to end integration tests.
I wrote a script which emulates this, but it really should be integrated into ensemble's CLI commands as --wait where it makes sense.
Here is a link to the wait4state script I created:
http:// bazaar. launchpad. net/~clint- fewbar/ ensemble/ jenkins- test-suite/ view/head: /misc/jenkins/ wait4state