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 rollingRestart reconcile for multiple same named clusters #836

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

OlegVanHorst
Copy link
Contributor

Description

Fixes a bug where reconcile breaks, if there are multiple same named OpensearchClusters in different namespaces.
The rollingRestart reconciler selects pods in all namespaces when evaluating if the Pods are healthy and matches them with the desired replicas. Only pods in the own namespace should be checked.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@swoehrl-mw
Copy link
Collaborator

Hi @OlegVanHorst. Thanks for noticing this and providing a fix. Would you mind extending your PR and also making the same fix for the CountPVCsForNodePool function (line 284)? That list should have the same problem.

@OlegVanHorst
Copy link
Contributor Author

Hi @swoehrl-mw
thanks for the hint. I did the requested changes. Not sure if you got an notification.

@swoehrl-mw swoehrl-mw merged commit 231075c into opensearch-project:main Aug 7, 2024
8 checks passed
rkthtrifork pushed a commit to trifork/opensearch-k8s-operator that referenced this pull request Aug 21, 2024
…arch-project#836)

### Description
Fixes a bug where reconcile breaks, if there are multiple same named
OpensearchClusters in different namespaces.
The rollingRestart reconciler selects pods in all namespaces when
evaluating if the Pods are healthy and matches them with the desired
replicas. Only pods in the own namespace should be checked.


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Alex Engel <[email protected]>
rkthtrifork pushed a commit to trifork/opensearch-k8s-operator that referenced this pull request Aug 21, 2024
…arch-project#836)

### Description
Fixes a bug where reconcile breaks, if there are multiple same named
OpensearchClusters in different namespaces.
The rollingRestart reconciler selects pods in all namespaces when
evaluating if the Pods are healthy and matches them with the desired
replicas. Only pods in the own namespace should be checked.


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Alex Engel <[email protected]>
rkthtrifork pushed a commit to trifork/opensearch-k8s-operator that referenced this pull request Aug 21, 2024
…arch-project#836)

### Description
Fixes a bug where reconcile breaks, if there are multiple same named
OpensearchClusters in different namespaces.
The rollingRestart reconciler selects pods in all namespaces when
evaluating if the Pods are healthy and matches them with the desired
replicas. Only pods in the own namespace should be checked.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and
signing off your commits, please check
[here](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin).

---------

Signed-off-by: Alex Engel <[email protected]>
Signed-off-by: rkthtrifork <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants