Skip to content

Commit a1c4be9

Browse files
committed
Fix multi-arch version parsing in ocp_version_facts role
Issue: Pull specs with `-multi` suffix (e.g., 4.21.20-multi) were not being stripped, causing incorrect artifact URLs to be constructed. Root Cause: The regex in pull-spec-provided.yml only stripped single-arch suffixes (x86_64, aarch64, etc.) but not the `-multi` suffix used for multi-arch release images. Fix: Added `multi` to the architecture suffix regex pattern so that `quay.io/openshift-release-dev/ocp-release:4.21.20-multi` correctly parses to `4.21.20` instead of `4.21.20-multi`. This fix was previously implemented in commit c311f06 but was lost during refactoring (documented in MULTI_ARCH_SIG_MIRRORING_ISSUE.md). Before: ocp_version_facts_parsed_release = "4.21.20-multi" After: ocp_version_facts_parsed_release = "4.21.20" Fixes: Build #17 OC client download URL construction
1 parent 2fd4131 commit a1c4be9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

playbooks/roles/ocp_version_facts/tasks/pull-spec-provided.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{
1010
(ocp_version_facts_pull_spec | default(''))
1111
| regex_replace('^.*:', '')
12-
| regex_replace('-(x86|x64|x86_64|aarch64|ppc64le|s390x)$', '')
12+
| regex_replace('-(x86|x64|x86_64|aarch64|ppc64le|s390x|multi)$', '')
1313
}}
1414
1515
- name: Display parsed release version for debugging

0 commit comments

Comments
 (0)