Skip to content
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

Bug: Failed to import the required Python library (openshift) on keydb-operator #148

Open
Elyytscha opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Elyytscha
Copy link

Describe the bug
Cr is failing with following error in the status:

Failed to import the required Python library (openshift) on keydb-operator-controller-manager-7b45b6dcd9-6h2zd'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
Failed to import the required Python library (openshift) on keydb-operator-controller-manager-7b45b6dcd9-6h2zd'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


TASK [set status] ********************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'openshift'
fatal: [localhost]: FAILED! => {"changed": false, "error": "No module named 'openshift'", "msg": "Failed to import the required Python library (openshift) on keydb-operator-controller-manager-7b45b6dcd9-6h2zd'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"}
-------------------------------------------------------------------------------
{"level":"error","ts":"2024-09-25T21:03:29Z","logger":"runner","msg":"\u001b[0;34mansible-playbook [core 2.15.6]\u001b[0m\r\n\u001b[0;34m config file = /etc/ansible/ansible.cfg\u001b[0m\r\n\u001b[0;34m configured module search path = ['/usr/share/ansible/openshift']\u001b[0m\r\n\u001b[0;34m ansible python module location = /usr/local/lib/python3.9/site-packages/ansible\u001b[0m\r\n\u001b[0;34m ansible collection location = /opt/ansible/.ansible/collections:/usr/share/ansible/collections\u001b[0m\r\n\u001b[0;34m executable location = /usr/local/bin/ansible-playbook\u001b[0m\r\n\u001b[0;34m python version = 3.9.18 (main, Sep 22 2023, 17:58:34) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/bin/python3)\u001b[0m\r\n\u001b[0;34m jinja version = 3.1.2\u001b[0m\r\n\u001b[0;34m libyaml = True\u001b[0m\r\n\u001b[0;34mUsing /etc/ansible/ansible.cfg as config file\u001b[0m\r\n\u001b[0;34mstatically imported: /opt/ansible/.ansible/collections/ansible_collections/krestomatio/k8s/roles/v1alpha1/database/keydb/ta...
----- Ansible Task Status Event StdOut (keydb.krestomat.io/v1alpha1, Kind=Keydb, keydb/keydb) -----
PLAY RECAP *********************************************************************
localhost : ok=24 changed=0 unreachable=0 failed=1 skipped=6 rescued=1 ignored=0

To Reproduce
Steps to reproduce the behavior:

  1. install operator via olm
  2. create default cr as stated in the docs.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Please tell us about your environment:

  • Operating System: SCOS
  • Where is this running Onprem
  • Storage being used rook.io
  • Container Image Tag:
  • Platform (Docker, Kubernetes, OpenShift): OKD
  • Platform Version: 4.16

Additional context
Add any other context about the problem here.

@Elyytscha Elyytscha added the bug Something isn't working label Sep 25, 2024
@Elyytscha Elyytscha changed the title bug: Bug: Failed to import the required Python library (openshift) on keydb-operator Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant