Closed geerlingguy closed 4 years ago
Ansible 2.9.14 was released yesterday, and that seems to have been the inflection point—CI wasn't failing until then: https://github.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst#id51
(Though I don't see any changes in the changelog that seem pertinent to our usage...)
Added critical priority since this technically blocks any merges due to the fact that all CI builds are failing.
Fix for - Stable-2.9 - https://github.com/ansible/ansible/pull/72130 Stable-2.8 - https://github.com/ansible/ansible/pull/72131
This is a summary where I think we are on this issue.
A typo was made in backporting a CVE fix to the kubectl connection plugin in ansible/ansible that broke the k8s inventory plugin in this collection. @Akasurde has submitted PRs to fix the problem in the next releases (pending merge) of 2.8 and 2.9. So that is squared away.
Question: Why is this collection's inventory plugin using the kubectl connection plugin that ships with Ansible rather than the one that ships here in the collection? To me, this CI break shouldn't have been an issue otherwise. Thoughts?
This line sets the connection plugin in the hostvars for each pod which is set to just kubectl (no namespacing). I think this is where things are going wrong for us in our CI. Can we force Ansible to use the connection plugin in this collection rather than what's built-in to Ansible? Is it as easy as using the FQCN like 'community.kubernetes.kubectl'?
@tima - I'll attempt that quick fix in a PR in a moment.
SUMMARY
Our CI is failing currently (starting this morning) with the following exception:
This exception occurs during this task:
Located here: https://github.com/ansible-collections/community.kubernetes/blob/main/molecule/default/converge.yml#L85
ISSUE TYPE
COMPONENT NAME
molecule tests for downstream Ansible 2.9.
ANSIBLE VERSION
2.9
CONFIGURATION
See GitHub Actions workflow.
OS / ENVIRONMENT
GitHub Actions