Merge "Push the config container outside of heat stack update"
This commit is contained in:
@@ -119,7 +119,10 @@ class UpdateOvercloud(command.Command):
|
|||||||
container_registry=registry,
|
container_registry=registry,
|
||||||
ceph_ansible_playbook=ceph_ansible_playbook)
|
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))
|
parsed_args.stack))
|
||||||
else:
|
else:
|
||||||
# Run ansible:
|
# Run ansible:
|
||||||
|
@@ -55,6 +55,26 @@ def update(clients, **workflow_input):
|
|||||||
raise exceptions.DeploymentError("Heat Stack update failed.")
|
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):
|
def update_ansible(clients, **workflow_input):
|
||||||
workflow_client = clients.workflow_engine
|
workflow_client = clients.workflow_engine
|
||||||
tripleoclients = clients.tripleoclient
|
tripleoclients = clients.tripleoclient
|
||||||
|
Reference in New Issue
Block a user