Error while upgrading Strimzi operator from 0.23.0 to 0.25.0 #5482
Replies: 2 comments 6 replies
-
I'm not sure how you installed 0.23, but you haven't done it properly. And haven't done the CRD upgrade: https://strimzi.io/docs/operators/0.24.0/deploying.html#assembly-upgrade-resources-str ... so you have to do it now. |
Beta Was this translation helpful? Give feedback.
-
Hi @scholzj, I'm at 0.22.1 and CRD version is still According to the guideline, the procedure is:
However, when I tried to upgrade the resources with the YAML generated by the
If I tried to upgrade the CRDs first, I got the following error:
I'm really not sure if I missed any step? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to upgrade Strimzi operator from version 0.23.0 to 0.25.0.
When we tried to upgrade from 0.23.0 we got below errors:
kubectl replace -f install/cluster-operator -n databus
serviceaccount/strimzi-cluster-operator replaced
clusterrole.rbac.authorization.k8s.io/strimzi-cluster-operator-namespaced replaced
rolebinding.rbac.authorization.k8s.io/strimzi-cluster-operator replaced
clusterrole.rbac.authorization.k8s.io/strimzi-cluster-operator-global replaced
clusterrolebinding.rbac.authorization.k8s.io/strimzi-cluster-operator replaced
clusterrole.rbac.authorization.k8s.io/strimzi-kafka-broker replaced
clusterrolebinding.rbac.authorization.k8s.io/strimzi-cluster-operator-kafka-broker-delegation replaced
clusterrole.rbac.authorization.k8s.io/strimzi-entity-operator replaced
rolebinding.rbac.authorization.k8s.io/strimzi-cluster-operator-entity-operator-delegation replaced
clusterrole.rbac.authorization.k8s.io/strimzi-kafka-client replaced
clusterrolebinding.rbac.authorization.k8s.io/strimzi-cluster-operator-kafka-client-delegation replaced
customresourcedefinition.apiextensions.k8s.io/kafkatopics.kafka.strimzi.io replaced
customresourcedefinition.apiextensions.k8s.io/kafkausers.kafka.strimzi.io replaced
configmap/strimzi-cluster-operator replaced
Error from server (Invalid): error when replacing "install/cluster-operator/040-Crd-kafka.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkas.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1beta1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/041-Crd-kafkaconnect.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkaconnects.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1beta1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/045-Crd-kafkamirrormaker.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkamirrormakers.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1beta1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/046-Crd-kafkabridge.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkabridges.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/047-Crd-kafkaconnector.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkaconnectors.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/048-Crd-kafkamirrormaker2.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkamirrormaker2s.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
Error from server (Invalid): error when replacing "install/cluster-operator/049-Crd-kafkarebalance.yaml": CustomResourceDefinition.apiextensions.k8s.io "kafkarebalances.kafka.strimzi.io" is invalid: status.storedVersions[0]: Invalid value: "v1alpha1": must appear in spec.versions
We modified files with errors and assigned
After making above changes when we try to upgrade the operator the strimzi operator pod goes in "Error" state and is giving below errors in the logs
We tried to Delete the strimzi operator deployment & Delete all strimzi CRD's and created the operator from scratch with "kubectl apply -f install/cluster-operator -n databus"
but still we get the same error message:
2021-08-26 06:28:52 INFO ClusterOperator:94 - Starting ClusterOperator for namespace databus
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 WARN WatcherWebSocketListener:73 - Exec Failure: HTTP 404, Status: 404 - 404 page not found
2021-08-26 06:28:52 ERROR Main:153 - Cluster Operator verticle in namespace databus failed to start
io.fabric8.kubernetes.client.KubernetesClientException: 404 page not found
Expected behavior
Strimzi operator pod should be upgraded from 0.23.0 to 0.25.0 and operator pod should restart without error.
The operator pod is currently going into error state with the above mentioned errors.
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions