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

Issue 9128047: Use multiple base urls for simplestreams (Closed)

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

Description

Use multiple base urls for simplestreams The simplestreams image metadata lookup now takes multiple base urls, and looks at each in turn to try and find an index file containing the requested image. The order of looking is: - public bucket (if openstack) - product-streams keystone catalog entry (if openstack) - default cloud-images.ubuntu.com url The ec2 and openstack providers have been configured to generate the above urls. The next branch will use these urls and the simplestreams support to find the image id for the relevant image based on series, arch etc. https://code.launchpad.net/~wallyworld/juju-core/simplestreams-multiple-indices/+merge/162919 Requires: https://code.launchpad.net/~wallyworld/juju-core/oxygen-data-parse/+merge/162308 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Use multiple base urls for simplestreams #

Patch Set 3 : Use multiple base urls for simplestreams #

Total comments: 16

Patch Set 4 : Use multiple base urls for simplestreams #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -27 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/upgradejuju.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/upgrade.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 chunks +22 lines, -1 line 0 comments Download
M environs/ec2/export_test.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M environs/imagemetadata/simplestreams.go View 1 2 3 6 chunks +41 lines, -13 lines 0 comments Download
M environs/imagemetadata/simplestreams_test.go View 1 2 3 3 chunks +10 lines, -4 lines 0 comments Download
M environs/interface.go View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M environs/openstack/export_test.go View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M environs/openstack/local_test.go View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 8 chunks +41 lines, -6 lines 0 comments Download

Messages

Total messages: 12
wallyworld
Please take a look.
11 years ago (2013-05-08 02:36:34 UTC) #1
wallyworld
Please take a look.
10 years, 12 months ago (2013-05-10 16:29:41 UTC) #2
wallyworld
Please take a look.
10 years, 11 months ago (2013-05-16 00:31:05 UTC) #3
jameinel
LGTM https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go#newcode212 environs/imagemetadata/simplestreams.go:212: if _, ok := err.(*environs.NotFoundError); ok { generally ...
10 years, 11 months ago (2013-05-16 06:47:13 UTC) #4
fwereade
a few questions... https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go#newcode361 environs/ec2/ec2.go:361: // Add the simplestreams base URL ...
10 years, 11 months ago (2013-05-16 08:59:11 UTC) #5
jameinel
https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go#newcode361 environs/ec2/ec2.go:361: // Add the simplestreams base URL off the public ...
10 years, 11 months ago (2013-05-16 09:06:19 UTC) #6
wallyworld
https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/ec2/ec2.go#newcode361 environs/ec2/ec2.go:361: // Add the simplestreams base URL off the public ...
10 years, 11 months ago (2013-05-17 01:36:03 UTC) #7
jameinel
https://codereview.appspot.com/9128047/diff/7001/environs/openstack/local_test.go File environs/openstack/local_test.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/openstack/local_test.go#newcode423 environs/openstack/local_test.go:423: c.Check(strings.HasSuffix(urls[1], "/imagemetadata"), Equals, true) > Yes. But in a ...
10 years, 11 months ago (2013-05-17 11:42:14 UTC) #8
wallyworld
On 2013/05/17 11:42:14, jameinel wrote: > https://codereview.appspot.com/9128047/diff/7001/environs/openstack/local_test.go > File environs/openstack/local_test.go (right): > > https://codereview.appspot.com/9128047/diff/7001/environs/openstack/local_test.go#newcode423 > ...
10 years, 11 months ago (2013-05-17 11:53:26 UTC) #9
TheMue
Only few comments. https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go#newcode212 environs/imagemetadata/simplestreams.go:212: if _, ok := err.(*environs.NotFoundError); ok ...
10 years, 11 months ago (2013-05-21 16:07:22 UTC) #10
wallyworld
https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9128047/diff/7001/environs/imagemetadata/simplestreams.go#newcode212 environs/imagemetadata/simplestreams.go:212: if _, ok := err.(*environs.NotFoundError); ok { On 2013/05/21 ...
10 years, 11 months ago (2013-05-21 22:01:52 UTC) #11
wallyworld
10 years, 11 months ago (2013-05-22 23:46:43 UTC) #12
*** Submitted:

Use multiple base urls for simplestreams

The simplestreams image metadata lookup now takes multiple base urls, and looks
at each
in turn to try and find an index file containing the requested image. The order
of looking
is:
- public bucket (if openstack)
- product-streams keystone catalog entry (if openstack)
- default cloud-images.ubuntu.com url

The ec2 and openstack providers have been configured to generate the above urls.
The next 
branch will use these urls and the simplestreams support to find the image id
for the 
relevant image based on series, arch etc.

R=jameinel, fwereade, TheMue
CC=
https://codereview.appspot.com/9128047
Sign in to reply to this message.

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