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
Filter cannot be loaded on ansible-core 2.14.11 at packages in venv. 2.14.10 is ok. #81945
Comments
Files identified in the description: If these files are incorrect, please update the |
@hugotkk fwiw I'll try to workaround this in kolla via this patch, currently testing it: |
looking at the changes merged between 2.14.10 and 2.14.11 I have a hunch this might be related to #81644 but it needs to be investigated first. |
for everybody encountering this issue before a fix is released in kolla-ansible or ansible-core: It is enough to downgrade ansible-core to 2.14.10 on the kolla-ansible deployment node without (re)building the kolla-toolbox container image using the Dockerfile provied in https://review.opendev.org/c/openstack/kolla/+/897843. E.g., by running:
before starting Thanks to @artificial-intelligence and @hugotkk for the fix! 🎉 |
I suspect I know what's going on here, but it looks like getting |
@nitzmahone not really a container or VM image - but https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html is probably pretty straightforward if you have a VM for experimentation. If you have some pointers or ideas what might be the cause - we're open to them - I was planning to have a look into that in coming days. |
So the issue is somehow triggered by #81644, if I revert that commit on top of stable/2.14, the issue goes away. The relevant locations in kolla-ansible are this filter plugin in one role: and the use of this filter in variable handed to import_role: I can reproduce the issue with a simple playbook calling two nested minimal roles like in the above case. I'll create a clean reproducer tomorrow but maybe this is already enough to make progress. |
Just applying the first part of the patch for |
Same here, fixes the issue. |
Related to ansible-core bug [1]. [1]: ansible/ansible#81945 Change-Id: Idede07a5f0fd1a3ee63e1c54a263e358e95b3a86
* Update kolla-ansible from branch 'master' to 0386f54ff68fc453f78447002b4ffc382babbf4c - Rename per role filters files Related to ansible-core bug [1]. [1]: ansible/ansible#81945 Change-Id: Idede07a5f0fd1a3ee63e1c54a263e358e95b3a86
closing this as dupe (linked above in @sivel's comment), see that ticket for final resolution |
Related to ansible-core bug [1]. [1]: ansible/ansible#81945 Change-Id: Idede07a5f0fd1a3ee63e1c54a263e358e95b3a86 (cherry picked from commit 0386f54)
Related to ansible-core bug [1]. [1]: ansible/ansible#81945 Change-Id: Idede07a5f0fd1a3ee63e1c54a263e358e95b3a86 (cherry picked from commit 0386f54) (cherry picked from commit 9f32dad)
Summary
While working on OpenStack installation using kolla-ansible, I encountered an issue concerning custom filters, specifically when utilising ansible-core 2.14.11. Downgrade to 2.14.10 is fine.
Observation:
Issue Type
Bug Report
Component Name
pip install 'ansible>=6,<8'
Ansible Version
Configuration
OS / Environment
ubuntu 22.04
Steps to Reproduce
For context, I've been following this guide strictly: https://docs.openstack.org/kolla-ansible/latest/user/quickstart.html.
I started my work weeks ago. It was working fine until I started a fresh installation (from OS) on 9th Oct.
It stopped working at
Expected Results
The playbook should run to the end
PLAY RECAP ***************************************************************************************************************************************************
localhost : ok=346 changed=196 unreachable=0 failed=0 skipped=255 rescued=0 ignored=1
Actual Results
It complains the filter namespace_haproxy_for_cell could not be loaded
But the filter is defined at env/lib/python3.10/site-packages/kolla_ansible/filters.py
The text was updated successfully, but these errors were encountered: