Merge lp:~axwalk/juju-core/manual-provisioning-followup into lp:~go-bot/juju-core/trunk
Proposed by
Andrew Wilkins
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1750 |
Proposed branch: | lp:~axwalk/juju-core/manual-provisioning-followup |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
43 lines (+4/-2) 3 files modified
environs/manual/agent.go (+1/-1) environs/manual/provisioner.go (+2/-0) provider/provider.go (+1/-1) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/manual-provisioning-followup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+183097@code.launchpad.net |
Commit message
environs/manual: log machine removal on error
Log the fact that the machine is being removed
from state if an error occurred during manual
provisioning.
Description of the change
environs/manual: log machine removal on error
Log the fact that the machine is being removed
from state if an error occurred during manual
provisioning.
To post a comment you must log in.
Reviewers: mp+183097_ code.launchpad. net,
Message:
Please take a look.
Description:
environs/manual: log machine removal on error
Log the fact that the machine is being removed
from state if an error occurred during manual
provisioning.
https:/ /code.launchpad .net/~axwalk/ juju-core/ manual- provisioning- followup/ +merge/ 183097
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13306044/
Affected files: manual/ provisioner. go
A [revision details]
M environs/
Index: [revision details] 20130830023839- 2er74ebh5lr6m46 p
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: environs/ manual/ provisioner. go manual/ provisioner. go' manual/ provisioner. go 2013-08-29 03:58:19 +0000 manual/ provisioner. go 2013-08-30 06:59:40 +0000 e(args ProvisionMachin eArgs) (m *state.Machine, err Errorf( "provisioning failed, removing machine %v", m) Errorf( "injecting into state failed, removing machine %v", m)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -53,6 +53,7 @@
func ProvisionMachin
error) {
defer func() {
if m != nil && err != nil {
+ logger.
m.EnsureDead()
m.Remove()
m = nil
@@ -155,6 +156,7 @@
func injectMachine(args injectMachineArgs) (m *state.Machine, err error) {
defer func() {
if m != nil && err != nil {
+ logger.
m.EnsureDead()
m.Remove()
}