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

Issue 12850045: Azure provider: clean up storage last in Destroy()

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by rvb
Modified:
10 years, 8 months ago
Reviewers:
mp+180326, jtv.canonical, rog
Visibility:
Public.

Description

Azure provider: clean up storage last in Destroy() This branch changes the order of what environ.Destroy() does to make sure the storage is cleaned up last. This is to ensure that, if something goes wrong in Destroy() (if, for instance, the Virtual Network cannot be cleaned up), the state-info file in the storage won't be cleaned up. This way, if someone tries to bootstrap the environment again, the error message will be meaningful. Drive-by fix: Fix the test 'TestDestroyCleansUpStorage': populate the storage before destroying the environment so that the check that verifies that the storage is empty would fail if Destroy() wouldn't have been called. https://code.launchpad.net/~rvb/juju-core/az-destroy-clean-up-last/+merge/180326 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Azure provider: clean up storage last in Destroy() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -7 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 2 chunks +10 lines, -6 lines 0 comments Download
M environs/azure/environ_test.go View 2 chunks +28 lines, -1 line 0 comments Download

Messages

Total messages: 7
rvb
Please take a look.
10 years, 8 months ago (2013-08-15 12:02:14 UTC) #1
jtv.canonical
It's not clear to me what advantage this brings — what is the more meaningful ...
10 years, 8 months ago (2013-08-16 08:05:42 UTC) #2
rvb
On 2013/08/16 08:05:42, jtv.canonical wrote: > It's not clear to me what advantage this brings ...
10 years, 8 months ago (2013-08-16 08:10:36 UTC) #3
rvb
Please take a look.
10 years, 8 months ago (2013-08-16 08:18:18 UTC) #4
jtv.canonical
That is definitely a much clearer message than you're otherwise likely to get. LGTM, although ...
10 years, 8 months ago (2013-08-16 08:18:52 UTC) #5
rvb
On 2013/08/16 08:18:52, jtv.canonical wrote: > That is definitely a much clearer message than you're ...
10 years, 8 months ago (2013-08-16 08:25:08 UTC) #6
rog
10 years, 8 months ago (2013-08-16 08:27:40 UTC) #7
LGTM
Sign in to reply to this message.

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