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

mirror fails: missing passlib? #7

Open
vap0rtranz opened this issue Jun 25, 2020 · 1 comment
Open

mirror fails: missing passlib? #7

vap0rtranz opened this issue Jun 25, 2020 · 1 comment

Comments

@vap0rtranz
Copy link

On Fedora31, the mirror playbook errors out about missing a module called passlib, so the mirroring fails. Snippet below:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'passlib'
fatal: [helper]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (passlib) on ales-helpernode's Python /usr/bin/python. Please read module documentation and install 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"}

There's a warning at the beginning ... is this something to do with python modules between versions?

[DEPRECATION WARNING]: Distribution fedora 31 on host helper should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future 
Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more 
information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

I updated Fedora31 to latest thinking it may be just an old fix but still get this error.

@noseka1
Copy link
Owner

noseka1 commented Jun 26, 2020

@vap0rtranz Thanks for the bug report. The htpasswd Ansible module that is used in openshift-auto-upi/roles/mirror_registry/tasks/main.yml requires the passlib Python library. On my Fedora 32, I had to install the RPM package python3-passlib that contains the library.

@noseka1 noseka1 added this to To do in openshift-auto-upi project board via automation Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants