-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Replace path_join to support Ansible 2.9 #8160
Conversation
Hi @zhengtianbao. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thank you for spotting this! /ok-to-test |
/lgtm |
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.
Nice, thanks for spotting that.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, zhengtianbao The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
it seems that with ansible 2.9 we still have a failure see: https://gitlab.com/kargo-ci/kubernetes-sigs-kubespray/-/jobs/1765318353#L3678
|
It's weird, I've test in my environment. The difference is in my env installed ansible 2.9.6 and CI runs 2.9.27. And I upgrade my env to ansible 2.9.27, then raise the same error. I suppose it's Ansible Community restructure the ansible/ansible repository, modules and plugins migrated to collection repositories, but this should happend at 2.10 We can use below command install the community modules at version >=2.9.8 to solve this error:
or: How about implement the |
I fixed this in #8172 by adding a step to fetch the relevant collections, I assumed as you did that the filter would be part of the base collections but it does appear that ansible messed up the distribution for a point release. |
Thanks for your precise test @cristicalin 👍 👍 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The
path_join
filter is not support in ansible-base 2.9, we should usecommunity.general.path_join
instead.refer: https://docs.ansible.com/ansible/latest/collections/community/general/docsite/filter_guide.html#paths
Which issue(s) this PR fixes:
Fixes #8159
Special notes for your reviewer:
revert this commit when the requirement of Ansible upgrade to 2.10+
Does this PR introduce a user-facing change?: