Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of advertised listeners for controller nodes #9340

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Nov 9, 2023

Type of change

  • Bugfix

Description

Currently, the operator tries to get the advertised listener hostnames / ports for the controller nodes in KRaft mode and use them as an annotation. This is wrong as the controller nodes do not really have any advertised listeenrs. By coincidence, the type: internal listeners were geenrating the names so everything seemed to work. But when you try to deploy a Kafka cluster without such listener, it starts throwing NPEs.

This PR cleans-up the handling to use the advertised hostnames / ports only for broker nodes for the annotations to fix this.

This should fix #9336.

Checklist

  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
  • Reference relevant issue(s) and close them after merging

@scholzj scholzj added this to the 0.39.0 milestone Nov 9, 2023
@scholzj
Copy link
Member Author

scholzj commented Nov 9, 2023

/azp run kraft-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj
Copy link
Member Author

scholzj commented Nov 9, 2023

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Jakub Scholz <[email protected]>
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scholzj scholzj merged commit fe8b735 into strimzi:main Nov 10, 2023
13 checks passed
@scholzj scholzj deleted the fix-advertsied-addresses-handling-of-controller-nodes branch November 10, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: NPE when trying KRaft setup
2 participants