Merge lp:~fwereade/pyjuju/env-constraints into lp:~fwereade/pyjuju/shadow-trunk-1204
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | 516 |
Merged at revision: | 512 |
Proposed branch: | lp:~fwereade/pyjuju/env-constraints |
Merge into: | lp:~fwereade/pyjuju/shadow-trunk-1204 |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~fwereade/pyjuju/env-constraints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Reade | Pending | ||
Review via email:
|
Description of the change
Implement environment constraints
In user-visible terms:
* bootstrap now accepts --constraints;
* set-constraints now works without --service;
* get-constraints now accepts empty args and outputs env constraints.
In developer terms:
* EnvironmentStat
* A new /constraints node is used to store environment constraints (if you
can think of a better way to do this, bearing in mind that we can't create
/environment until we've got data for the PA in there, please tell me);
* MachineProvider
* CloudInit now needs a Constraints when setting up a master;
* juju-admin initialize now accept --constraints-data;
* get-constraints and set-constraints take an apparent long way round to
construct their constraints (they sync environents.yaml so that a provider
can be created from it by EnvironmentStat
internally in a number of places, and the fact that we have a provider
already available at the juju.control level is not so helpful);
* an awful lot of the diff is tedious test fixing in juju.providers.
Reviewers: mp+99852_ code.launchpad. net,
Message:
Please take a look.
Description:
Implement environment constraints
In user-visible terms:
* bootstrap now accepts --constraints;
* set-constraints now works without --service;
* get-constraints now accepts empty args and outputs env constraints.
In developer terms:
* EnvironmentStat eManager has new methods for get/set constraints; .bootstrap now requires a Constraints; eManager -- but ESM is used
* A new /constraints node is used to store environment constraints (if
you
can think of a better way to do this, bearing in mind that we can't
create
/environment until we've got data for the PA in there, please tell
me);
* MachineProvider
* CloudInit now needs a Constraints when setting up a master;
* juju-admin initialize now accept --constraints-data;
* get-constraints and set-constraints take an apparent long way round to
construct their constraints (they sync environents.yaml so that a
provider
can be created from it by EnvironmentStat
internally in a number of places, and the fact that we have a provider
already available at the juju.control level is not so helpful);
* an awful lot of the diff is tedious test fixing in juju.providers.
https:/ /code.launchpad .net/~fwereade/ juju/env- constraints/ +merge/ 99852
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5957043/
Affected files: tests/test_ provision. py bootstrap. py constraints_ get.py constraints_ set.py deploy. py initialize. py tests/test_ add_unit. py tests/test_ bootstrap. py tests/test_ constraints_ get.py tests/test_ constraints_ set.py tests/test_ deploy. py tests/test_ initialize. py utils.py t/tests/ test_config. py common/ base.py common/ bootstrap. py common/ cloudinit. py common/ launch. py common/ tests/data/ cloud_init_ bootstrap common/ tests/data/ cloud_init_ bootstrap_ zookeepers common/ tests/data/ cloud_init_ distro common/ tests/data/ cloud_init_ ppa common/ tests/test_ bootstrap. py common/ tests/test_ cloudinit. py dummy.py ec2/tests/ common. py ec2/tests/ data/bootstrap_ cloud_init ec2/tests/ test_bootstrap. py local/_ _init__ .py local/tests/ test_provider. py orchestra/ tests/data/ bootstrap_ user_data orchestra/ tests/test_ bootstrap. py tests/test_ dummy.py environment. py initialize. py machine. py service. py tests/test_ environment. py tests/test_ initialize. py tests/test_ service. py
A [revision details]
M juju/agents/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/control/
M juju/environmen
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/providers/
M juju/state/
M juju/state/
M juju/state/
M juju/state/
M juju/state/
M juju/state/
M juju/state/