Merge lp:~frankban/juju-deployer/unit-placement-fix into lp:juju-deployer
| Status: | Merged |
|---|---|
| Merged at revision: | 152 |
| Proposed branch: | lp:~frankban/juju-deployer/unit-placement-fix |
| Merge into: | lp:juju-deployer |
| Diff against target: |
593 lines (+156/-107) 11 files modified
deployer/action/importer.py (+15/-24) deployer/config.py (+5/-5) deployer/deployment.py (+3/-3) deployer/service.py (+46/-45) deployer/tests/base.py (+36/-0) deployer/tests/test_data/v4/container-existing-machine.yaml (+1/-1) deployer/tests/test_data/v4/placement-invalid-number.yaml (+8/-0) deployer/tests/test_deployment.py (+23/-10) deployer/tests/test_guiserver.py (+7/-3) deployer/tests/test_importer.py (+11/-15) setup.py (+1/-1) |
| To merge this branch: | bzr merge lp:~frankban/juju-deployer/unit-placement-fix |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Madison Scott-Clary (community) | code and qa | Approve on 2015-08-06 | |
| Tim Van Steenburgh | 2015-08-06 | Approve on 2015-08-06 | |
| Brad Crittenden (community) | code | Approve on 2015-08-06 | |
|
Review via email:
|
|||
Description of the Change
Fix deployments of bundles v4.
Fix some incorrect behavior of new v4 bundles, mostly
concerning validation and ordering of services.
Improve status retrieval while adding unit.
Fix checking for existing machines: it did work
properly only with top level machines.
Fix a problem with machines mapping while
co-locating units to other services, units or
to declared machines.
Improve the logic used for detecting v4 vs v3
bundle syntax: the machines section in v4 can
be safely omitted accotding to the spec.
Fix sleep loops and memory leaks while running
tests exercising the importer.
Some lint/code style clean up.
Bump version up a little.
| Tim Van Steenburgh (tvansteenburgh) wrote : | # |
| Francesco Banconi (frankban) wrote : | # |
As mentioned on IRC, the sleep loops are solved by setting up the wnv mock with patch_env_status.
I also removed the reloading logic, as requested.
Thank you both for the reviews!
- 159. By Francesco Banconi on 2015-08-06
-
Remove the reloading logic in importer.add_unit.
| Madison Scott-Clary (makyo) wrote : | # |
Thanks Francesco, much appreciated, this LGTM. QA okay on local.

One inline comment, plus I wonder if you could point out which change fixes the test memory leak problem? Otherwise looks good.