Community Packages

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!
Tasklist

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
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

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

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 03 March 2023, 01:04 GMT
Reason for closing:  Fixed
Comment by Christian Heusel (gromit) - Wednesday, 01 March 2023, 09:48 GMT
Does this collection come with the ansible package in Arch by default?
IMO this is not a missing dependency as kubernetes.core was probably installed with ansible-galaxy and not via pacman.
Comment by Ike Devolder (BlackEagle) - Wednesday, 01 March 2023, 13:10 GMT
This is not about `ansible-core` but about `ansible` which comes with a ton of collections

```
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/
...
```
Comment by Christian Heusel (gromit) - Wednesday, 01 March 2023, 13:35 GMT
Ah then nevermind, thank you for the information!

Loading...