You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2020/05/06 07:03:00 UTC

[jira] [Commented] (ZOOKEEPER-3818) zkServer.sh status command exits if clientPort is missing even if secureClientPort is present for SSL

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

Mate Szalay-Beko commented on ZOOKEEPER-3818:
---------------------------------------------

this is an important observation, thanks for reporting it! 
would you like to provide a fix for it by creating a pull-request against the master branch?

> zkServer.sh status command exits if clientPort is missing even if secureClientPort is present for SSL
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-3818
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3818
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 3.5.5
>            Reporter: Aishwarya Soni
>            Priority: Critical
>
> I am configuring SSL on Zookeeper 3.5.5 branch and have removed the clientPort config from zoo.cfg and adding onlysecureClientPort. Also, I have removed it from my server ensemble connection string in zoo.cfg.dynamic file as it results in a port binding issue on the port 2181 if we keep it in both the files.
> But, in zkServer.sh, it checks if the clientPort is set in the *status* cmd else it throws exit 1 and terminates the process. How to overcome this situation? We cannot see the clientPort in zoo.cfg as it would enable mixed mode which we do not want when we enable SSL.
> Also, I am using zkServer.sh status output as a healthcheck for our containerized zookeeper to see if thee quorum is established or not as in cluster mode, zookeeper can finally run either in follower or leader state (ignoring intermediate state changes). So as the status output throws exit 1, thee healthcheck is also failing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)