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

Issue 13963043: api/provisioner: Addresses/CACert methods added (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by dimitern
Modified:
10 years, 7 months ago
Reviewers:
mp+187719, fwereade
Visibility:
Public.

Description

api/provisioner: Addresses/CACert methods added Like the deployer API, the provisioner API also needs to provider StateAddresses(), APIAddresses(), and CACert(), so we can use the up-to-date (not localhost) addresses in NewAPIAuthenticator(). This is needed, because the addresses we get from agent config are incorrect (use localhost), and without this CL neither containers nor machines can't connect to state/API server at provisioning. And because the same code is already in deployer, I followed a suggestion to factor it out into apiserver/common/addresses. https://code.launchpad.net/~dimitern/juju-core/146-apiprovisioner-addresses/+merge/187719 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : api/provisioner: Addresses/CACert methods added #

Total comments: 4

Patch Set 3 : api/provisioner: Addresses/CACert methods added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -93 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 2 chunks +0 lines, -18 lines 0 comments Download
M state/api/provisioner/provisioner.go View 1 chunk +30 lines, -0 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 chunk +23 lines, -0 lines 0 comments Download
A state/apiserver/common/addresses.go View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
A state/apiserver/common/addresses_test.go View 1 1 chunk +45 lines, -0 lines 0 comments Download
M state/apiserver/common/common_test.go View 1 1 chunk +2 lines, -1 line 0 comments Download
M state/apiserver/deployer/deployer.go View 1 4 chunks +2 lines, -63 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 1 2 chunks +2 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 chunk +28 lines, -0 lines 0 comments Download
M worker/provisioner/authentication.go View 2 chunks +20 lines, -10 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 7 months ago (2013-09-26 10:56:23 UTC) #1
fwereade
If the copy/paste is necessary to get this in time for 1.15, LGTM with an ...
10 years, 7 months ago (2013-09-26 11:48:25 UTC) #2
dimitern
Please take a look.
10 years, 7 months ago (2013-09-26 13:23:11 UTC) #3
fwereade
LGTM, thanks. https://codereview.appspot.com/13963043/diff/6001/state/apiserver/common/addresses.go File state/apiserver/common/addresses.go (right): https://codereview.appspot.com/13963043/diff/6001/state/apiserver/common/addresses.go#newcode21 state/apiserver/common/addresses.go:21: // PasswordChanger implements a common set of ...
10 years, 7 months ago (2013-09-26 13:28:35 UTC) #4
dimitern
10 years, 7 months ago (2013-09-26 13:42:58 UTC) #5
Please take a look.

https://codereview.appspot.com/13963043/diff/6001/state/apiserver/common/addr...
File state/apiserver/common/addresses.go (right):

https://codereview.appspot.com/13963043/diff/6001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:21: // PasswordChanger implements a common
set of methods for getting
On 2013/09/26 13:28:35, fwereade wrote:
> PasswordChanger? ;p

oops :) Fixed.

https://codereview.appspot.com/13963043/diff/6001/state/apiserver/common/addr...
state/apiserver/common/addresses.go:22: // state and API addresses, as well as
the CA certificated, used to
On 2013/09/26 13:28:35, fwereade wrote:
> "state and API server addresses, and the CA certificate used to authenticate
> them."?

Done.
Sign in to reply to this message.

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