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

Issue 81980043: support mongo namespaces

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by natefinch
Modified:
10 years ago
Reviewers:
mp+213334, jameinel, rog
Visibility:
Public.

Description

support mongo namespaces This change consolidates the name of the juju mongo database where it belongs - in the code that creates the scripts for mongo. It also fixes several bugs that were introduced due to the name change of the mongo service. Finally, it removes the ability to specify the exact name of the mongo service, but it still lets you add a namespace to prevent conflicts. This is necessary to support removal of old scripts.... the mongo code needs to control how the names are constructed. https://code.launchpad.net/~natefinch/juju-core/038-namespace/+merge/213334 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : support mongo namespaces #

Total comments: 16

Patch Set 3 : support mongo namespaces #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -133 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M agent/mongo/mongo.go View 1 2 4 chunks +26 lines, -46 lines 0 comments Download
M agent/mongo/mongo_test.go View 1 2 2 chunks +16 lines, -33 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 2 chunks +5 lines, -9 lines 0 comments Download
M environs/cloudinit.go View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 5 chunks +3 lines, -11 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 7 chunks +0 lines, -11 lines 0 comments Download
M provider/local/environ.go View 1 2 4 chunks +2 lines, -6 lines 0 comments Download
M provider/manual/environ.go View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M upgrades/agentconfig.go View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M upgrades/agentconfig_test.go View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M upstart/upstart.go View 1 2 3 chunks +29 lines, -7 lines 1 comment Download

Messages

Total messages: 7
natefinch
Please take a look.
10 years, 1 month ago (2014-03-28 20:40:26 UTC) #1
jameinel
I'm ok with the code, but I'm not sure why we need the juju-db-v2 part ...
10 years, 1 month ago (2014-03-30 10:19:35 UTC) #2
rog
Looks good in general. I tend to agree with john here. As discussed online, can ...
10 years, 1 month ago (2014-03-31 18:11:50 UTC) #3
natefinch
Please take a look.
10 years, 1 month ago (2014-04-01 20:48:02 UTC) #4
rog
Looks much better, thanks. A few comments and suggestions below. https://codereview.appspot.com/81980043/diff/20001/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/81980043/diff/20001/agent/mongo/mongo.go#newcode81 ...
10 years ago (2014-04-02 16:24:15 UTC) #5
natefinch
Please take a look. https://codereview.appspot.com/81980043/diff/20001/agent/mongo/mongo.go File agent/mongo/mongo.go (right): https://codereview.appspot.com/81980043/diff/20001/agent/mongo/mongo.go#newcode81 agent/mongo/mongo.go:81: // on this machine from ...
10 years ago (2014-04-07 11:20:42 UTC) #6
rog
10 years ago (2014-04-07 13:09:10 UTC) #7
LGTM with one trivial suggestion.

https://codereview.appspot.com/81980043/diff/40001/upstart/upstart.go
File upstart/upstart.go (right):

https://codereview.appspot.com/81980043/diff/40001/upstart/upstart.go#newcode168
upstart/upstart.go:168: // Render returns the upstart configuration for the
service as a slice of bytes.
This comment should be reverted.
Sign in to reply to this message.

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