Make stack cleanup task more robust
Deletion of heat stacks created by tobiko is not stable enough: the command hangs forever and some stacks are not successfully deleted In order to make this task more stable, a timeout is added to the command and retries are added to the task Change-Id: I7e1b851d7aa98007917675856cc20bc8fa4085a1
This commit is contained in:
parent
4fbe418ec3
commit
afb3c5a99d
@ -12,7 +12,11 @@
|
||||
source {{ stackrc_file }}
|
||||
openstack stack list -f value -c 'Stack Name' | \
|
||||
grep "^tobiko\." | \
|
||||
xargs -r openstack stack delete -y --wait
|
||||
xargs -r timeout 180 openstack stack delete -y --wait
|
||||
register: result
|
||||
retries: 5
|
||||
delay: 5
|
||||
until: result.rc == 0
|
||||
ignore_errors: yes
|
||||
|
||||
- name: "cleanup Glance images created by Tobiko tests"
|
||||
|
Loading…
x
Reference in New Issue
Block a user