Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3882

Zookeeper quorum formation fails when TLS is enabled in k8s env

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 3.5.7
    • None
    • leaderElection, quorum
    • None

    Description

      Have deployed zookeeper(v3.5.7) included in the kafka(v2.5.0) bundle as containers using kubernetes, where 3 instances of each kafka and zookeeper is deployed. Interaction among kafka brokers, with kafka client and kafka with zookeeper are all TLS based and is working as expected. But zookeeper quorum formation fails with TLS handshake error, as the server name in the https request does not match with any of the SANs in the certificate configured for zookeeper server. Server name in the request is of the form "x-x-x-x.kubernetes.default.svc.cluster.local" (where x-x-x-x is the IP address of the POD), and I am unable to understand the reason behind pre-pending FQDN with a IP address. Could anyone please let me know, if I am missing any configuration or the behavior observed is as designed. Like in kafka, we don't have "ssl.client.auth" confiuration parameter for zookeeper, so I am not so sure, if it's client or server validation failing during the handshake.

      Please find below the extract of the error logs from the zookeeper1 POD

      ERROR Failed to verify host address: x.x.x.x (org.apache.zookeeper.common.ZKTrustManager)
      javax.net.ssl.SSLPeerUnverifiedException: Certificate for <x.x.x.x> doesn't match any of the subject alternative names: [zookeeper, zookeeper1, zookeeper2, zookeeper3, zookeeper1.default.svc.cluster.local, zookeeper2.default.svc.cluster.local, zookeeper3.default.svc.cluster.local]

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bharath B Bharath B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: