DescriptionOpenstack can use constraints
This branch removes the manadtory requirement to specify and image id and flavor
name when using juju with openstack. These config items can still be specified and
will be used as a fallback if required, but now the expected workflow is to use
contraints just like for ec2 to determine what type and size of instance to run.
The bulk of the business logic is moved from environs.ec2 up to environs, and this is
now shared between ec2 and openstack. Each of these providers provide a bit of specific
glue logic to tie it all together. ec2 uses hard coded instance type, openstack queries
the available flavors and uses information from there.
ec2 looks to files located at http://cloud-images.ubuntu.com to see what the available
instances are by looking in metadata files. openstack clouds don't have this luxury
so the implementation in this branch allows for the instance metadata files to be placed
in the private or public storage. The private storage takes precedence. The files live
under a directory structure named like so:
series-image-metadata/<series>/server/released.current.txt
This mimics the layout on cloud-images (with a differently named top level directory).
The next branch will remove the hard coded instance id and flavor name from the live
openstack tests as these are now no longer required.
https://code.launchpad.net/~wallyworld/juju-core/openstack-image-lookup/+merge/159301
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Openstack can use constraints #
Total comments: 10
Patch Set 3 : Openstack can use constraints #
Total comments: 54
Patch Set 4 : Openstack can use constraints #
Total comments: 14
Patch Set 5 : Openstack can use constraints #
Total comments: 20
Patch Set 6 : Openstack can use constraints #
MessagesTotal messages: 16
|