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

Issue 34050043: worker/provisioner: safe mode

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

Description

worker/provisioner: safe mode A new environ setting provisioner-safe-mode is introduced (default = false). If true, then the environ provisioner will not stop instances that it does not know about. I had to muck about a little with the logic to handle dead machines to get the starts to align. See bug 1254729 This proposal is a continuation of https://codereview.appspot.com/32710043/ as originally proposed by Ian. https://code.launchpad.net/~rogpeppe/juju-core/469-wallyworld-provisioner-safe-mode/+merge/196925 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : worker/provisioner: safe mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -41 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config/config.go View 1 3 chunks +16 lines, -7 lines 0 comments Download
M environs/config/config_test.go View 3 chunks +32 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner.go View 8 chunks +13 lines, -9 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 12 chunks +77 lines, -20 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 2 chunks +166 lines, -5 lines 0 comments Download

Messages

Total messages: 3
rog
Please take a look.
10 years, 5 months ago (2013-11-27 15:37:52 UTC) #1
fwereade
LGTM, just trivial comments. If it applies cleanly against 1.16, please go ahead and land ...
10 years, 5 months ago (2013-11-27 15:48:11 UTC) #2
rog
10 years, 5 months ago (2013-11-27 15:55:00 UTC) #3
Please take a look.

https://codereview.appspot.com/34050043/diff/1/environs/config/config.go
File environs/config/config.go (right):

https://codereview.appspot.com/34050043/diff/1/environs/config/config.go#newc...
environs/config/config.go:481: // ProvisionerSafeMode returns true is the
provisioner should *not*
On 2013/11/27 15:48:12, fwereade wrote:
> s/is the/if the/

done, slightly differently.

https://codereview.appspot.com/34050043/diff/1/worker/provisioner/provisioner...
File worker/provisioner/provisioner_test.go (right):

https://codereview.appspot.com/34050043/diff/1/worker/provisioner/provisioner...
worker/provisioner/provisioner_test.go:741: func (s *ProvisionerSuite)
TestSafeModeChangeNotBlocking(c *gc.C) {
On 2013/11/27 15:48:12, fwereade wrote:
> I don't think this is the right test name? And I'm not *really* sure what the
> test gets us regardless, but I don't suppose it hurts...

deleted.
Sign in to reply to this message.

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