Update deployment status after upgrade converge

Now that UpgradeConverge inherits from UpgradePrepare, overcloud
status is left as 'DEPLOYING' after it finishes. Let's set the
status to 'DEPLOY_SUCCESS'.

Note: With ephemeral heat (Wallaby and after) we would not need the
converge step as there is no stack/plan. This change would be
backported to stable/train.

Change-Id: I4329b21adbc4cd568c0a164d2778b79df700ae48
This commit is contained in:
rabi 2021-09-21 10:32:03 +05:30
parent 898a960a99
commit e8d1da4ba3
1 changed files with 7 additions and 0 deletions

View File

@ -279,3 +279,10 @@ class UpgradeConverge(UpgradePrepare):
forbidden_params = constants.UPGRADE_CONVERGE_FORBIDDEN_PARAMS
log = logging.getLogger(__name__ + ".UpgradeConverge")
def take_action(self, parsed_args):
super(UpgradeConverge, self).take_action(parsed_args)
deployment.set_deployment_status(
parsed_args.stack,
status='DEPLOY_SUCCESS',
working_dir=self.working_dir)