Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1011

Add ldap.port system property to configure LDAP demo server port

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.12.0
    • 1.2.0
    • KnoxSSO
    • None

    Description

      [[Background]]

      Problem: Knox demo LDAP server fails to start intermittently(happening more frequently these days), resulting in knox tests failures. LDAP server fails to start because port 33389, which it uses for listening incoming connections is already occupied on the machine.

      RCA:

      Question: why are we seeing zookeeper node using 33389 port?

      • ZooKeeper has the notion of ephemeral nodes. These ephemeral znodes exists as long as the session that created the znode is active. When the session ends the znode is deleted. These ephemeral nodes make use of ephemeral ports depending on the system configuration.

      This ephemeral port is taken from the range defined by the output of the following command.

      [root@ctr-e134-1499953498516-111711-01-000004 ~]# sysctl net.ipv4.ip_local_port_range
      net.ipv4.ip_local_port_range = 32768	61000
      [root@ctr-e134-1499953498516-111711-01-000004 ~]#
      

      These ephemeral znodes exists as long as the session that created the znode is active. This is the reason we are seeing zookeeper nodes using 33389 port randomly sometimes, which is resulting in LDAP server startup failures.

      Attachments

        1. KNOX-1011.patch
          1 kB
          Kevin Risden
        2. KNOX-1011.patch
          2 kB
          Attila Csoma

        Activity

          People

            csomaati Attila Csoma
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: