noseka1 / openshift-auto-upi

OpenShift Automated User-Provided Infrastructure
Apache License 2.0
98 stars 51 forks source link

mirror fails: missing passlib? #7

Open vap0rtranz opened 4 years ago

vap0rtranz commented 4 years ago

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 commented 4 years ago

@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.