-
Bug
-
Resolution: Done
-
Critical
-
DO447 - RHAE2.8 2 20200818
-
None
-
ROLE
-
en-US (English)
URL: https://role.rhu.redhat.com/rol-rhu/app/courses/do447-2.8/pages/ch15s06
Reporter RHNID: jpreston, msameer-admin
Section: ch15s06 - Lab: Creating a Custom Dynamic Inventory
Language: en-US (English)
Workaround:
Description: In section Ch15 s6 – comprehensive review – https://role.rhu.redhat.com/rol-rhu/app/courses/do447-2.8/pages/ch15s06
The instructions say to create a custom inventory script.
When I install and then run the script, an error is returned:
ModuleNotFoundError: No module name 'ldap'
This seems to be caused because the venv /var/lib/awx/venv/ansible is used, and there is no python-ldap module installed there. (see screenshot from Tower).
If I go to the shell, create the script, use /var/lib/awx/venv/aws as my venv, and run the script, I don't get the module not found error, instead, I get an JSON message with the following text:
LDAPError: Can't contact LDAP server errorno 107 info Transport endpoint is not connected
It seems no matter what I do, this step will not complete successfully...
- is duplicated by
-
PTL-5381 DO447-103: RHT1820202: I'm getting error during synchronization: ModuleNotFoundError: No module named 'ldap' Looking in ldap-freeipa.py script there's an clause to import ldap module
- Closed