From de27e6ea85c4daabfa8a9dcda113897db6586f42 Mon Sep 17 00:00:00 2001 From: Marek Szymutko Date: Wed, 24 Jun 2026 15:17:09 +0200 Subject: [PATCH] fix(ISV-7300): remove registry authentication from the test pipeline Signed-off-by: Marek Szymutko Assisted-by: Claude-4.6-Opus (Cursor) --- roles/install_operator_prereqs/tasks/main.yml | 2 +- upstream/ansible.cfg | 3 ++- .../install_operator_prereqs/tasks/main.yml | 2 +- .../multiarch_fbc/tasks/process_archs.yml | 1 - upstream/roles/produce_fbc/tasks/main.yml | 24 ++----------------- 5 files changed, 6 insertions(+), 26 deletions(-) diff --git a/roles/install_operator_prereqs/tasks/main.yml b/roles/install_operator_prereqs/tasks/main.yml index 87e7360f3..a68c1e8f5 100644 --- a/roles/install_operator_prereqs/tasks/main.yml +++ b/roles/install_operator_prereqs/tasks/main.yml @@ -31,7 +31,7 @@ - name: "Download and extract go binary to {{ testing_bin_path }}" unarchive: - src: "https://storage.googleapis.com/golang/go{{ go_version }}.linux-amd64.tar.gz" + src: "https://dl.google.com/go/go{{ go_version }}.linux-amd64.tar.gz" dest: "{{ testing_bin_path }}" remote_src: yes tags: diff --git a/upstream/ansible.cfg b/upstream/ansible.cfg index d374acee2..c0c1c6de6 100644 --- a/upstream/ansible.cfg +++ b/upstream/ansible.cfg @@ -2,7 +2,8 @@ roles_path = ../roles display_skipped_hosts = no display_ok_hosts = yes -stdout_callback = yaml +stdout_callback = ansible.builtin.default +result_format = yaml callback_whitelist = log_plays [callback_log_plays] diff --git a/upstream/roles/install_operator_prereqs/tasks/main.yml b/upstream/roles/install_operator_prereqs/tasks/main.yml index d24509ff7..9266b832d 100644 --- a/upstream/roles/install_operator_prereqs/tasks/main.yml +++ b/upstream/roles/install_operator_prereqs/tasks/main.yml @@ -35,7 +35,7 @@ - name: "Download and extract go binary to {{ testing_bin_path }}" unarchive: - src: "https://storage.googleapis.com/golang/go{{ go_version }}.linux-amd64.tar.gz" + src: "https://dl.google.com/go/go{{ go_version }}.linux-amd64.tar.gz" dest: "{{ testing_bin_path }}" remote_src: true register: download_and_unpack_go diff --git a/upstream/roles/multiarch_fbc/tasks/process_archs.yml b/upstream/roles/multiarch_fbc/tasks/process_archs.yml index 87b529f84..6b21cbb98 100644 --- a/upstream/roles/multiarch_fbc/tasks/process_archs.yml +++ b/upstream/roles/multiarch_fbc/tasks/process_archs.yml @@ -1,7 +1,6 @@ --- - name: "Pull the base image {{ container_tool }} pull --arch={{ mfbc_architecture }} {{ mirror_multiarch_image }}" shell: "{{ container_tool }} pull --arch={{ mfbc_architecture }} {{ mirror_multiarch_image }}" - when: registry_redhat_io_user is defined and registry_redhat_io_token is defined - name: "Retag the base image" shell: "{{ container_tool }} tag {{ mirror_multiarch_image }} {{ mirror_multiarch_image }}-{{ mfbc_architecture }}" diff --git a/upstream/roles/produce_fbc/tasks/main.yml b/upstream/roles/produce_fbc/tasks/main.yml index 7cdfc1efa..b1116ef9d 100644 --- a/upstream/roles/produce_fbc/tasks/main.yml +++ b/upstream/roles/produce_fbc/tasks/main.yml @@ -105,28 +105,8 @@ state: directory mode: 01777 - - name: "Fail on registry.redhat.io login " - fail: - msg: "Unable to login to registry.redhat.io with user '{{ registry_redhat_io_user }}'" - when: - - (registry_redhat_io_user is undefined and registry_redhat_io_token is undefined) or (registry_redhat_io_user|length == 0 or registry_redhat_io_token|length == 0) - - - name: "Login to registry.redhat.io" - shell: "{{ container_tool }} login -u='{{ registry_redhat_io_user }}' -p='{{ registry_redhat_io_token }}' registry.redhat.io" - # no_log: true - when: - - registry_redhat_io_user is defined and registry_redhat_io_token is defined - - registry_redhat_io_user|length > 0 or registry_redhat_io_token|length > 0 - - mirror_multiarch_image.startswith('registry.redhat.io') - - - name: "Generate cache locally" - # shell: "{{ opm_bin_path }} serve {{ pfbc_fbc_config_path }} --cache-dir={{ pfbc_local_cache_dir }} --cache-only --termination-log /dev/null" - shell: "{{ container_tool }} run -it --rm --entrypoint /bin/opm -v {{ pfbc_extracted_fbc_location }}:/conf -u 1001:0 {{ mirror_multiarch_image }} serve /conf/configs --cache-dir=/conf/cache --cache-only --termination-log /dev/null" - - # - name: "Copy cache" - # synchronize: - # src: "{{ pfbc_local_cache_dir }}/" - # dest: "{{ pfbc_extracted_fbc_location }}/cache/" + - name: "Generate cache locally using host opm to solve arch issues" + shell: "{{ opm_bin_path }} serve {{ pfbc_fbc_config_path }} --cache-dir={{ pfbc_extracted_fbc_location }}/cache --cache-only --termination-log /dev/null" when: pfbc_opm_bug_line.found