Ignore endpoint not found errors

When deleting overcloud ignore endpoint not found
error which looks like ``endpoint for object-store
service in <regionOne> region not found``, so as not
to fail when swift is disabled in the undercloud.

Change-Id: I0f553f8e7f622b983b6707674c958e211bb83829
This commit is contained in:
ramishra 2021-02-04 17:40:26 +05:30
parent bdff2f28ab
commit abda8556f9
1 changed files with 2 additions and 2 deletions

View File

@ -48,9 +48,9 @@
openstack --os-cloud undercloud container delete "{{ item }}" --recursive
failed_when:
- container_objects.rc != 0
- "'Not Found' not in container_objects.stderr"
- "'not found' not in container_objects.stderr | lower"
changed_when:
- "'Not Found' not in container_objects.stderr"
- "'not found' not in container_objects.stderr | lower"
register: container_objects
loop:
- "{{ stack_name }}"