Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(53)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 83050045: Generate/set state serving info

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by axw
Modified:
11 years, 9 months ago
Reviewers:
mp+213610, rog
Visibility:
Public.
Generate/set state serving info The bootstrap-state invocation of jujud is modified to generate a shared secret for the Mongo replicaset. This is stored in: $(datadir)/shared-secret. During state initialisation, state serving info (including the shared secret) is stored in state. https://code.launchpad.net/~axwalk/juju-core/jujud-bootstrap-mongo-sharedsecret/+merge/213610 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Generate/set state serving info #

Created: 11 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -10 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/bootstrap.go View 1 3 chunks +25 lines, -4 lines 0 comments Download
M agent/bootstrap_test.go View 2 chunks +12 lines, -0 lines 0 comments Download
M agent/mongo/mongo.go View 1 5 chunks +25 lines, -4 lines 0 comments Download
M agent/mongo/mongo_test.go View 2 chunks +9 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap.go View 3 chunks +14 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 2 chunks +25 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
Total messages: 3
|
axw
Please take a look.
11 years, 9 months ago (2014年04月01日 08:28:00 UTC) #1
Please take a look.
Sign in to reply to this message.
rog
LGTM, thanks! https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go File agent/bootstrap.go (right): https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go#newcode80 agent/bootstrap.go:80: st.Close() For consideration: there are perhaps enough ...
11 years, 9 months ago (2014年04月01日 08:46:50 UTC) #2
LGTM, thanks!
https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go
File agent/bootstrap.go (right):
https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go#newcode80
agent/bootstrap.go:80: st.Close()
For consideration: there are perhaps enough Close calls here to warrant a
defer func() {
 if err != nil {
 st.Close()
 }
}()
earlier.
https://codereview.appspot.com/83050045/diff/1/agent/mongo/mongo.go
File agent/mongo/mongo.go (right):
https://codereview.appspot.com/83050045/diff/1/agent/mongo/mongo.go#newcode53
agent/mongo/mongo.go:53: return "", err
s/err/fmt.Errorf("cannot read random secret: %v", err)/
?
Sign in to reply to this message.
axw
Please take a look. https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go File agent/bootstrap.go (right): https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go#newcode80 agent/bootstrap.go:80: st.Close() On 2014年04月01日 08:46:51, rog ...
11 years, 9 months ago (2014年04月01日 09:38:32 UTC) #3
Please take a look.
https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go
File agent/bootstrap.go (right):
https://codereview.appspot.com/83050045/diff/1/agent/bootstrap.go#newcode80
agent/bootstrap.go:80: st.Close()
On 2014年04月01日 08:46:51, rog wrote:
> For consideration: there are perhaps enough Close calls here to warrant a
> 
> defer func() {
> if err != nil {
> st.Close()
> }
> }()
> 
> earlier.
Done.
https://codereview.appspot.com/83050045/diff/1/agent/mongo/mongo.go
File agent/mongo/mongo.go (right):
https://codereview.appspot.com/83050045/diff/1/agent/mongo/mongo.go#newcode53
agent/mongo/mongo.go:53: return "", err
On 2014年04月01日 08:46:51, rog wrote:
> s/err/fmt.Errorf("cannot read random secret: %v", err)/
> ?
Done.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /