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

Issue 53220043: EnsureMongoServer function for MachineAgent

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by natefinch
Modified:
10 years, 3 months ago
Reviewers:
mp+201961, fwereade, rog
Visibility:
Public.

Description

EnsureMongoServer function for MachineAgent Implement a method to allow the machine agent to create & run the upstart script for mongo. https://code.launchpad.net/~natefinch/juju-core/026-EnsureMongoServer/+merge/201961 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : EnxureMongoServer function for MachineAgent #

Total comments: 3

Patch Set 3 : EnxureMongoServer function for MachineAgent #

Patch Set 4 : EnsureMongoServer function for MachineAgent #

Total comments: 3

Patch Set 5 : EnsureMongoServer function for MachineAgent #

Patch Set 6 : EnsureMongoServer function for MachineAgent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -61 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 4 chunks +10 lines, -0 lines 0 comments Download
cmd/jujud/machine.go View 1 2 3 4 5 7 chunks +127 lines, -15 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 4 4 chunks +6 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 4 chunks +2 lines, -30 lines 0 comments Download
M provider/local/config.go View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M provider/local/environ.go View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M replicaset/replicaset.go View 1 chunk +1 line, -1 line 0 comments Download
M replicaset/replicaset_test.go View 4 chunks +2 lines, -4 lines 0 comments Download
A testing/mockupstart.go View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
M upstart/service.go View 1 2 2 chunks +13 lines, -2 lines 0 comments Download
M upstart/upstart.go View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 4
rog
Looks good so far, with a couple of suggestions/queries below. https://codereview.appspot.com/53220043/diff/20001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/53220043/diff/20001/agent/agent.go#newcode232 ...
10 years, 3 months ago (2014-01-16 17:01:11 UTC) #1
natefinch
Some more clean up, and now add the "ensure" part of ensure mongo server. Also ...
10 years, 3 months ago (2014-01-16 21:39:14 UTC) #2
natefinch
Please take a look.
10 years, 3 months ago (2014-01-17 10:56:42 UTC) #3
fwereade
10 years, 3 months ago (2014-01-22 10:46:38 UTC) #4
couple of quick comments, I think I may have misunderstood the StatePort bits,
can we chat when you're free?

https://codereview.appspot.com/53220043/diff/60001/agent/agent.go
File agent/agent.go (right):

https://codereview.appspot.com/53220043/diff/60001/agent/agent.go#newcode99
agent/agent.go:99: StatePort() int
I'm a bit bothered about storing this in agent config. And actually about
storing *any* of this stuff in agent config -- we have manual bootstrap now, and
I don't see why this is needed any more.

https://codereview.appspot.com/53220043/diff/60001/provider/local/environ.go
File provider/local/environ.go (right):

https://codereview.appspot.com/53220043/diff/60001/provider/local/environ.go#...
provider/local/environ.go:427: journalDir := filepath.Join(env.config.rootDir(),
"db/journal")
"db", "journal"?

https://codereview.appspot.com/53220043/diff/60001/upstart/service.go
File upstart/service.go (right):

https://codereview.appspot.com/53220043/diff/60001/upstart/service.go#newcode26
upstart/service.go:26: func MongoUpstartService(name, dataDir string, port int)
*Conf {
Hmm, I'm really not sure this is the right package for this file. Isn't this
stuff all specific to instance config?
Sign in to reply to this message.

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