Replies: 4 comments 14 replies
-
Please attach (or upload to the public file sharing service) must-gather archive |
Beta Was this translation helpful? Give feedback.
-
I saw that message every time we reached 4.10 and updated further up. The update process didn't stop for me and in the end, it finished successfully, even though on a nearly empty cluster the entire process took 2+ hours. |
Beta Was this translation helpful? Give feedback.
-
Do you have a solution for this problem ? I am facing the same issue with the same okd versions. Trying to upgrade from 4.12.0-0.okd-2023-04-16-041331 to 4.13.0-0.okd-2023-05-22-052007. Upgrade is blocked and cannot start. |
Beta Was this translation helpful? Give feedback.
-
for those who has met same problem: you can manually patch status for problem operator via script and continue update: package main
import (
"context"
"fmt"
v1 "github.com/openshift/api/config/v1"
config "github.com/openshift/client-go/config/clientset/versioned/typed/config/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/clientcmd"
"time"
)
func main() {
kubeconfig, err := clientcmd.BuildConfigFromFlags("", "kubeconfig")
if err != nil {
panic(err.Error())
}
clientset, err := config.NewForConfig(kubeconfig)
if err != nil {
panic(err.Error())
}
ctx := context.Background()
obj, err := clientset.ClusterOperators().Get(ctx, "cloud-controller-manager", metav1.GetOptions{})
if err != nil {
panic(err.Error())
}
fmt.Println(obj)
var conds []v1.ClusterOperatorStatusCondition
for _, cond := range obj.Status.Conditions {
if cond.Type != "Upgradeable" {
conds = append(conds, cond)
} else {
nc := v1.ClusterOperatorStatusCondition{
Type: cond.Type,
Status: "True",
LastTransitionTime: metav1.Time{Time: time.Now()},
Reason: cond.Reason,
}
conds = append(conds, nc)
}
}
newObj := obj.DeepCopy()
newObj.Status.Conditions = conds
fmt.Println(newObj)
_, err = clientset.ClusterOperators().UpdateStatus(ctx, newObj, metav1.UpdateOptions{})
if err != nil {
panic(err.Error())
}
} |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to update our okd 4.12.0-0.okd-2023-04-16-041331 cluster to version 4.13.0-0.okd-2023-05-22-052007.
We are in the stable-4 channel. For some reason the cloud-controller-manager operator blocks the update withe the message:
"Message: Cluster operator cloud-controller-manager should not be upgraded between minor versions: "
But I don't see any specific reason why it should not be updated.
`
oc adm upgrade
Cluster version is 4.12.0-0.okd-2023-04-16-041331
Upgradeable=False
Reason: AsExpected
Message: Cluster operator cloud-controller-manager should not be upgraded between minor versions:
Upstream: https://amd64.origin.releases.ci.openshift.org/graph
Channel: stable-4
Updates:
VERSION IMAGE
4.13.0-0.okd-2023-05-22-052007 registry.ci.openshift.org/origin/release@sha256:16b7227d0c0de198d65c4478617e402d7f67ffc0dee312110a9d4c85877e5e4d
`
In the clusteroperator view in the webUI I see only that the operator can not be updated.
Any suggestion how I can solve this problem?
Regards
Florian
Beta Was this translation helpful? Give feedback.
All reactions