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

Fixed ZooKeeper service usage to delete /controller znode on migration rollback #10373

Merged

Conversation

ppatierno
Copy link
Member

Type of change

  • Bugfix

Description

This PR fixes #10371.
The current code, to get the ZooKeeper connection string from the service in order to connect to ZooKeeper and delete the /controller znode during KRaft migration rollback, doesn't take into account the full name (i.e. including namespace), so the operator can't connect when the cluster is running in a different namespace.
The PR fixes it.

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

@ppatierno ppatierno requested a review from scholzj July 23, 2024 13:40
@ppatierno ppatierno added this to the 0.43.0 milestone Jul 23, 2024
Signed-off-by: Paolo Patierno <[email protected]>
@ppatierno
Copy link
Member Author

/azp run migration

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ppatierno
Copy link
Member Author

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ppatierno ppatierno merged commit 36283d7 into strimzi:main Jul 24, 2024
23 checks passed
@ppatierno ppatierno deleted the fix-migration-rollback-other-namespace branch July 24, 2024 10:35
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]: KRaft rollback failed when cluster is deployed in another namespace
2 participants