Stop undercloud upgrade procedure if deployment tasks fail
Previously if deployment tasks fail, the undercloud/standalone upgrade would continue with post-upgrade and online upgrade tasks. This is now fixed. Change-Id: Ia749c01602214df326edf52b855e4a2a43c6b3c2 Closes-Bug: #1805836
This commit is contained in:
parent
c7960c10ff
commit
54d6071845
|
@ -1194,6 +1194,8 @@ class Deploy(command.Command):
|
|||
if rc != 0:
|
||||
raise exceptions.DeploymentError('Upgrade failed')
|
||||
rc = self._launch_ansible_deploy(self.ansible_dir)
|
||||
if rc != 0:
|
||||
raise exceptions.DeploymentError('Deployment failed')
|
||||
if parsed_args.upgrade:
|
||||
# Run Post Upgrade tasks after the deployment
|
||||
rc = self._launch_ansible_post_upgrade(self.ansible_dir)
|
||||
|
|
Loading…
Reference in New Issue