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

Issue 13720051: provisioner: Start using the API instead of state (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by dimitern
Modified:
12 years, 1 month ago
Reviewers:
mue, mp+187191, fwereade, rog
Visibility:
Public.

Description

provisioner: Start using the API instead of state This changes the provisioner worker to use the API, and due to that some small changes were needed, with regards to authorization. Now only the environment provisioner uses the environWatcher, the LXC one just stops it right away after WaitForEnviron returns. Also the provisioner main loop needed to change a bit to accommodate this. During the initial review some concerns were raised about giving LXC provisioner access to the environment and thus to cloud secrets. This is partially addressed here with changes to agent.Config, and now we support two authenticators: environment and agent config based. In follow-ups the additional changes to restrict access to any secrets in the environment configuration will be made. Live tested on EC2 and it works! https://code.launchpad.net/~dimitern/juju-core/144-worker-provisioner-uses-api/+merge/187191 Requires: https://code.launchpad.net/~dimitern/juju-core/143-api-agent-containertype/+merge/186746 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 26

Patch Set 2 : provisioner: Start using the API instead of state #

Total comments: 14

Patch Set 3 : provisioner: Start using the API instead of state #

Patch Set 4 : provisioner: Start using the API instead of state #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -130 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 4 chunks +24 lines, -19 lines 0 comments Download
M environs/manual/provisioner.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/api/provisioner/machine.go View 1 chunk +5 lines, -0 lines 0 comments Download
M worker/environ.go View 1 2 chunks +9 lines, -2 lines 0 comments Download
M worker/provisioner/authentication.go View 1 2 3 chunks +28 lines, -7 lines 0 comments Download
M worker/provisioner/export_test.go View 1 chunk +0 lines, -13 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 2 3 5 chunks +8 lines, -8 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 2 8 chunks +35 lines, -26 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 1 2 3 16 chunks +28 lines, -24 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 22 chunks +61 lines, -30 lines 0 comments Download

Messages

Total messages: 8
dimitern
Please take a look.
12 years, 1 month ago (2013-09-24 10:14:51 UTC) #1
mue
Not yet sure enough with this, have to get more into it. But here are ...
12 years, 1 month ago (2013-09-24 12:53:51 UTC) #2
fwereade
OK, I think the Right Thing to do here is to fix SimpleAuthenticator so it ...
12 years, 1 month ago (2013-09-24 14:04:13 UTC) #3
rog
Sorry, forgot to publish this earlier. LGTM modulo the below. https://codereview.appspot.com/13720051/diff/1/worker/environ.go File worker/environ.go (right): https://codereview.appspot.com/13720051/diff/1/worker/environ.go#newcode22 ...
12 years, 1 month ago (2013-09-24 14:05:45 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/13720051/diff/1/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/13720051/diff/1/cmd/jujud/machine.go#newcode192 cmd/jujud/machine.go:192: // At this stage, since ...
12 years, 1 month ago (2013-09-25 15:32:20 UTC) #5
fwereade
LGTM with the following considered/addressed. https://codereview.appspot.com/13720051/diff/10001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/13720051/diff/10001/agent/agent.go#newcode316 agent/agent.go:316: return addresses copy? https://codereview.appspot.com/13720051/diff/10001/agent/agent.go#newcode321 ...
12 years, 1 month ago (2013-09-25 15:57:38 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/13720051/diff/10001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/13720051/diff/10001/agent/agent.go#newcode316 agent/agent.go:316: return addresses On 2013/09/25 15:57:38, ...
12 years, 1 month ago (2013-09-25 16:20:02 UTC) #7
dimitern
12 years, 1 month ago (2013-09-25 17:43:49 UTC) #8
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