cp-ansible
cp-ansible copied to clipboard
controller start fails when scram protocol enabled
Describe the issue
With sasl_protocol
= scram
, kafka controller doesn't start, with error java.lang.IllegalArgumentException: Could not find a 'KafkaServer' or 'controller.KafkaServer' entry in the JAAS configuration. System property 'java.security.auth.login.config' is not set
To Reproduce Steps to reproduce the behaviour :
- declare brokers nodes + controller nodes
- set
sasl_protocol: scram
Expected behaviour A clear and concise description of what you expected to happen : controller nodes starts
Environment (please complete the following information):
- OS: Ubuntu
- CP-Ansible Branch: 7.5.1-post
- Ansible Version 2.15.2
https://stackoverflow.com/questions/74398912/need-kafka-kraft-sasl-plaintext exposes similar problem and provides a solution.