Merge "Push the config container outside of heat stack update"

This commit is contained in:
Zuul 2018-01-06 09:35:12 +00:00 committed by Gerrit Code Review
commit 57844923ed
2 changed files with 24 additions and 1 deletions

View File

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

View File

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