Merge lp://staging/~natefinch/juju-core/026-EnsureMongoServer into lp://staging/~go-bot/juju-core/trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~natefinch/juju-core/026-EnsureMongoServer |
Merge into: | lp://staging/~go-bot/juju-core/trunk |
Diff against target: |
756 lines (+448/-26) (has conflicts) 10 files modified
agent/agent.go (+10/-0) cmd/jujud/machine.go (+136/-14) cmd/jujud/machine_test.go (+9/-0) environs/cloudinit/cloudinit.go (+16/-3) provider/local/config.go (+0/-5) provider/local/environ.go (+210/-0) replicaset/replicaset.go (+4/-0) testing/mockupstart.go (+42/-0) upstart/service.go (+13/-2) upstart/upstart.go (+8/-2) Text conflict in cmd/jujud/machine.go Text conflict in cmd/jujud/machine_test.go Text conflict in environs/cloudinit/cloudinit.go Text conflict in provider/local/environ.go Text conflict in replicaset/replicaset.go |
To merge this branch: | bzr merge lp://staging/~natefinch/juju-core/026-EnsureMongoServer |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+201961@code.staging.launchpad.net |
Description of the change
EnsureMongoServer function for MachineAgent
Implement a method to allow the machine agent to create & run the upstart script for mongo.
Unmerged revisions
- 2188. By Nate Finch
-
I should learn to hit save before commiting
- 2187. By Nate Finch
-
make sure the bootstrap node doesn't try to connect to the API to get its state
- 2186. By Nate Finch
-
fix a couple build errors
- 2185. By Nate Finch
-
Add code to mock out upstart so we can successfully run the new machine agent code during tests. Also added code to only run EnsureMongoServer when the machine agent has the ManageEnviron job
- 2184. By Nate Finch
-
add the ensure part of ensuremongoserver, also remove the old upstart stuff so we always run it from machine agent
- 2183. By Nate Finch
-
twiddle the comment to help kick rietveld
- 2182. By Nate Finch
-
line got deleted somehow
- 2181. By Nate Finch
-
create ensuremongoserver function to create/rewrite the mongo upstart script from the machine agent
- 2180. By Nate Finch
-
Let's spell replSet correctly, eh?
- 2179. By Nate Finch
-
uncomment some tests, change mongo upstart to always set mongo in replicaset mode
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
agent/agent.go:232: func MongoDbDir(dir string) string {
or this could be a method on Config.
at the least, dir should be named "dataDir"
https:/ /codereview. appspot. com/53220043/ diff/20001/ cmd/jujud/ machine. go machine. go (right):
File cmd/jujud/
https:/ /codereview. appspot. com/53220043/ diff/20001/ cmd/jujud/ machine. go#newcode386 machine. go:386: if err := conf.Install(); err != nil {
cmd/jujud/
Do we really want to do this every time the machine agent bounces?
If possible I'd prefer to avoid bouncing mongod in that case.
https:/ /codereview. appspot. com/53220043/ diff/20001/ replicaset/ replicaset. go replicaset. go (right):
File replicaset/
https:/ /codereview. appspot. com/53220043/ diff/20001/ replicaset/ replicaset. go#newcode257 replicaset. go:257: State MemberState `bson:"State"`
replicaset/
"state", surely?
https:/ /codereview. appspot. com/53220043/