diff --git a/ansible/roles/docker-registry/tasks/destroy.yml b/ansible/roles/docker-registry/tasks/destroy.yml index 1d3992ab3..7cd02af9b 100644 --- a/ansible/roles/docker-registry/tasks/destroy.yml +++ b/ansible/roles/docker-registry/tasks/destroy.yml @@ -14,7 +14,7 @@ when: "'/' not in volume" failed_when: - volume_result.rc != 0 - - "'No such volume' not in volume_result.stderr" + - "'no such volume' not in volume_result.stderr | lower" vars: volume: "{{ item.1.split(':')[0] }}" register: volume_result diff --git a/ansible/roles/inspection-store/tasks/destroy.yml b/ansible/roles/inspection-store/tasks/destroy.yml index 8bcd7a5d9..c0d5ade04 100644 --- a/ansible/roles/inspection-store/tasks/destroy.yml +++ b/ansible/roles/inspection-store/tasks/destroy.yml @@ -14,7 +14,7 @@ when: "'/' not in volume" failed_when: - volume_result.rc != 0 - - "'No such volume' not in volume_result.stderr" + - "'no such volume' not in volume_result.stderr | lower" vars: volume: "{{ item.1.split(':')[0] }}" register: volume_result diff --git a/ansible/roles/opensm/tasks/destroy.yml b/ansible/roles/opensm/tasks/destroy.yml index 9302a6186..c627d0663 100644 --- a/ansible/roles/opensm/tasks/destroy.yml +++ b/ansible/roles/opensm/tasks/destroy.yml @@ -14,7 +14,7 @@ when: "'/' not in volume" failed_when: - volume_result.rc != 0 - - "'No such volume' not in volume_result.stderr" + - "'no such volume' not in volume_result.stderr | lower" vars: volume: "{{ item.1.split(':')[0] }}" register: volume_result diff --git a/releasenotes/notes/fix-issue-overcloud-service-destroy-volume-cleanup-4b54d81cde9831c7.yaml b/releasenotes/notes/fix-issue-overcloud-service-destroy-volume-cleanup-4b54d81cde9831c7.yaml new file mode 100644 index 000000000..c24718478 --- /dev/null +++ b/releasenotes/notes/fix-issue-overcloud-service-destroy-volume-cleanup-4b54d81cde9831c7.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with overcloud service destroy where it failed to remove the + inspection store docker volume. See `LP#2050092 + `__.