Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#77686 - [ansible] add python-kubernetes optdepend
Attached to Project:
Community Packages
Opened by Ike Devolder (BlackEagle) - Wednesday, 01 March 2023, 09:16 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 03 March 2023, 01:04 GMT
Opened by Ike Devolder (BlackEagle) - Wednesday, 01 March 2023, 09:16 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 03 March 2023, 01:04 GMT
|
DetailsDescription:
To use some functionality in the `kubernetes.core` module in ansible the `python-kubernetes` library must be installed Steps to reproduce: make use of `kubernetes.core.k8s_taint` in a role or playbook ``` An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'kubernetes' fatal: [k8snode...]: FAILED! => changed=false error: No module named 'kubernetes' msg: Failed to import the required Python library (kubernetes) on k8snode...'s Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter ``` |
This task depends upon
IMO this is not a missing dependency as kubernetes.core was probably installed with ansible-galaxy and not via pacman.
```
pacman -Ql ansible | grep kubernetes
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/__pycache__/digital_ocean_kubernetes.cpython-310.opt-1.pyc
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/__pycache__/digital_ocean_kubernetes.cpython-310.pyc
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/__pycache__/digital_ocean_kubernetes_info.cpython-310.opt-1.pyc
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/__pycache__/digital_ocean_kubernetes_info.cpython-310.pyc
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/digital_ocean_kubernetes.py
ansible /usr/lib/python3.10/site-packages/ansible_collections/community/digitalocean/plugins/modules/digital_ocean_kubernetes_info.py
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/CHANGELOG.rst
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/CONTRIBUTING.md
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/FILES.json
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/LICENSE
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/MANIFEST.json
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/Makefile
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/PSF-license.txt
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/README.md
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/bindep.txt
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/changelogs/
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/changelogs/changelog.yaml
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/changelogs/config.yaml
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/codecov.yml
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/meta/
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/meta/runtime.yml
ansible /usr/lib/python3.10/site-packages/ansible_collections/kubernetes/core/plugins/
...
```