From b5cf17488b79c923ce4d5803092450d9317b0b36 Mon Sep 17 00:00:00 2001 From: Itay Matza Date: Mon, 31 Aug 2026 12:14:39 +0300 Subject: [PATCH] Fix Swift registry check using wrong separator in object name search The JSON-output migration in commit 1540a56 changed the Swift object search from grep (where '.' matches any character including '/') to jq contains() (where '.' is a literal dot). This caused the search target 'swift-check-NNNN.fooapp' to never match the actual Swift object paths which use '/' as separator: files/docker/registry/v2/repositories/swift-check-NNNN/fooapp/... Change the target separator from '.' to '/' to match the actual object name structure in Swift. Verified on live environment: old pattern matched 0 objects, new pattern correctly matches 7 objects. Fixes regression from 1540a56 (Harden verification OpenStack CLI calls to use JSON output). Assisted-By: Claude Code Signed-off-by: Itay Matza --- collection/stages/roles/verification/tasks/check_registry.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection/stages/roles/verification/tasks/check_registry.yml b/collection/stages/roles/verification/tasks/check_registry.yml index f1f32f4a..f223c51d 100644 --- a/collection/stages/roles/verification/tasks/check_registry.yml +++ b/collection/stages/roles/verification/tasks/check_registry.yml @@ -111,7 +111,7 @@ - name: Get the images objects in swift for the {{ swift_check_ns }} namespace from the containers ansible.builtin.shell: | set -o pipefail - target="{{ swift_check_ns }}.{{ swift_check_image }}" + target="{{ swift_check_ns }}/{{ swift_check_image }}" openstack container list -f json \ | jq -r '.[] | (.Name // .name // empty)' \ | while read -r container; do