Fix Manila shares cleanup

Change-Id: I3c2640db28f1fc6bd40c22d3ed2ce9c1ae6d381b
This commit is contained in:
Eduardo Olivares 2023-12-11 12:00:34 +01:00
parent e1bcecaef2
commit ae26041848
2 changed files with 2 additions and 6 deletions

View File

@ -41,8 +41,7 @@
- name: "cleanup Manila shares created by Tobiko tests" - name: "cleanup Manila shares created by Tobiko tests"
shell: | shell: |
source {{ stackrc_file }} {{ openstack_cmd }} share list -f value -c 'Name' | \
openstack share list -f value -c 'Name' | \
grep "^tobiko" | \ grep "^tobiko" | \
xargs -r openstack share delete --force xargs -r {{ openstack_cmd }} share delete --force
ignore_errors: yes ignore_errors: yes

View File

@ -29,9 +29,6 @@ test_log_debug: ''
test_case_timeout: 1800. test_case_timeout: 1800.
test_runner_timeout: 14400. test_runner_timeout: 14400.
# OpenStack client credentials
stackrc_file: '{{ ansible_user_dir }}/overcloudrc'
undercloud_hostname: '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}' undercloud_hostname: '{{ groups.get("undercloud", []) | first | default("undercloud-0") }}'
undercloud_ssh_hostname: '' undercloud_ssh_hostname: ''
undercloud_ssh_key_filename: '' undercloud_ssh_key_filename: ''