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

Issue 14387043: provider/null: fix storage issues

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by axw
Modified:
10 years, 7 months ago
Reviewers:
mp+189221, axw1, fwereade, rog
Visibility:
Public.

Description

provider/null: fix storage issues - Don't require CAKey to create a storage client - Do not specify a default for storage-auth-key, and fail validation if it's not set. A machine agent will not have an authkey initially, as it's a secret. It is transmitted on the first API connection. We need to fail config validation until that point. Fixes #1235100 Fixes #1235084 https://code.launchpad.net/~axwalk/juju-core/lp1235100-null-provider-storage/+merge/189221 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : provider/null: fix storage issues #

Total comments: 2

Patch Set 3 : provider/null: fix storage issues #

Patch Set 4 : provider/null: fix storage issues #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -5 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M provider/null/config.go View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M provider/null/config_test.go View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M provider/null/environ.go View 1 2 chunks +3 lines, -4 lines 1 comment Download

Messages

Total messages: 8
axw
Please take a look.
10 years, 7 months ago (2013-10-04 07:36:53 UTC) #1
axw
Please take a look.
10 years, 7 months ago (2013-10-04 08:22:23 UTC) #2
fwereade
Definitely needs config tests. Otherwise looking good -- the stuff in environ is not directly ...
10 years, 7 months ago (2013-10-04 09:23:04 UTC) #3
axw1
https://codereview.appspot.com/14387043/diff/4001/provider/null/config.go File provider/null/config.go (right): https://codereview.appspot.com/14387043/diff/4001/provider/null/config.go#newcode25 provider/null/config.go:25: "storage-auth-key": schema.String(), On 2013/10/04 09:23:04, fwereade wrote: > Needs ...
10 years, 7 months ago (2013-10-04 09:36:55 UTC) #4
axw
Please take a look.
10 years, 7 months ago (2013-10-04 09:38:23 UTC) #5
fwereade
LGTM pending live verification
10 years, 7 months ago (2013-10-04 09:40:00 UTC) #6
axw
Please take a look.
10 years, 7 months ago (2013-10-04 09:49:18 UTC) #7
rog
10 years, 7 months ago (2013-10-04 09:55:06 UTC) #8
LGTM with one possible thought

https://codereview.appspot.com/14387043/diff/15001/provider/null/environ.go
File provider/null/environ.go (right):

https://codereview.appspot.com/14387043/diff/15001/provider/null/environ.go#n...
provider/null/environ.go:178: logger.Errorf("missing CA cert or auth-key")
This could actually be a panic, I think, as we shouldn't be able to get to this
stage without both of those things set.
Sign in to reply to this message.

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