Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10131

Minimize use of --zookeeper flag in ducktape tests

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • system tests
    • None

    Description

      Get the ducktape tests working without the --zookeeper flag (except for scram).

      (Note: When doing compat testing we'll still use the old flags.)

      Below are the current usagesĀ 

      [tests]$ grep -R -e "--zookeeper" . 
      ./kafkatest/tests/core/zookeeper_tls_encrypt_only_test.py:        # Cannot use --zookeeper because kafka-topics.sh is unable to connect to a TLS-enabled ZooKeeper quorum,
      
      ./kafkatest/tests/client/quota_test.py:        cmd = "%s --zookeeper %s --alter --add-config producer_byte_rate=%d,consumer_byte_rate=%d" % \
      ./kafkatest/services/console_consumer.py:            cmd += " --zookeeper %(zk_connect)s" % args
      
      ./kafkatest/services/security/security_config.py:            cmd = "%s --zookeeper %s --entity-name %s --entity-type users --alter --add-config %s=[password=%s]" % \
      
      ./kafkatest/services/zookeeper.py:        la_migra_cmd += "%s --zookeeper.acl=%s --zookeeper.connect=%s %s" % \
      ./kafkatest/services/zookeeper.py:        cmd = "%s kafka.admin.ConfigCommand --zookeeper %s %s --describe --topic %s" % \
      
      # Used by MessageFormatChangeTest, TruncationTest 
      ./kafkatest/services/kafka/kafka.py:        cmd += "%s --zookeeper %s %s --entity-name %s --entity-type topics --alter --add-config message.format.version=%s" % \
      ./kafkatest/services/kafka/kafka.py:        cmd += "%s --zookeeper %s %s --entity-name %s --entity-type topics --alter --add-config unclean.leader.election.enable=%s" % \
      
      
      # called by reassign_partitions.sh, ThrottlingTest, ReassignPartitionsTest  
      ./kafkatest/services/kafka/kafka.py:        cmd += "--zookeeper %s " % self.zk_connect_setting()
      ./kafkatest/services/kafka/kafka.py:        cmd += "--zookeeper %s " % self.zk_connect_setting()
      ./kafkatest/services/kafka/kafka.py:            connection_setting = "--zookeeper %s" % (self.zk_connect_setting())
       

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rndgstn Ron Dagostino
            vinoth Vinoth Chandar
            Colin McCabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment