-
Notifications
You must be signed in to change notification settings - Fork 237
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
Hive Cluster Relocation is stuck on kube-root-ca.crt and openshift-service-ca.crt already exists #1932
Comments
Howdy! I'm looking into this, but lots of people have lots of vacation until January, so it may be a little bit.
|
Couple of things I've discovered/surmised:
I'm afraid I don't have a workaround for you. I'm looking into code changes that would help. In the meantime, the below would really help me out:
|
We track bugs in Jira, so I've created https://issues.redhat.com/browse/HIVE-2080 for this one. Please feel free to follow along there. |
The source cluster where we are moving from we successfully moved 4 openshift clusters (ClusterDeployments/configmaps/secrets) all to new hive but one got stuck in it , I tried it many times but last one stayed stuck because it kept saying the configmaps already exists. I tried to update the configmap or tried deleting the namespace to beat the race condition but nothing helped. Yes , I know the configmap creation feature in namespace came in 1.20 But I strongly feel it should be handled. As We had to turn off the old hub we just imported the cluster in rhacm for now and turned it off without moving clusterdeployment and machinepools. Great that you created a bug and please can you give us updates on it so we can follow up here. |
Tracking via https://issues.redhat.com/browse/HIVE-2080 |
Starting in k8s 1.21, the kube-controller-manager (and presumably OpenShift's fork thereof) creates/reconciles `kube-root-ca.crt` and `openshift-service-ca.crt` ConfigMaps in every namespace. On relocate, as we're copying objects, we'll try to copy these from the source to the destination cluster, fail because the object (with the same name) already exists, try to delete it, and then race with the kcm trying to create it again. If the relocate controller loses the race, it'll fail the relocate and try again. It might succeed eventually if it wins the race, but in at least one case (see associated issue/card) it never won. With this commit, we ignore these two ConfigMaps, based on their names (hardcoded). HIVE-2080 closes openshift#1932
Hive Cluster Relocation is stuck on kube-root-ca.crt and openshift-service-ca.crt already exists . These configmaps are created by default when namespace created and hive clusterdeployment fails with error
Is there a way to ignore these configmaps ? We are stuck in a migration , looking forward to any help !
The text was updated successfully, but these errors were encountered: