Skip to content

Add conditional for use CentOS nodepool mirror #2927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rlandy
Copy link
Collaborator

@rlandy rlandy commented Apr 25, 2025

No description provided.

@rlandy rlandy requested a review from a team as a code owner April 25, 2025 16:52
Copy link
Contributor

openshift-ci bot commented Apr 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/84bf68bacfc342bfb8e2855ec4070bd6

openstack-k8s-operators-content-provider FAILURE in 4m 40s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ adoption-standalone-to-crc-ceph-provider SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 02s
cifmw-pod-pre-commit FAILURE in 8m 02s
✔️ build-push-container-cifmw-client SUCCESS in 22m 22s
cifmw-molecule-build_openstack_packages FAILURE in 3m 33s
cifmw-molecule-repo_setup FAILURE in 3m 29s

@rlandy rlandy force-pushed the ci-mirror-centos branch 3 times, most recently from f1870d2 to cda4937 Compare April 25, 2025 19:49
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4c588d64633044f186286b16b22df309

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 32m 56s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 08m 57s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 41m 15s
✔️ adoption-standalone-to-crc-ceph-provider SUCCESS in 3h 16m 58s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 09s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 44s
✔️ build-push-container-cifmw-client SUCCESS in 16m 56s
✔️ cifmw-molecule-build_openstack_packages SUCCESS in 11m 16s
✔️ cifmw-molecule-repo_setup SUCCESS in 4m 45s

@rlandy rlandy force-pushed the ci-mirror-centos branch 8 times, most recently from 4b00b74 to faa38d5 Compare April 28, 2025 19:00
@danpawlik
Copy link
Contributor

Is it for review?

@raukadah
Copy link
Contributor

raukadah commented May 5, 2025

Is it for review?

yes, it is good to go!

@raukadah
Copy link
Contributor

raukadah commented May 5, 2025

/lgtm

@@ -12,6 +12,8 @@
set -o pipefail
source /etc/ci/mirror_info.sh
sed -i -e "s|https://trunk.rdoproject.org|$NODEPOOL_RDO_PROXY|g" *.repo
{% if ansible_distribution | lower == 'centos' and ansible_distribution_major_version is not version('10', '==') %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add additional info about location of CentOS10 nodepool? If it doesn't exist, please create another when condition. Instead of nesting if/else here, please modify the line 10, and extend it over there. For the Centos10 specific use-case, please add another task.
You might consider using nested conditions, something like:

- block
   - name: cs9
     when: major_version is < 10
   - name: cs10
     when: major_version is 10
   when:
     - mirror_path.stat.exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants