-
Notifications
You must be signed in to change notification settings - Fork 234
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
[BUG] Upgrade from OpenSearch 2.8.0 to 2.11.1 does not complete and cluster remains in a yellow state #779
Comments
I made a GET API call to
|
I did some more debugging and these are my findings. When I deploy an When I deploy one with version 2.8.0, the following indices get created
I had a look at the operator codebase to see how opensearch-k8s-operator/opensearch-operator/opensearch-gateway/services/os_data_service.go Line 268 in a622fa0
As per the index allocation failure explain API call, it is this I also found this issue (opensearch-project/security-analytics#1352) which discusses issues with |
WORKAROUND
FROM opensearchproject/opensearch:2.11.1
RUN /usr/share/opensearch/bin/opensearch-plugin remove opensearch-security-analytics \
&& /usr/share/opensearch/bin/opensearch-plugin remove opensearch-ml |
[Triage] |
Another workaround that doesn't require to delete any plugin.
Note:
|
What is the bug?
I tested upgrading OpenSearch from 2.8.0 to 2.11.1 using the OpenSearch Operator. I deployed the operator and a 3 node OpenSearchCluster using Helm. Once the upgrade started, one of the OpenSearch pods got terminated and a new one came up to replace it (running the new 2.11.1 version). But the other two pods remained and the upgrade didn't continue.
Output of
kubectl get OpenSearchCluster
Part of the output of
kubectl describe OpenSearch
operator-controller-manager container (in operator pod) keeps printing these logs
I know that the compatibility chart does not list 2.11.1. Since Newer minor versions not listed there are generally also said to work, I wanted to test this in a test setup. Is this a known issue that will get fixed when 2.11.1 is officially supported?
How can one reproduce the bug?
2.8.0
as the version in opensearchCluster.general.versionhelm upgrade
What is the expected behavior?
I also tested an upgrade from 2.7.0 to 2.8.0 on the same setup. Here the upgrade completed and the
Health
of theOpenSearchCluster
resource becamegreen
. During the upgrade, pods got terminated one at a time and new pods with version 2.8.0 came up. Thereafter a rolling restart took place. So I expected the same behaviourWhat is your host/environment?
I tried this on Rancher Desktop on MacOS. Kubernetes version: v1.25.11
Helm chart versions
opensearch-operator/opensearch-operator: 2.5.1
opensearch-operator/opensearch-cluster: 2.5.1
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
opensearch-operator/opensearch-operator
was deployed with default values.values file used with
opensearch-operator/opensearch-cluster
helm chart is as followsThe text was updated successfully, but these errors were encountered: