Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-5392

DO447-100: ch15s06: Can't contact LDAP server error no 107

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • DO467 - RHAAP 2.0 0
    • DO447 - RHAE2.8 2 20200818
    • DO447
    • 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...

            rht-sbonnevi Steven Bonneville
            msameer-admin Mohammed Sameer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: