You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Sandeep More (JIRA)" <ji...@apache.org> on 2017/11/10 14:17:00 UTC

[jira] [Commented] (KNOX-1011) Knox LDAP demo server port(33389) is hardcoded. provide an option to make it configurable.

    [ https://issues.apache.org/jira/browse/KNOX-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247545#comment-16247545 ] 

Sandeep More commented on KNOX-1011:
------------------------------------

Thanks [~csomaati], I will target it for 0.15.0 for now.

> Knox LDAP demo server port(33389) is hardcoded. provide an option to make it configurable.
> ------------------------------------------------------------------------------------------
>
>                 Key: KNOX-1011
>                 URL: https://issues.apache.org/jira/browse/KNOX-1011
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: KnoxSSO
>    Affects Versions: 0.12.0
>            Reporter: Ayub Pathan
>            Priority: Critical
>             Fix For: Future, 0.15.0
>
>         Attachments: KNOX-1011.patch
>
>
> [[Background]]
> h2. *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.
> h2. *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.
> {noformat}
> [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 ~]#
> {noformat}
> *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. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)