diff --git a/tripleoclient/v1/overcloud_update.py b/tripleoclient/v1/overcloud_update.py index ac2a8188e..b10ff74ba 100644 --- a/tripleoclient/v1/overcloud_update.py +++ b/tripleoclient/v1/overcloud_update.py @@ -120,7 +120,10 @@ class UpdateOvercloud(command.Command): ceph_ansible_playbook=ceph_ansible_playbook, queue_name=str(uuid.uuid4())) - 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 19858a403..00f46d185 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