Don't exit on RUNNING status on delete

In delete node and delete stack, we exit on non SUCCESS messages, but
mistral also sends us RUNNING messages when calling stack list, that we
should consume.

Change-Id: I45442ef2c622463a957c84be47f38ec4528001ac
Closes-Bug: #1804660
changes/83/619583/1
Thomas Herve 4 years ago
parent 71b80730e8
commit c821bbe2b7
  1. 5
      tripleoclient/workflows/scale.py
  2. 5
      tripleoclient/workflows/stack_management.py

@ -31,7 +31,10 @@ def delete_node(clients, **workflow_input):
)
for payload in base.wait_for_messages(workflow_client, ws, execution):
if payload['status'] != "SUCCESS":
status = payload['status']
if status == 'RUNNING':
continue
if status != 'SUCCESS':
raise InvalidConfiguration(payload['message'])

@ -40,5 +40,8 @@ def delete_stack(clients, stack):
)
for payload in base.wait_for_messages(workflow_client, ws, execution):
if payload['status'] != "SUCCESS":
status = payload['status']
if status == 'RUNNING':
continue
if status != 'SUCCESS':
raise InvalidConfiguration(payload['message'])

Loading…
Cancel
Save