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

Issue 9824047: Provisioner gets addresses for each new machine.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by thumper
Modified:
12 years ago
Reviewers:
mp+168562, fwereade, wallyworld
Visibility:
Public.

Description

Provisioner gets addresses for each new machine. The addresses are retrieved each time we attempt to start a machine. This allows the provisioner to take advantage of any new api or state servers that are started as part of a block of machines being provisioned at one time. There is some saving of addresses at this stage to make the existing tests pass, even though this goes a little against what William has mentioned before. If we have invalid config, the tests assume that we continue with old info, whereas William has suggested that we pause provisioning while the config is broken. One behavioural tweak in this branch. If we do fail to setup authentication, we no longer kill the task, but instead log and continue. We will attempt to start it again next time through the loop. https://code.launchpad.net/~thumper/juju-core/provisioner-reget-state-info/+merge/168562 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Provisioner gets addresses for each new machine. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -351 lines) Patch
M .lbox.check View 1 1 chunk +1 line, -1 line 0 comments Download
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/plugin_test.go View 1 4 chunks +3 lines, -2 lines 0 comments Download
M cmd/juju/status.go View 1 10 chunks +88 lines, -45 lines 0 comments Download
M cmd/juju/status_test.go View 1 3 chunks +97 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 3 chunks +6 lines, -5 lines 0 comments Download
M environs/azure/instance.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M environs/dummy/environs.go View 1 16 chunks +20 lines, -19 lines 0 comments Download
M environs/ec2/ec2.go View 1 17 chunks +29 lines, -28 lines 0 comments Download
M environs/ec2/export_test.go View 1 3 chunks +6 lines, -5 lines 0 comments Download
M environs/ec2/live_test.go View 1 5 chunks +7 lines, -6 lines 0 comments Download
M environs/interface.go View 1 5 chunks +6 lines, -35 lines 0 comments Download
M environs/jujutest/livetests.go View 1 9 chunks +9 lines, -8 lines 0 comments Download
M environs/jujutest/tests.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M environs/maas/environ.go View 1 10 chunks +12 lines, -11 lines 0 comments Download
M environs/maas/environ_test.go View 1 4 chunks +5 lines, -4 lines 0 comments Download
M environs/maas/instance.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M environs/openstack/local_test.go View 1 3 chunks +3 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 20 chunks +29 lines, -28 lines 0 comments Download
M environs/openstack/provider_test.go View 1 3 chunks +4 lines, -4 lines 0 comments Download
A instance/instance.go View 1 1 chunk +41 lines, -0 lines 0 comments Download
M juju/testing/conn.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M state/container.go View 1 3 chunks +15 lines, -3 lines 0 comments Download
M state/export_test.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M state/machine.go View 1 2 chunks +13 lines, -2 lines 0 comments Download
M state/machine_test.go View 1 1 chunk +9 lines, -0 lines 0 comments Download
M state/state.go View 1 1 chunk +43 lines, -4 lines 0 comments Download
M state/state_test.go View 1 3 chunks +64 lines, -0 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 3 chunks +3 lines, -3 lines 0 comments Download
M worker/provisioner/broker.go View 1 2 chunks +4 lines, -4 lines 0 comments Download
M worker/provisioner/export_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M worker/provisioner/provisioner.go View 1 5 chunks +11 lines, -15 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 1 12 chunks +43 lines, -32 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 5 chunks +4 lines, -77 lines 0 comments Download

Messages

Total messages: 6
thumper
Please take a look.
12 years ago (2013-06-10 23:14:08 UTC) #1
fwereade
Strongly -1 on the clever bits here. Just barf on failure and I'll be happy ...
12 years ago (2013-06-11 09:08:21 UTC) #2
fwereade
Re what we do without a valid environment... hmm. Thinking aloud: * we certainly start ...
12 years ago (2013-06-12 09:10:56 UTC) #3
thumper
Please take a look. https://codereview.appspot.com/9824047/diff/1/worker/provisioner/provisioner_task.go File worker/provisioner/provisioner_task.go (right): https://codereview.appspot.com/9824047/diff/1/worker/provisioner/provisioner_task.go#newcode304 worker/provisioner/provisioner_task.go:304: // Don't return a real ...
12 years ago (2013-06-17 04:15:59 UTC) #4
fwereade
LGTM
12 years ago (2013-06-17 13:46:12 UTC) #5
wallyworld
12 years ago (2013-06-17 23:02:35 UTC) #6
LGTM
Sign in to reply to this message.

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