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

Issue 98460046: Fix bootstrap for custom metadata

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

Description

Fix bootstrap for custom metadata When bootstrap was used with --metadata-source, the bootstrap aborted for private clouds without any existing image metadata. This is because the initialisation of the constraints validator tried to look up image metadata to get the supported achitectures. The solution is to defer constraints validation when --metadata-source is specified. https://code.launchpad.net/~wallyworld/juju-core/upload-custom-metadata-sooner/+merge/220561 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -9 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 3 chunks +25 lines, -9 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 1 chunk +30 lines, -0 lines 1 comment Download

Messages

Total messages: 2
wallyworld
Please take a look.
9 years, 11 months ago (2014-05-22 05:06:42 UTC) #1
axw
9 years, 11 months ago (2014-05-22 05:29:03 UTC) #2
LGTM

https://codereview.appspot.com/98460046/diff/1/cmd/juju/bootstrap_test.go
File cmd/juju/bootstrap_test.go (right):

https://codereview.appspot.com/98460046/diff/1/cmd/juju/bootstrap_test.go#new...
cmd/juju/bootstrap_test.go:507: validateCalled := 0
It's probably too excruciating, but it would be nice to test the order of
operations. i.e. check that validation occurs after uploading metadata.
Sign in to reply to this message.

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