Merge "Revert "major release state change exception handling""
This commit is contained in:
commit
1f0b341087
@ -841,20 +841,7 @@ class SWMessageDeployStateChanged(messages.PatchMessage):
|
|||||||
if self.deploy_state:
|
if self.deploy_state:
|
||||||
LOG.info("Received deploy state changed to %s, agent %s" %
|
LOG.info("Received deploy state changed to %s, agent %s" %
|
||||||
(self.deploy_state, self.agent))
|
(self.deploy_state, self.agent))
|
||||||
try:
|
|
||||||
sc.deploy_state_changed(self.deploy_state)
|
sc.deploy_state_changed(self.deploy_state)
|
||||||
except Exception as e:
|
|
||||||
LOG.exception("Deploy state change failed: %s" % str(e))
|
|
||||||
|
|
||||||
# Error occurred while transitioning state to start-done
|
|
||||||
# so change it to start-failed
|
|
||||||
if self.deploy_state == DEPLOY_STATES.START_DONE:
|
|
||||||
sc.deploy_state_changed(DEPLOY_STATES.START_FAILED)
|
|
||||||
|
|
||||||
# Error occurred while transitioning state to activate-done
|
|
||||||
# so change it to activate-failed
|
|
||||||
if self.deploy_state == DEPLOY_STATES.ACTIVATE_DONE:
|
|
||||||
sc.deploy_state_changed(DEPLOY_STATES.ACTIVATE_FAILED)
|
|
||||||
else:
|
else:
|
||||||
LOG.info("Received %s deploy host state changed to %s, agent %s" %
|
LOG.info("Received %s deploy host state changed to %s, agent %s" %
|
||||||
(self.hostname, self.host_state, self.agent))
|
(self.hostname, self.host_state, self.agent))
|
||||||
|
Loading…
Reference in New Issue
Block a user