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

Issue 9876043: Verify storage writing on bootstrap (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by Danilo
Modified:
10 years, 10 months ago
Reviewers:
mue, dimitern, mp+166481, fwereade, jameinel
Visibility:
Public.

Description

Verify storage writing on bootstrap Replicates a mechanism used by python juju to test if private bucket storage is writeable by juju on bootstrap. It, however, uses a different content inside the bootstrap-verify file since we want to use the differences to detect a Python environment and fail on it (this is coming in a follow-up branch). This has been tested with ec2, but not with openstack or maas. Any suggestions on how to best do that are welcome. https://code.launchpad.net/~danilo/juju-core/bootstrap-verify/+merge/166481 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Verify storage writing on bootstrap #

Total comments: 23

Patch Set 3 : Verify storage writing on bootstrap #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -2 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M environs/dummy/environs.go View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M environs/dummy/storage.go View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M environs/ec2/ec2.go View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M environs/jujutest/livetests.go View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M environs/maas/environ.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M environs/storage.go View 1 2 3 chunks +11 lines, -0 lines 2 comments Download
M environs/storage_test.go View 1 2 2 chunks +45 lines, -0 lines 0 comments Download

Messages

Total messages: 14
Danilo
Please take a look.
10 years, 10 months ago (2013-05-30 11:16:48 UTC) #1
fwereade
Since you *did* implement this for the dummy provider, you could add a jujutest test ...
10 years, 10 months ago (2013-05-30 16:03:43 UTC) #2
Danilo
Please take a look.
10 years, 10 months ago (2013-06-04 12:24:24 UTC) #3
Danilo
On 2013/05/30 16:03:43, fwereade wrote: > Since you *did* implement this for the dummy provider, ...
10 years, 10 months ago (2013-06-04 12:31:29 UTC) #4
Danilo
https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go#newcode437 environs/dummy/environs.go:437: return fmt.Errorf("Provider storage is not writeable.") What would you ...
10 years, 10 months ago (2013-06-04 12:31:38 UTC) #5
mue
LGTM with some minor comments. https://codereview.appspot.com/9876043/diff/4001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/9876043/diff/4001/environs/ec2/ec2.go#newcode268 environs/ec2/ec2.go:268: return fmt.Errorf("Provider storage is ...
10 years, 10 months ago (2013-06-04 12:42:51 UTC) #6
jameinel
I think this is reasonable, but is it ok to just write something and look ...
10 years, 10 months ago (2013-06-04 17:15:34 UTC) #7
fwereade
On 2013/06/04 12:31:29, Danilo wrote: > On 2013/05/30 16:03:43, fwereade wrote: > > Since you ...
10 years, 10 months ago (2013-06-05 11:50:02 UTC) #8
fwereade
https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go#newcode437 environs/dummy/environs.go:437: return fmt.Errorf("Provider storage is not writeable.") On 2013/06/04 12:31:38, ...
10 years, 10 months ago (2013-06-05 11:50:10 UTC) #9
dimitern
Almost there and nice! Some minor suggestions, but big +1 on fwereade's comments about changing ...
10 years, 10 months ago (2013-06-07 12:35:20 UTC) #10
Danilo
Please take a look. https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/9876043/diff/1/environs/dummy/environs.go#newcode437 environs/dummy/environs.go:437: return fmt.Errorf("Provider storage is not ...
10 years, 10 months ago (2013-06-13 11:12:54 UTC) #11
jameinel
LGTM
10 years, 10 months ago (2013-06-13 11:40:40 UTC) #12
fwereade
LGTM, just one thought. https://codereview.appspot.com/9876043/diff/21001/environs/storage.go File environs/storage.go (right): https://codereview.appspot.com/9876043/diff/21001/environs/storage.go#newcode38 environs/storage.go:38: return err Might be nicer ...
10 years, 10 months ago (2013-06-13 16:02:22 UTC) #13
Danilo
10 years, 10 months ago (2013-06-18 10:16:57 UTC) #14
Message was sent while issue was closed.
https://codereview.appspot.com/9876043/diff/21001/environs/storage.go
File environs/storage.go (right):

https://codereview.appspot.com/9876043/diff/21001/environs/storage.go#newcode38
environs/storage.go:38: return err
On 2013/06/13 16:02:22, fwereade wrote:
> Might be nicer to log the actual error here, and return fmt.Errorf("provider
> storage is not writable"), so the clients can all just return non-nil errors
> unmodified.

I've done this (had to change the unit test for failure to match on this error
now).
Sign in to reply to this message.

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