Closed david-freistrom closed 2 years ago
Hello @david-freistrom,
Thank you for this issue, it seems like some topic does not have any min.insync.replicas
defined. I will dig more.
Maybe it's because I had not the right ACL permissions for that topic?!? The error message is kind of confusing.
I digged more and if you do not have sufficient permission you cannot get topics configuration and that is the bug.
Expected Behavior
Get a List of all topics inside the kafka cluster.
Actual Behavior
Get Error:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Seomthing went wrong: 'min.insync.replicas' "}
The Error maybe was thrown here: https://github.com/StephenSorriaux/ansible-kafka-admin/blob/547ff8c38b7383bdc3f4fafb1d303d28d1c484ae/library/kafka_info.py#L90
By the way: You have an typo here too
Play to Reproduce the Problem
0) A kafka cluster deployed via Helm
1) At least one topic needs to be exist
Logs from the play with Ansible in debug mode
ANSIBLE_DEBUG=true ansible-playbook my-awesome-playbook.yml
Specifications
pip list
command: