Merge lp:~gz/juju-core/revert_upstart_mongodb_1286279 into lp:~go-bot/juju-core/trunk

Proposed by Martin Packman
Status: Merged
Approved by: Dimiter Naydenov
Approved revision: no longer in the source branch.
Merged at revision: 2396
Proposed branch: lp:~gz/juju-core/revert_upstart_mongodb_1286279
Merge into: lp:~go-bot/juju-core/trunk
Diff against target: 24 lines (+1/-6)
1 file modified
agent/mongo/mongo.go (+1/-6)
To merge this branch: bzr merge lp:~gz/juju-core/revert_upstart_mongodb_1286279
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+209959@code.launchpad.net

Commit message

agent/mongo: Revert attempted use of juju-mongodb

Currently upstart scripts are generated on the client and included in
the cloud-init data. The change to check for the existence of the new
juju-mongodb package breaks remote bootstrap, as it will see the
alternative location locally with a stat, then generate an upstart file
that the spawned machine cannot use. This branch reverts to using a hard
coded path where mongod can be found.

https://codereview.appspot.com/72310044/

R=jameinel, natefinch

Description of the change

agent/mongo: Revert attempted use of juju-mongodb

Currently upstart scripts are generated on the client and included in
the cloud-init data. The change to check for the existence of the new
juju-mongodb package breaks remote bootstrap, as it will see the
alternative location locally with a stat, then generate an upstart file
that the spawned machine cannot use. This branch reverts to using a hard
coded path where mongod can be found.

Future work will cover moving the upstart script generatation off the
the client and onto the server so it can actually do the right thing.

https://codereview.appspot.com/72310044/

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Reviewers: mp+209959_code.launchpad.net,

Message:
Please take a look.

Description:
agent/mongo: Revert attempted use of juju-mongodb

Currently upstart scripts are generated on the client and included in
the cloud-init data. The change to check for the existence of the new
juju-mongodb package breaks remote bootstrap, as it will see the
alternative location locally with a stat, then generate an upstart file
that the spawned machine cannot use. This branch reverts to using a hard
coded path where mongod can be found.

Future work will cover moving the upstart script generatation off the
the client and onto the server so it can actually do the right thing.

https://code.launchpad.net/~gz/juju-core/revert_upstart_mongodb_1286279/+merge/209959

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/72310044/

Affected files (+3, -6 lines):
   A [revision details]
   M agent/mongo/mongo.go

Index: [revision details]
=== 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-20140307153331-0dz39lrd1tzn982m
+New revision: <email address hidden>

Index: agent/mongo/mongo.go
=== modified file 'agent/mongo/mongo.go'
--- agent/mongo/mongo.go 2014-03-07 12:02:41 +0000
+++ agent/mongo/mongo.go 2014-03-07 16:08:14 +0000
@@ -139,11 +139,6 @@

   dbDir := path.Join(dataDir, "db")

- mongodpath, err := MongodPath()
- if err != nil {
- return nil, err
- }
-
   conf := &upstart.Conf{
    Service: *svc,
    Desc: "juju state database",
@@ -151,7 +146,7 @@
     "nofile": fmt.Sprintf("%d %d", maxFiles, maxFiles),
     "nproc": fmt.Sprintf("%d %d", maxProcs, maxProcs),
    },
- Cmd: mongodpath +
+ Cmd: "/usr/bin/mongod" +
     " --auth" +
     " --dbpath=" + dbDir +
     " --sslOnNormalPorts" +

Revision history for this message
John A Meinel (jameinel) wrote :

LGTM, but I don't mind having someone else give it a look.

https://codereview.appspot.com/72310044/

Revision history for this message
Nate Finch (natefinch) wrote :

On 2014/03/07 16:20:42, jameinel wrote:
> LGTM, but I don't mind having someone else give it a look.

LGTM. Thanks.

https://codereview.appspot.com/72310044/

Revision history for this message
Go Bot (go-bot) wrote :
Download full text (9.8 KiB)

The attempt to merge lp:~gz/juju-core/revert_upstart_mongodb_1286279 into lp:juju-core failed. Below is the output from the failed tests.

ok launchpad.net/juju-core 0.013s
ok launchpad.net/juju-core/agent 1.006s
ok launchpad.net/juju-core/agent/mongo 0.505s
ok launchpad.net/juju-core/agent/tools 0.198s
ok launchpad.net/juju-core/bzr 5.332s
ok launchpad.net/juju-core/cert 3.348s
ok launchpad.net/juju-core/charm 0.401s
? launchpad.net/juju-core/charm/hooks [no test files]
? launchpad.net/juju-core/charm/testing [no test files]
ok launchpad.net/juju-core/cloudinit 0.027s
ok launchpad.net/juju-core/cloudinit/sshinit 0.761s
ok launchpad.net/juju-core/cmd 0.167s
ok launchpad.net/juju-core/cmd/charm-admin 0.762s
? launchpad.net/juju-core/cmd/charmd [no test files]
? launchpad.net/juju-core/cmd/charmload [no test files]
ok launchpad.net/juju-core/cmd/juju 197.819s
ok launchpad.net/juju-core/cmd/jujud 62.877s
ok launchpad.net/juju-core/cmd/plugins/juju-metadata 10.319s
? launchpad.net/juju-core/cmd/plugins/juju-restore [no test files]
ok launchpad.net/juju-core/cmd/plugins/local 0.173s
? launchpad.net/juju-core/cmd/plugins/local/juju-local [no test files]
ok launchpad.net/juju-core/constraints 0.023s
ok launchpad.net/juju-core/container 0.049s
ok launchpad.net/juju-core/container/factory 0.051s
ok launchpad.net/juju-core/container/kvm 0.260s
ok launchpad.net/juju-core/container/kvm/mock 0.041s
? launchpad.net/juju-core/container/kvm/testing [no test files]
ok launchpad.net/juju-core/container/lxc 0.218s
? launchpad.net/juju-core/container/lxc/mock [no test files]
? launchpad.net/juju-core/container/lxc/testing [no test files]
? launchpad.net/juju-core/container/testing [no test files]
ok launchpad.net/juju-core/downloader 5.230s
ok launchpad.net/juju-core/environs 2.495s
ok launchpad.net/juju-core/environs/bootstrap 3.002s
ok launchpad.net/juju-core/environs/cloudinit 0.441s
ok launchpad.net/juju-core/environs/config 2.050s
ok launchpad.net/juju-core/environs/configstore 0.029s
ok launchpad.net/juju-core/environs/filestorage 0.024s
ok launchpad.net/juju-core/environs/httpstorage 0.668s
ok launchpad.net/juju-core/environs/imagemetadata 0.398s
? launchpad.net/juju-core/environs/imagemetadata/testing [no test files]
ok launchpad.net/juju-core/environs/instances 0.043s
ok launchpad.net/juju-core/environs/jujutest 0.176s
ok launchpad.net/juju-core/environs/manual 10.433s
ok launchpad.net/juju-core/environs/simplestreams 0.259s
? launchpad.net/juju-core/environs/simplestreams/testing [no test files]
ok launchpad.net/juju-core/environs/sshstorage 0.850s
ok launchpad.net/juju-core/environs/storage 0.908s
ok launchpad.net/juju-core/environs/sync 24.196s
ok launchpad.net/juju-core/environs/testing 0.153s
ok launchpad.net/juju-core/environs/tools 4.774s
? launchpad.net/juju-core/environs/tools/testing [no test files]
ok launchpad.net/juju-core/errors 0.015s
ok launchpad.net/juju-core/instance 0.017s
? launchpad.net/juju-core/instance/testing [no test files]
ok launchpad.net/juju-core/juju 17.471s
ok launchpad.net/juju-core/juju/osenv 0...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'agent/mongo/mongo.go'
2--- agent/mongo/mongo.go 2014-03-07 12:02:41 +0000
3+++ agent/mongo/mongo.go 2014-03-07 16:17:29 +0000
4@@ -139,11 +139,6 @@
5
6 dbDir := path.Join(dataDir, "db")
7
8- mongodpath, err := MongodPath()
9- if err != nil {
10- return nil, err
11- }
12-
13 conf := &upstart.Conf{
14 Service: *svc,
15 Desc: "juju state database",
16@@ -151,7 +146,7 @@
17 "nofile": fmt.Sprintf("%d %d", maxFiles, maxFiles),
18 "nproc": fmt.Sprintf("%d %d", maxProcs, maxProcs),
19 },
20- Cmd: mongodpath +
21+ Cmd: "/usr/bin/mongod" +
22 " --auth" +
23 " --dbpath=" + dbDir +
24 " --sslOnNormalPorts" +

Subscribers

People subscribed via source and target branches

to status/vote changes: