forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
build(deps): bump ansible from 11.13.0 to 12.2.0 in /tests #7
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
dependabot
wants to merge
1
commit into
far-main
Choose a base branch
from
dependabot/pip/tests/ansible-12.2.0
base: far-main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Bumping ansible from 11.13.0 to 12.2.0 pulls in ansible-core 2.19.x, but three upper-bound pins in the repo still cap at
<2.19.0and will block every playbook run and collection install. This PR must also bump:playbooks/ansible_version.yml(maximal_ansible_version to 2.20.0),meta/runtime.yml(requires_ansible upper bound to<2.20.0), and the compatibility table indocs/ansible/ansible.md:35.Extended reasoning...
What breaks
The ansible community package has a fixed mapping to
ansible-core:ansible 11.x→ansible-core 2.18.xansible 12.x→ansible-core 2.19.xSo installing
ansible==12.2.0(this PR) will installansible-core 2.19.xat runtime. Three separate upper-bound pins in the repo still cap at<2.19.0, each with a distinct enforcement path:1.
playbooks/ansible_version.yml:8-17— playbook runtime assertionThis play is imported by
playbooks/boilerplate.yml, which is imported by essentially every user-facing entrypoint (cluster.yml,reset.yml,upgrade-cluster.yml,scale.yml, etc.). Every playbook run will abort at startup with:Ansible must be between 2.18.0 and 2.19.0 exclusive - you have 2.19.x.2.
meta/runtime.yml:2— collection install/load metadatagalaxy.ymldeclares this repo as thekubernetes_sigs.kubespraycollection, andtests/scripts/collection-build-install.shandcontrib/collection.shactually build and install it viaansible-galaxy collection install.requires_ansibleis enforced by ansible-galaxy at install/load time before any playbook runs, with an error like:Collection kubernetes_sigs.kubespray was created with Ansible version >=2.18.0,<2.19.0, and you are running 2.19.x. This is a different failure path from #1 — a different file, different enforcement mechanism, different error message.3.
docs/ansible/ansible.md:35— compatibility documentationThe supported-version table still reads
>=2.18.0, <2.19.0, which would be inconsistent with an ansible-12 pin.Step-by-step proof
pip install -r requirements.txt→ansible==12.2.0installed →ansible-core 2.19.xinstalled as a transitive dependency.ansible-playbook -i inventory/... cluster.yml.cluster.ymlimportsplaybooks/boilerplate.yml, which importsplaybooks/ansible_version.yml.asserttask evaluatesansible_version.string is version("2.19.0", "<")whereansible_version.string == "2.19.x".Parallel path for collection users:
ansible-galaxy collection install kubernetes_sigs.kubespray(ortests/scripts/collection-build-install.sh).meta/runtime.yml, seesrequires_ansible: ">=2.18.0,<2.19.0", compares against the installed ansible-core2.19.x.Fix
Bump all three upper bounds in lockstep with this requirements.txt change (e.g. to
<2.20.0):playbooks/ansible_version.yml:maximal_ansible_version: 2.20.0meta/runtime.yml:requires_ansible: ">=2.18.0,<2.20.0"docs/ansible/ansible.md:35: update table row to>=2.18.0, <2.20.0Without these, the PR breaks kubespray for every user on every entrypoint (playbook execution and collection install).