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

Issue 10952043: Further break up cloudinit.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by thumper
Modified:
10 years, 9 months ago
Reviewers:
mue, dave, mp+173121, wallyworld
Visibility:
Public.

Description

Further break up cloudinit. Move the definitions of the mongo and machine agent services into the upstart package. These have been parameterized to allow reuse in the local provider. There definitions have been moved from the cloudinit function, and as you can see there are two different ways of defining the command. I have left it up to the reviewers to decide which is better. Personally I'm leaning towards the style used to define the mongo service. Also, wondering about specific tests for these. They don't really do much except format the parameters for a new object. https://code.launchpad.net/~thumper/juju-core/upstart-services/+merge/173121 Requires: https://code.launchpad.net/~thumper/juju-core/find-ipv4-address/+merge/173119 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Further break up cloudinit. #

Patch Set 3 : Further break up cloudinit. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -54 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 5 chunks +11 lines, -54 lines 1 comment Download
A upstart/service.go View 1 2 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 7
thumper
Please take a look.
10 years, 10 months ago (2013-07-05 01:31:00 UTC) #1
thumper
Please take a look.
10 years, 10 months ago (2013-07-05 01:53:17 UTC) #2
mue
I really like the approach, but would also like isolated tests for the new upstart ...
10 years, 10 months ago (2013-07-05 07:44:01 UTC) #3
wallyworld
LGTM. I prefer the string concatenation as it's easier to read. I also don't think ...
10 years, 9 months ago (2013-07-08 01:38:17 UTC) #4
thumper
On 2013/07/08 01:38:17, wallyworld wrote: > LGTM. I prefer the string concatenation as it's easier ...
10 years, 9 months ago (2013-07-08 02:58:51 UTC) #5
thumper
Please take a look.
10 years, 9 months ago (2013-07-08 03:05:32 UTC) #6
dave_cheney.net
10 years, 9 months ago (2013-07-08 06:36:50 UTC) #7
LGTM.

https://codereview.appspot.com/10952043/diff/9001/environs/cloudinit/cloudini...
File environs/cloudinit/cloudinit.go (right):

https://codereview.appspot.com/10952043/diff/9001/environs/cloudinit/cloudini...
environs/cloudinit/cloudinit.go:288: dbDir := path.Join(cfg.DataDir, "db")
ohh, this is a tricky one. Ideally you should use filepath.Join, but that means
on win32 clients, they will screw this up completely. good catch.
Sign in to reply to this message.

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