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

Issue 59560043: cmd/juju: delete .jenv if bootstrap fails

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by axw
Modified:
11 years, 1 month ago
Reviewers:
dimitern, mp+204421, wallyworld, rog
Visibility:
Public.

Description

cmd/juju: delete .jenv if bootstrap fails If bootstrap fails, and the .jenv file did not previously exist, then Juju will attempt to destroy the environment in case of partial creation. If this succeeds, the .jenv file is destroyed. If it fails, an error message is logged; we do not currently attempt to forcefully remove the environment. NOTE: if an environment is already prepared, say by running sync-tools, then a failed bootstrap will not attempt to destroy the environment. Fixes lp:1247152 https://code.launchpad.net/~axwalk/juju-core/juju-failed-bootstrap-destroy-jenv/+merge/204421 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : cmd/juju: delete .jenv if bootstrap fails #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -15 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 2 chunks +18 lines, -1 line 0 comments Download
M cmd/juju/bootstrap_test.go View 1 chunk +22 lines, -0 lines 0 comments Download
M cmd/juju/destroyenvironment_test.go View 1 1 chunk +4 lines, -2 lines 0 comments Download
M cmd/juju/synctools.go View 1 3 chunks +9 lines, -1 line 0 comments Download
M environs/open.go View 1 chunk +7 lines, -1 line 0 comments Download
M provider/dummy/environs.go View 4 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 9
axw
Please take a look.
11 years, 1 month ago (2014-02-03 07:10:10 UTC) #1
wallyworld
I'm not sure about this. I think we're getting to the point where the mental ...
11 years, 1 month ago (2014-02-03 07:20:58 UTC) #2
axw
On 2014/02/03 07:20:58, wallyworld wrote: > I'm not sure about this. I think we're getting ...
11 years, 1 month ago (2014-02-03 07:34:06 UTC) #3
wallyworld
On 2014/02/03 07:34:06, axw wrote: > On 2014/02/03 07:20:58, wallyworld wrote: > > I'm not ...
11 years, 1 month ago (2014-02-03 08:03:18 UTC) #4
axw
On 2014/02/03 08:03:18, wallyworld wrote: > On 2014/02/03 07:34:06, axw wrote: > > On 2014/02/03 ...
11 years, 1 month ago (2014-02-03 08:24:17 UTC) #5
rog
Thanks a lot for doing this - it will be much appreciated. We should also ...
11 years, 1 month ago (2014-02-03 08:32:21 UTC) #6
axw
Please take a look. https://codereview.appspot.com/59560043/diff/1/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/59560043/diff/1/cmd/juju/bootstrap.go#newcode118 cmd/juju/bootstrap.go:118: On 2014/02/03 08:32:22, rog wrote: ...
11 years, 1 month ago (2014-02-04 02:13:40 UTC) #7
axw
On 2014/02/03 08:32:21, rog wrote: > Thanks a lot for doing this - it will ...
11 years, 1 month ago (2014-02-04 02:21:34 UTC) #8
dimitern
11 years, 1 month ago (2014-02-10 08:32:51 UTC) #9
LGTM
Sign in to reply to this message.

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