Fix failed to remove VIM monitor due to running execution
Mistral recently add the force parameter to delete non finished executions, therefore, Tacker cannot delete VIM monitor execution from Mistral. https://review.openstack.org/#/c/560802/ https://review.openstack.org/#/c/561159/ Change-Id: I5b81d220b34b5fb349b71133856ba1202d46d415 Closes-Bug: #1771126
This commit is contained in:
parent
5e0335c007
commit
4d167c2d74
@ -762,7 +762,7 @@ class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver,
|
||||
|
||||
def delete_execution(self, execution_id, auth_dict=None):
|
||||
return self.get_mistral_client(auth_dict).executions \
|
||||
.delete(execution_id)
|
||||
.delete(execution_id, force=True)
|
||||
|
||||
def delete_workflow(self, workflow_id, auth_dict=None):
|
||||
return self.get_mistral_client(auth_dict) \
|
||||
|
@ -52,7 +52,7 @@ def delete_executions(mistral_client, vim_id):
|
||||
executions = mistral_client.executions.list(
|
||||
workflow_name='vim_id_' + vim_id)
|
||||
for execution in executions:
|
||||
mistral_client.executions.delete(execution.id)
|
||||
mistral_client.executions.delete(execution.id, force=True)
|
||||
|
||||
|
||||
def delete_workflow(mistral_client, vim_id):
|
||||
|
Loading…
Reference in New Issue
Block a user