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

Issue 88030043: Ensure state server has Mongo admin rights

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by axw
Modified:
11 years, 3 months ago
Reviewers:
mp+215821, rog
Visibility:
Public.

Description

Ensure state server has Mongo admin rights The machine agent is updated so that if it fails to open state with an unauthorized error, then the agent will attempt to give itself admin rights by temporarily restarting mongo with --noauth. There will be follow-ups to perform replset initiation, and to upgrade the upstart config. https://code.launchpad.net/~axwalk/juju-core/lp1306902-mongo-ensureadminuser/+merge/215821 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : Ensure state server has Mongo admin rights #

Patch Set 3 : Ensure state server has Mongo admin rights #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -48 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/mongo/mongo.go View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M agent/mongo/mongo_test.go View 1 2 3 chunks +55 lines, -0 lines 0 comments Download
A agent/mongo/upgrade.go View 1 1 chunk +101 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 chunks +42 lines, -6 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 2 chunks +34 lines, -0 lines 0 comments Download
M state/compat_test.go View 2 chunks +0 lines, -32 lines 0 comments Download
M state/open.go View 2 chunks +2 lines, -10 lines 0 comments Download

Messages

Total messages: 4
axw
Please take a look.
11 years, 3 months ago (2014-04-15 08:08:15 UTC) #1
rog
LGTM assuming it's been tested live (both upgrade and normal bootstrap). Good stuff. https://codereview.appspot.com/88030043/diff/1/agent/mongo/mongo_test.go File ...
11 years, 3 months ago (2014-04-15 08:33:37 UTC) #2
axw
Please take a look. https://codereview.appspot.com/88030043/diff/1/agent/mongo/upgrade.go File agent/mongo/upgrade.go (right): https://codereview.appspot.com/88030043/diff/1/agent/mongo/upgrade.go#newcode92 agent/mongo/upgrade.go:92: return false, fmt.Errorf("mongod did not ...
11 years, 3 months ago (2014-04-15 08:52:28 UTC) #3
axw
11 years, 3 months ago (2014-04-15 09:10:26 UTC) #4
Please take a look.
Sign in to reply to this message.

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