-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.7
-
Low
-
None
-
Unspecified
-
-
Bug Fix
Description of problem:
4.7.0-0.nightly-2021-02-09-192846 cluster, removed crd/servicemonitors.monitoring.coreos.com which should be reconciled by CVO, it is recreated later, but try again with the steps, it is not recrated.
also tried in other 4.7 cluster, it is not recreated at all after it is removed.
1. delete for the first time
- oc get crd/servicemonitors.monitoring.coreos.com
NAME CREATED AT
servicemonitors.monitoring.coreos.com 2021-02-09T23:40:33Z - oc delete crd/servicemonitors.monitoring.coreos.com
customresourcedefinition.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" deleted - while true; do date; oc get crd/servicemonitors.monitoring.coreos.com; sleep 20s; done
Wed Feb 10 02:22:55 EST 2021
NAME CREATED AT
servicemonitors.monitoring.coreos.com 2021-02-10T08:55:22Z
Wed Feb 10 02:23:16 EST 2021
NAME CREATED AT
servicemonitors.monitoring.coreos.com 2021-02-10T08:55:22Z
2. repeat the steps
- oc get crd/servicemonitors.monitoring.coreos.com
NAME CREATED AT
servicemonitors.monitoring.coreos.com 2021-02-10T08:55:22Z - oc delete crd/servicemonitors.monitoring.coreos.com
customresourcedefinition.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" deleted - while true; do date; oc get crd/servicemonitors.monitoring.coreos.com; sleep 20s; done
Wed Feb 10 03:54:53 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
Wed Feb 10 03:55:13 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
Wed Feb 10 03:55:33 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
Wed Feb 10 03:55:53 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
...
Wed Feb 10 04:03:18 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
...
Wed Feb 10 04:06:20 EST 2021
Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io "servicemonitors.monitoring.coreos.com" not found
Could not update servicemonitor errors in CVO logs
2021-02-10T09:20:27.701991313Z I0210 09:20:27.701944 1 sync_worker.go:937] Update error 635 of 668: UpdatePayloadResourceTypeMissing Could not update servicemonitor "openshift-kube-scheduler-operator/kube-scheduler-operator" (635 of 668): the server does not recognize this resource, check extension API servers (*errors.withStack: failed to get resource type: no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1")
2021-02-10T09:20:27.702001158Z I0210 09:20:27.701989 1 sync_worker.go:937] Update error 608 of 668: UpdatePayloadResourceTypeMissing Could not update servicemonitor "openshift-dns-operator/dns-operator" (608 of 668): the server does not recognize this resource, check extension API servers (*errors.withStack: failed to get resource type: no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1")
2021-02-10T09:20:27.702036790Z E0210 09:20:27.702021 1 sync_worker.go:353] unable to synchronize image (waiting 2m50.956499648s): Multiple errors are preventing progress:
2021-02-10T09:20:27.702036790Z * Could not update servicemonitor "openshift-dns-operator/dns-operator" (608 of 668): the server does not recognize this resource, check extension API servers
2021-02-10T09:20:27.702036790Z * Could not update servicemonitor "openshift-kube-scheduler-operator/kube-scheduler-operator" (635 of 668): the server does not recognize this resource, check extension API servers
...
Version-Release number of the following components:
4.7.0-0.nightly-2021-02-09-192846
How reproducible:
not sure
Steps to Reproduce:
1. see the steps
2.
3.
Actual results:
the removed crd/servicemonitors.monitoring.coreos.com is not recreated
Expected results:
should be recreated
Additional info: