Merge lp:~axwalk/juju-core/state-environcapability into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2552 |
Proposed branch: | lp:~axwalk/juju-core/state-environcapability |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
546 lines (+263/-33) 17 files modified
agent/bootstrap_test.go (+5/-2) environs/interface.go (+2/-16) environs/statepolicy.go (+8/-10) provider/azure/environ.go (+3/-0) provider/common/policies.go (+30/-0) provider/dummy/environs.go (+3/-0) provider/ec2/ec2.go (+3/-0) provider/joyent/environ.go (+3/-0) provider/local/environ.go (+3/-0) provider/maas/environ.go (+3/-0) provider/manual/environ.go (+2/-0) provider/openstack/provider.go (+3/-0) state/addmachine.go (+15/-0) state/conn_test.go (+10/-2) state/environcapability_test.go (+116/-0) state/policy.go (+49/-3) state/unit.go (+5/-0) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/state-environcapability |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+211749@code.launchpad.net |
Commit message
Add EnvironCapability to state.Policy
environs.
state package, extended with the
SupportsUnitPla
the state.Policy interface.
Methods for creating machines and assigning
units to them are now modified to use the
SupportsUnitPla
policy implementations to block adding of
empty machines (juju add-machine) and to
block unit placement (deploy/add-unit --to).
Also, a new EnvironBase type is added to
provider/common, which implements some
default behaviour common to all providers
such as the new SupportsUnitPla
method.
A followup will override the default
behaviour of SupportsUnitPla
Azure provider, blocking placement if in
availability-
Description of the change
Add EnvironCapability to state.Policy
environs.
state package, extended with the
SupportsUnitPla
the state.Policy interface.
Methods for creating machines and assigning
units to them are now modified to use the
SupportsUnitPla
policy implementations to block adding of
empty machines (juju add-machine) and to
block unit placement (deploy/add-unit --to).
Also, a new EnvironBase type is added to
provider/common, which implements some
default behaviour common to all providers
such as the new SupportsUnitPla
method.
A followup will override the default
behaviour of SupportsUnitPla
Azure provider, blocking placement if in
availability-
Reviewers: mp+211749_ code.launchpad. net,
Message:
Please take a look.
Description:
Add EnvironCapability to state.Policy
environs. EnvironCapabili ty is moved to the cement method, and added to
state package, extended with the
SupportsUnitPla
the state.Policy interface.
Methods for creating machines and assigning cement method to enable
units to them are now modified to use the
SupportsUnitPla
policy implementations to block adding of
empty machines (juju add-machine) and to
block unit placement (deploy/add-unit --to).
Also, a new EnvironBase type is added to cement
provider/common, which implements some
default behaviour common to all providers
such as the new SupportsUnitPla
method.
A followup will override the default cement in the sets-enabled mode.
behaviour of SupportsUnitPla
Azure provider, blocking placement if in
availability-
https:/ /code.launchpad .net/~axwalk/ juju-core/ state-environca pability/ +merge/ 211749
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/77820044/
Affected files (+232, -32 lines): interface. go statepolicy. go azure/environ. go common/ environbase. go dummy/environs. go joyent/ environ. go local/environ. go maas/environ. go manual/ environ. go openstack/ provider. go pability_ test.go
A [revision details]
M environs/
M environs/
M provider/
A provider/
M provider/
M provider/ec2/ec2.go
M provider/
M provider/
M provider/
M provider/
M provider/
M state/addmachine.go
M state/conn_test.go
A state/environca
M state/policy.go
M state/unit.go