Merge lp:~axwalk/juju-core/lp1321025-mongod-path-1.18 into lp:juju-core/1.18
Proposed by
Andrew Wilkins
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrew Wilkins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2294 | ||||
Proposed branch: | lp:~axwalk/juju-core/lp1321025-mongod-path-1.18 | ||||
Merge into: | lp:juju-core/1.18 | ||||
Diff against target: |
40 lines (+4/-3) 2 files modified
agent/mongo/mongo.go (+1/-1) environs/cloudinit/cloudinit_test.go (+3/-2) |
||||
To merge this branch: | bzr merge lp:~axwalk/juju-core/lp1321025-mongod-path-1.18 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+220544@code.launchpad.net |
Commit message
Use the right mongod binary on utopic
There was some broken code in agent/mongo
for calculating the mongod path. It special
cased trusty in two different ways.
Fixes lp:1321025
Description of the change
Use the right mongod binary on utopic
There was some broken code in agent/mongo
for calculating the mongod path. It special
cased trusty in two different ways.
Fixes lp:1321025
To post a comment you must log in.
Reviewers: mp+220544_ code.launchpad. net,
Message:
Please take a look.
Description:
Use the right mongod binary on utopic
There was some broken code in agent/mongo
for calculating the mongod path. It special
cased trusty in two different ways.
Fixes lp:1321025
https:/ /code.launchpad .net/~axwalk/ juju-core/ lp1321025- mongod- path-1. 18/+merge/ 220544
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/99410053/
Affected files (+6, -3 lines): mongo.go cloudinit/ cloudinit_ test.go
A [revision details]
M agent/mongo/
M environs/
Index: [revision details] 20140513040856- lm051mdy3n916km 6
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: agent/mongo/ mongo.go mongo/mongo. go' mongo.go 2014-03-19 04:08:45 +0000 mongo.go 2014-05-22 01:53:19 +0000 ries(series string) string { Series( series) == "juju-mongodb" {
=== modified file 'agent/
--- agent/mongo/
+++ agent/mongo/
@@ -44,7 +44,7 @@
// MongodPathForSeries returns the path to the mongod executable for the
// series of the machine that it is going to be running on.
func MongodPathForSe
- if series == "trusty" {
+ if MongoPackageFor
return JujuMongodPath
}
return MongodbServerPath
Index: environs/ cloudinit/ cloudinit_ test.go cloudinit/ cloudinit_ test.go' cloudinit/ cloudinit_ test.go 2014-03-24 04:05:24 +0000 cloudinit/ cloudinit_ test.go 2014-05-22 01:53:19 +0000 raring- amd64 '/var/lib/ juju/tools/ machine- 0' MachineConfig{ Keys: "sshkey1", onment: map[string] string{ agent.ProviderT ype: "dummy"}, "1.2.3- trusty- amd64") , "1.2.3- utopic- amd64") , rCert: serverCert, rKey: serverKey,
=== modified file 'environs/
--- environs/
+++ environs/
@@ -201,13 +201,13 @@
ln -s 1\.2\.3-
`,
}, {
- // trusty state server - use the new mongo from juju-mongodb
+ // utopic state server - use the new mongo from juju-mongodb
cfg: cloudinit.
MachineId: "0",
Authorized
AgentEnvir
// raring provides mongo in the archive
- Tools: newSimpleTools(
+ Tools: newSimpleTools(
StateServer: true,
StateServe
StateServe
@@ -457,6 +457,7 @@
"precise": "mongodb-server",
"raring": "mongodb-server",
"trusty": "juju-mongodb",
+ "utopic": "juju-mongodb",
}
for i, test := range cloudinitTests {