Merge lp://staging/~wallyworld/juju-core/image-metadata-defaults into lp://staging/~juju/juju-core/trunk
Status: | Merged |
---|---|
Merged at revision: | 1228 |
Proposed branch: | lp://staging/~wallyworld/juju-core/image-metadata-defaults |
Merge into: | lp://staging/~juju/juju-core/trunk |
Prerequisite: | lp://staging/~wallyworld/juju-core/signed-simplestreams |
Diff against target: |
1038 lines (+381/-229) 14 files modified
environs/ec2/config.go (+23/-11) environs/ec2/config_test.go (+28/-10) environs/ec2/ec2.go (+7/-5) environs/ec2/export_test.go (+6/-0) environs/ec2/image_test.go (+49/-19) environs/instances/image.go (+19/-55) environs/instances/image_test.go (+43/-47) environs/instances/instancetype.go (+59/-12) environs/instances/instancetype_test.go (+57/-23) environs/openstack/config.go (+6/-0) environs/openstack/config_test.go (+40/-30) environs/openstack/export_test.go (+12/-0) environs/openstack/local_test.go (+31/-17) environs/openstack/provider.go (+1/-0) |
To merge this branch: | bzr merge lp://staging/~wallyworld/juju-core/image-metadata-defaults |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+164072@code.staging.launchpad.net |
Description of the change
Fix default image/instance type behaviour
Both EC2/Openstack support default-
Openstack also supports override-image-id. The behaviour is:
1. default-
If more than one instance type matches the constraints, use this one.
An error is raised if no valid instance types can be found, eg arch is
specified as arm but only amd64 instance types are available.
2. default-image-id
If more than one valid image is available, use this one.
Used to allow a user to use their own custom image, so long as it
matches the available instance types and is in metadata.
3. override-image-id
If no image can be found, use this one. Ignored if an image is found.
The override-image-id is used in the same way PyJuju used default-image-id
(for openstack installs where no image metadata is available).
Reviewers: mp+164072_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix default image/instance type behaviour
Both EC2/Openstack support default- instance- type and default-image-id.
Openstack also supports override-image-id. The behaviour is:
1. default- instance- type
If more than one instance type matches the constraints, use this one.
An error is raised if no valid instance types can be found, eg arch is
specified as arm but only amd64 instance types are available.
2. default-image-id
If more than one valid image is available, use this one.
Used to allow a user to use their own custom image, so long as it
matches the available instance types and is in metadata.
3. override-image-id
If no image can be found, use this one. Ignored if an image is found.
The override-image-id is used in the same way PyJuju used
default-image-id
(for openstack installs where no image metadata is available).
https:/ /code.launchpad .net/~wallyworl d/juju- core/image- metadata- defaults/ +merge/ 164072
Requires: /code.launchpad .net/~wallyworl d/juju- core/signed- simplestreams/ +merge/ 163824
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/9303051/
Affected files: ec2/config. go ec2/config_ test.go ec2/export_ test.go ec2/image_ test.go instances/ image.go instances/ image_test. go instances/ instancetype. go instances/ instancetype_ test.go openstack/ config. go openstack/ config_ test.go openstack/ export_ test.go openstack/ local_test. go openstack/ provider. go
A [revision details]
M environs/
M environs/
M environs/ec2/ec2.go
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/