Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(82)

Issue 7237048: Initial openstack image constraints (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by wallyworld
Modified:
11 years, 3 months ago
Reviewers:
mp+145302
Visibility:
Public.

Description

Initial openstack image constraints This branch adds skeletal support for openstack image contraints. The retrieval of the image id to use is abstracted away, and the API is similar to that used for ec2 - specify a series, arch, region and get an image id to use. There's no http://cloud-images.ubuntu.com yet for openstack, so as a fallback the user can specify an image id to use in their config. Like the case for pyjuju, this "default-image-id" config defaults to "" so must be correctly set up by the user for things to work. https://code.launchpad.net/~wallyworld/juju-core/openstack-image-constraint/+merge/145302 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Initial openstack image constraints #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -14 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/config.go View 1 3 chunks +6 lines, -0 lines 0 comments Download
M environs/openstack/config_test.go View 1 3 chunks +10 lines, -0 lines 0 comments Download
M environs/openstack/export_test.go View 1 1 chunk +15 lines, -1 line 0 comments Download
A environs/openstack/image.go View 1 1 chunk +51 lines, -0 lines 0 comments Download
M environs/openstack/live_test.go View 1 3 chunks +24 lines, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 3 chunks +14 lines, -13 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
11 years, 3 months ago (2013-01-29 04:08:08 UTC) #1
jameinel
Overall seems ok, but it feels like we are missing unit tests for the findInstanceId ...
11 years, 3 months ago (2013-01-29 13:10:30 UTC) #2
gz
LGTM https://codereview.appspot.com/7237048/diff/1/environs/openstack/config.go File environs/openstack/config.go (right): https://codereview.appspot.com/7237048/diff/1/environs/openstack/config.go#newcode16 environs/openstack/config.go:16: ) I think we probably shouldn't provide a ...
11 years, 3 months ago (2013-01-29 16:10:55 UTC) #3
wallyworld
I've added some tests for findInstanceSpec as requested. https://codereview.appspot.com/7237048/diff/1/environs/openstack/config.go File environs/openstack/config.go (right): https://codereview.appspot.com/7237048/diff/1/environs/openstack/config.go#newcode16 environs/openstack/config.go:16: ) ...
11 years, 3 months ago (2013-01-30 00:25:17 UTC) #4
wallyworld
11 years, 3 months ago (2013-01-30 00:29:45 UTC) #5
*** Submitted:

Initial openstack image constraints

This branch adds skeletal support for openstack image contraints.
The retrieval of the image id to use is abstracted away, and the API
is similar to that used for ec2 - specify a series, arch, region and get an
image id to use.

There's no http://cloud-images.ubuntu.com yet for openstack, so as a fallback
the user can specify an image id to use in their config. Like the case for
pyjuju, this "default-image-id" config defaults to "" so must be correctly
set up by the user for things to work.

R=jameinel, gz
CC=
https://codereview.appspot.com/7237048
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b