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

Issue 9138044: Initial simple streams support (Closed)

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

Description

Initial simple streams support This branch adds a simple streams package to allow image metadata to be retrieved from json encoded metadata. The process starts by reading an index file from a known URL. The URL will be a static URL for EC2 (http://cloud-images.ubuntu.com/releases), and for openstack can be published in the keystone catalog or provided from an env config. This latter work to plug in the URLs from the providers will be done separately. This branch is just the core capability. The data model used is a single implementation for all providers (so far EC2 and Openstack). Various providers use many different metadata attributes but these are ignored - only the common ones like id, region, arch, vtype etc are required to be read and used for filtering, and only the id is ultimately required by the calling business logic. The tests are written to use example data to check the various processing scenarios, but also can be run live against canonistack or EC2. The live tests are a subset of the local tests and check that basic parsing and image lookup works with real data from two providers with significant differences in the exact data attributes used. The canonistack metadata has been published in a known public bucket. https://code.launchpad.net/~wallyworld/juju-core/oxygen-data-parse/+merge/162308 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 56

Patch Set 2 : Initial simple streams support #

Total comments: 7

Patch Set 3 : Initial simple streams support #

Patch Set 4 : Initial simple streams support #

Patch Set 5 : Initial simple streams support #

Total comments: 28

Patch Set 6 : Initial simple streams support #

Unified diffs Side-by-side diffs Delta from patch set Stats (+946 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A environs/imagemetadata/simplestreams.go View 1 2 3 4 5 1 chunk +510 lines, -0 lines 0 comments Download
A environs/imagemetadata/simplestreams_test.go View 1 2 3 4 5 1 chunk +434 lines, -0 lines 0 comments Download

Messages

Total messages: 16
wallyworld
Please take a look.
11 years ago (2013-05-03 08:12:42 UTC) #1
rog
Nice work deciphering a fairly abstruse format. Generally pretty good, but could use some work. ...
11 years ago (2013-05-03 14:58:08 UTC) #2
smoser
https://codereview.appspot.com/9138044/diff/1/environs/simplestreams/simplestreams.go File environs/simplestreams/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/1/environs/simplestreams/simplestreams.go#newcode4 environs/simplestreams/simplestreams.go:4: package simplestreams On 2013/05/03 14:58:08, rog wrote: > This ...
11 years ago (2013-05-03 15:52:45 UTC) #3
wallyworld
Please take a look. https://codereview.appspot.com/9138044/diff/1/environs/simplestreams/simplestreams.go File environs/simplestreams/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/1/environs/simplestreams/simplestreams.go#newcode1 environs/simplestreams/simplestreams.go:1: // Support for locating, parsing, ...
11 years ago (2013-05-07 06:35:52 UTC) #4
gz
A couple of comments, I've not gone over everything. https://codereview.appspot.com/9138044/diff/7001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/7001/environs/imagemetadata/simplestreams.go#newcode23 environs/imagemetadata/simplestreams.go:23: ...
11 years ago (2013-05-07 17:33:54 UTC) #5
wallyworld
Please take a look. https://codereview.appspot.com/9138044/diff/7001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/7001/environs/imagemetadata/simplestreams.go#newcode23 environs/imagemetadata/simplestreams.go:23: var releaseVersions = map[string]string{ On ...
11 years ago (2013-05-07 18:46:38 UTC) #6
wallyworld
Please take a look.
11 years ago (2013-05-07 19:08:18 UTC) #7
wallyworld
Please take a look.
10 years, 12 months ago (2013-05-10 16:25:48 UTC) #8
gz
LGTM with the changes
10 years, 12 months ago (2013-05-10 18:26:26 UTC) #9
rog
LGTM with the below issues addressed. thanks! https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go#newcode36 environs/imagemetadata/simplestreams.go:36: func NewImageConstraint(region, ...
10 years, 11 months ago (2013-05-15 17:06:26 UTC) #10
wallyworld
Thanks for the review. I've implemented the suggestions but have a question about the NewImageConstraint() ...
10 years, 11 months ago (2013-05-16 00:24:14 UTC) #11
jameinel
LGTM https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go#newcode87 environs/imagemetadata/simplestreams.go:87: // On non-Ubuntu systems this file won't exist ...
10 years, 11 months ago (2013-05-16 06:18:52 UTC) #12
fwereade
sorry, but not LGTM without further discussion https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go File environs/imagemetadata/simplestreams.go (right): https://codereview.appspot.com/9138044/diff/18001/environs/imagemetadata/simplestreams.go#newcode28 environs/imagemetadata/simplestreams.go:28: Release string ...
10 years, 11 months ago (2013-05-16 07:54:54 UTC) #13
rog
On 16 May 2013 01:24, <ian.booth@canonical.com> wrote: > Thanks for the review. I've implemented the ...
10 years, 11 months ago (2013-05-16 09:50:27 UTC) #14
wallyworld
As discussed with William on a hangout, this code is just for the parsing of ...
10 years, 11 months ago (2013-05-17 01:10:26 UTC) #15
wallyworld
10 years, 11 months ago (2013-05-22 23:42:48 UTC) #16
*** Submitted:

Initial simple streams support

This branch adds a simple streams package to allow image metadata to be
retrieved 
from json encoded metadata. The process starts by reading an index file from a
known
URL. The URL will be a static URL for EC2
(http://cloud-images.ubuntu.com/releases),
and for openstack can be published in the keystone catalog or provided from an
env
config. This latter work to plug in the URLs from the providers will be done
separately.
This branch is just the core capability.

The data model used is a single implementation for all providers (so far EC2 and
Openstack).
Various providers use many different metadata attributes but these are ignored -
only the common
ones like id, region, arch, vtype etc are required to be read and used for
filtering, and only
the id is ultimately required by the calling business logic.

The tests are written to use example data to check the various processing
scenarios, but
also can be run live against canonistack or EC2. The live tests are a subset of
the local
tests and check that basic parsing and image lookup works with real data from
two providers
with significant differences in the exact data attributes used. The canonistack
metadata has
been published in a known public bucket.

R=rog, smoser, gz, jameinel, fwereade
CC=
https://codereview.appspot.com/9138044
Sign in to reply to this message.

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