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

Issue 88200043: a few small HA tweaks

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

Description

a few small HA tweaks - make sure we use localhost for stateinfo from the agent config - dial all state addresses in parallel (no max) - refesh the agentconfig after connecting to the api in case something changed https://code.launchpad.net/~natefinch/juju-core/043-localstateinfo/+merge/215924 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : a few small HA tweaks #

Total comments: 13

Patch Set 3 : a few small HA tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -41 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 3 chunks +13 lines, -5 lines 0 comments Download
M agent/agent_test.go View 1 2 3 chunks +24 lines, -11 lines 0 comments Download
M agent/bootstrap.go View 1 chunk +4 lines, -1 line 0 comments Download
M agent/bootstrap_test.go View 3 chunks +5 lines, -3 lines 0 comments Download
M cmd/jujud/agent.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/jujud/agent_test.go View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 2 3 chunks +15 lines, -7 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 2 chunks +4 lines, -2 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M state/api/apiclient.go View 2 chunks +2 lines, -6 lines 0 comments Download

Messages

Total messages: 4
natefinch
Please take a look.
10 years ago (2014-04-15 16:46:46 UTC) #1
natefinch
Please take a look.
10 years ago (2014-04-15 16:56:35 UTC) #2
rog
LGTM with some minor suggestions below https://codereview.appspot.com/88200043/diff/20001/agent/agent_test.go File agent/agent_test.go (right): https://codereview.appspot.com/88200043/diff/20001/agent/agent_test.go#newcode437 agent/agent_test.go:437: func (*suite) TestSetPassword(c ...
10 years ago (2014-04-15 17:05:38 UTC) #3
natefinch
10 years ago (2014-04-15 17:19:54 UTC) #4
Please take a look.

https://codereview.appspot.com/88200043/diff/20001/agent/agent_test.go
File agent/agent_test.go (right):

https://codereview.appspot.com/88200043/diff/20001/agent/agent_test.go#newcod...
agent/agent_test.go:438: attrparams := attributeParams
On 2014/04/15 17:05:38, rog wrote:
> attrParams?

Done.

https://codereview.appspot.com/88200043/diff/20001/agent/agent_test.go#newcod...
agent/agent_test.go:446: conf, err :=
agent.NewStateMachineConfig(attributeParams, servingInfo)
On 2014/04/15 17:05:38, rog wrote:
> s/attributeParams/attrParams/

Done.

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/bootstrap.go
File cmd/jujud/bootstrap.go (right):

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/bootstrap.go#new...
cmd/jujud/bootstrap.go:151: return fmt.Errorf("no stateinfo available")
On 2014/04/15 17:05:38, rog wrote:
> "no state info available"
> 
> good to stick to english for errors, i think.

Done.

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/bootstrap.go#new...
cmd/jujud/bootstrap.go:159: return fmt.Errorf("No stateservinginfo available")
On 2014/04/15 17:05:38, rog wrote:
> "no state serving info available"

Done.

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/machine.go
File cmd/jujud/machine.go (right):

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/machine.go#newco...
cmd/jujud/machine.go:495: return nil, nil, fmt.Errorf("no stateinfo available")
On 2014/04/15 17:05:38, rog wrote:
> s/stateinfo/state info/

Done.

https://codereview.appspot.com/88200043/diff/20001/cmd/jujud/machine.go#newco...
cmd/jujud/machine.go:591: return fmt.Errorf("no stateinfo available")
On 2014/04/15 17:05:38, rog wrote:
> ditto

Done.
Sign in to reply to this message.

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