Merge "Stop undercloud upgrade procedure if deployment tasks fail"

This commit is contained in:
Zuul 2018-12-04 08:55:54 +00:00 committed by Gerrit Code Review
commit d4edbe1bf1
1 changed files with 2 additions and 0 deletions

View File

@ -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)