diff --git a/tripleoclient/v1/overcloud_update.py b/tripleoclient/v1/overcloud_update.py index 74ace2de4..03f54657f 100644 --- a/tripleoclient/v1/overcloud_update.py +++ b/tripleoclient/v1/overcloud_update.py @@ -119,7 +119,10 @@ class UpdateOvercloud(command.Command): container_registry=registry, ceph_ansible_playbook=ceph_ansible_playbook) - print("Minor update init on stack {0} complete.".format( + print("Heat stack update init on {0} complete.".format( + parsed_args.stack)) + package_update.get_config(clients, container=stack_name) + print("Init minor update on stack {0} complete.".format( parsed_args.stack)) else: # Run ansible: diff --git a/tripleoclient/workflows/package_update.py b/tripleoclient/workflows/package_update.py index a5557bc90..465cddda3 100644 --- a/tripleoclient/workflows/package_update.py +++ b/tripleoclient/workflows/package_update.py @@ -55,6 +55,26 @@ def update(clients, **workflow_input): raise exceptions.DeploymentError("Heat Stack update failed.") +def get_config(clients, **workflow_input): + workflow_client = clients.workflow_engine + tripleoclients = clients.tripleoclient + + with tripleoclients.messaging_websocket() as ws: + execution = base.start_workflow( + workflow_client, + 'tripleo.package_update.v1.get_config', + workflow_input=workflow_input + ) + + for payload in base.wait_for_messages(workflow_client, ws, execution): + assert payload['status'] == "SUCCESS", pprint.pformat(payload) + + if payload['status'] == 'SUCCESS': + print('Success') + else: + raise RuntimeError('Minor update failed with: {}'.format(payload)) + + def update_ansible(clients, **workflow_input): workflow_client = clients.workflow_engine tripleoclients = clients.tripleoclient