Skip to content
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

[WIP] Bump Ansible to 10.7.0 & Deprecate RHEL8-based tests #11924

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

tico88612
Copy link
Member

@tico88612 tico88612 commented Jan 26, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

Ansible 9 was deprecated, we should upgrade to the support version.

Which issue(s) this PR fixes:

Fixes #11519
Fixes #11872

Special notes for your reviewer:

WIP, we need to cleanup RHEL 8 (and related) CI jobs first.

Does this PR introduce a user-facing change?:

Bump ansible to 10.7.0

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 26, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tico88612
Once this PR has been reviewed and has the lgtm label, please assign floryut for approval. For more information see the Code Review Process.

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

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 26, 2025
@tico88612
Copy link
Member Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Jan 26, 2025
@tico88612
Copy link
Member Author

/retest-failed

@tico88612
Copy link
Member Author

tico88612 commented Feb 2, 2025

These are RHEL 8 based tests:

  • Almalinux 8
  • Rocky Linux 8
  • Amazon linux 2 (RHEL 7)

Our openSUSE version is 15.5, which is pre-installed with Python 3.6. However, openSUSE 15.5 was EOL 1 month so that we can deprecate this test. (EDIT: No, our openSUSE version is 15.3. 😂)

url: https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.3/images/openSUSE-Leap-15.3.x86_64-1.0.1-NoCloud-Build2.63.qcow2

But I don't know why the packet_ubuntu22-calico-all-in-one-upgrade failed. That's weird.

@tico88612 tico88612 force-pushed the bump/ansible-10.7.0 branch from 14df174 to a465ffd Compare February 2, 2025 15:12
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 2, 2025
@tico88612
Copy link
Member Author

/label tide/merge-method-merge

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-merge Denotes a PR that should use a standard merge by tide when it merges. label Feb 2, 2025
@tico88612 tico88612 changed the title [WIP] Bump Ansible to 10.7.0 [WIP] Bump Ansible to 10.7.0 & Deprecate RHEL8-based tests Feb 2, 2025
Signed-off-by: ChengHao Yang <[email protected]>
@tico88612
Copy link
Member Author

/retest-failed

@tico88612
Copy link
Member Author

fatal: [test-vm-twg6l]: FAILED! => {
    "assertion": "ansible_version.string is version(maximal_ansible_version, \"<\")",
    "changed": false,
    "evaluated_to": false
}
MSG:
Ansible must be between 2.16.4 and 2.17.0 exclusive - you have 2.17.8

https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/9018455357#L935

@VannTen It looks like the upgrade works back to the previous version (v2.27.0) ansible_version check (2.16.4 <= Ansible version < 2.17.0), which causes playbooks/ansible_version.yml to fail. Do you have an idea to resolve this?

@VannTen
Copy link
Contributor

VannTen commented Feb 2, 2025 via email

@tico88612
Copy link
Member Author

@VannTen Do you have any idea how to go about modifying it?

@VannTen
Copy link
Contributor

VannTen commented Feb 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-merge Denotes a PR that should use a standard merge by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate support for RedHat 8 family hosts Upgrade ansible from 9 to 10 (ansible-core from 2.16 to 2.17)
3 participants