-
Notifications
You must be signed in to change notification settings - Fork 397
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] grafana operator 5.6.0 -> 5.6.1 upgrade issues openshift #1399
Comments
bug title is wrong, it's about upgrade from 5.6.0 -> 5.6.1. Other than that can confirm, I'm having the same issue |
Excuses, corrected it |
Thanks for the report @ginokok1996 , sorry about the issue. This issue was introduced in #1373 We are working on a fix. |
Thanks for the fast reply @NissesSenap , happy to know a fix is in the works. |
The fix has been applied and I have created the upstream PR to release it to OLM, hopefully it will be merged tonight. |
Thanks for the fix @NissesSenap, only unfortunate thing is that 5.6.1 still exists on operatorhub. We would then need to uninstall the operator and install 5.6.2 directly |
Can't you go from 5.6.0 manually over to 5.6.2? |
In openshift you can't, its either follow the different patches or uninstall the operator and install a specific version. |
I haven't used OCP in years. But back in the days you could change an object called something like operatorgroup https://docs.openshift.com/container-platform/4.10/operators/understanding/olm/olm-understanding-olm.html You should be able to set the version manually. If you can try that, it would be great, so we at least know it works. I will try to create a PR upstream to OLM, but it won't be able to merge automatically. So I will have to get in contact with someone at redhat and normally that isn't the quickest. |
I have created the upstream change here: redhat-openshift-ecosystem/community-operators-prod#4002 |
Thanks a bunch @NissesSenap |
If someone wants a Quick And Dirty™ solution to resolve this, all you need to do is remove deployment |
That is a very good point @tkolo , the only thing that will happen is when the operator restarts it will reconcile any potential changes that could have been done while it was gone. This happens the same way when the operator is restarted. |
What feels like my 10th try to fix this: redhat-openshift-ecosystem/community-operators-prod#4017 |
Well, that is worrying.... But I have done changes to the patch flow it was , 5.6.0 -> 5.6.1 -> 5.6.2 -> 5.6.3 And if this makes OLM break it will drive me nuts since that was the suggested workaround :D |
OLM isn't making this easy haha. |
@ginokok1996 Can you please navigate to the search tab, and search for |
We are also facing the same issue in our clusters.
|
Hey folks, for now, can you try to delete the I've tested this on one of my clusters, and it unblocked the update path. Unfortunately, those that tried to update to 5.6.2 from 5.6.1 will have to do this. 5.6.3 shouldn't have this issue (I hope) |
OLM should be able to re-deploy the operator with a new deployment, thus avoiding the "immutability issue". It shouldn't affect your running Grafana deployments |
I verified it in my development environment. |
Still facing the issue that when you're on version 5.6.0 openshift thinks its up to date and there are no new versions. |
There is no solution for this other than what is written here: #1399 (comment) @ginokok1996 . OLM have its limitations, and we can't force your cluster from doing what it was doing. |
Deleting the deployment will work to upgrade from 5.6.1 a higher version since it will then be allowed to change the labels. However we can't even go from 5.6.0 to 5.6.1 now. Isn't the biggest issue but seems like a different problem than whats stated above. |
If you have the operator from community-operators catalog, you can try restarting (deleting) pods from |
What @tkolo wrote. No matter, there is nothing the grafana-opreator maintainers can do to stop having your cluster in bad state. All we can do is apologize for the inconveniences and point to the workarounds. |
Describe the bug
We are unable to upgrade to grafana-operator.v.5.6.1 from grafana-operator.v.5.6.0
We have a development cluster where we have automatic upgrades for the operators enabled.
This morning our cluster tried to upgrade grafana to 5.6.1 but encountered the following error:
install strategy failed: Deployment.apps "grafana-operator-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/managed-by":"olm", "app.kubernetes.io/name":"grafana-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
Version
v.5.6.0
To Reproduce
Expected behavior
Successful installation of v.5.6.1
Runtime (please complete the following information):
OS: Linux
Grafana Operator Version v5.6.0
Environment: Openshift 4.12.26
Deployment type: Deployed via operatorhub
The text was updated successfully, but these errors were encountered: