Bug 1948065
| Summary: | Kubernetes NMState Operator stuck in Pending status after install | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Derrick Ornelas <dornelas> |
| Component: | Networking | Assignee: | Yossi Boaron <yboaron> |
| Networking sub component: | kubernetes-nmstate-operator | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED WORKSFORME | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | bbennett, beth.white, bnemec, dornelas, yboaron |
| Version: | 4.7 | Keywords: | Triaged |
| Target Milestone: | --- | ||
| Target Release: | 4.9.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-18 13:38:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1944805 | ||
|
Description
Derrick Ornelas
2021-04-09 22:26:20 UTC
If I update the nmstate-handler Service Account metadata.ownerReferences.uid to the uid of the kubernetes-nmstate-operator.v4.7.0 ClusterServiceVersion, then the service account disappears, and the nmstate-handler and nmstate-webhook pods start throwing errors # ./oc get -n openshift-nmstate events --sort-by='.lastTimestamp' LAST SEEN TYPE REASON OBJECT MESSAGE 79m Normal CreatedSCCRanges namespace/openshift-nmstate created SCC ranges 78m Normal RequirementsUnknown clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 requirements not yet checked 78m Normal Scheduled pod/nmstate-operator-c87f9c5dc-4pxvw Successfully assigned openshift-nmstate/nmstate-operator-c87f9c5dc-4pxvw to master2.cluster2.openshift.lan 78m Normal AllRequirementsMet clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 all requirements found, attempting install 78m Normal InstallSucceeded clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 waiting for install components to report healthy 78m Normal InstallWaiting clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 installing: waiting for deployment nmstate-operator to become ready: Waiting for deployment spec update to be observed... 78m Normal SuccessfulCreate replicaset/nmstate-operator-c87f9c5dc Created pod: nmstate-operator-c87f9c5dc-4pxvw 78m Normal ScalingReplicaSet deployment/nmstate-operator Scaled up replica set nmstate-operator-c87f9c5dc to 1 78m Normal InstallWaiting clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 installing: waiting for deployment nmstate-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available... 78m Normal AddedInterface pod/nmstate-operator-c87f9c5dc-4pxvw Add eth0 [10.129.0.13/23] 78m Normal Pulling pod/nmstate-operator-c87f9c5dc-4pxvw Pulling image "registry.redhat.io/openshift4/kubernetes-nmstate-rhel8-operator@sha256:95139aed7e6d71c1931a0fc9767891d4077d7157f70a92a9175cf9fd530f0599" 78m Normal Created pod/nmstate-operator-c87f9c5dc-4pxvw Created container nmstate-operator 78m Normal Pulled pod/nmstate-operator-c87f9c5dc-4pxvw Successfully pulled image "registry.redhat.io/openshift4/kubernetes-nmstate-rhel8-operator@sha256:95139aed7e6d71c1931a0fc9767891d4077d7157f70a92a9175cf9fd530f0599" in 1.100695756s 78m Normal Started pod/nmstate-operator-c87f9c5dc-4pxvw Started container nmstate-operator 78m Normal InstallSucceeded clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 install strategy completed with no errors 77m Normal SuccessfulCreate replicaset/nmstate-webhook-74b5db87f6 Created pod: nmstate-webhook-74b5db87f6-n8pf6 77m Normal Scheduled pod/nmstate-handler-957zb Successfully assigned openshift-nmstate/nmstate-handler-957zb to worker0.cluster2.openshift.lan 77m Normal Scheduled pod/nmstate-handler-zfjlw Successfully assigned openshift-nmstate/nmstate-handler-zfjlw to master2.cluster2.openshift.lan 77m Normal SuccessfulCreate daemonset/nmstate-handler Created pod: nmstate-handler-9gvrm 77m Normal Scheduled pod/nmstate-handler-7jh56 Successfully assigned openshift-nmstate/nmstate-handler-7jh56 to master0.cluster2.openshift.lan 77m Normal SuccessfulCreate replicaset/nmstate-webhook-74b5db87f6 Created pod: nmstate-webhook-74b5db87f6-xjg2l 77m Normal Scheduled pod/nmstate-webhook-74b5db87f6-xjg2l Successfully assigned openshift-nmstate/nmstate-webhook-74b5db87f6-xjg2l to master2.cluster2.openshift.lan 77m Normal Scheduled pod/nmstate-handler-9gvrm Successfully assigned openshift-nmstate/nmstate-handler-9gvrm to worker1.cluster2.openshift.lan 77m Normal SuccessfulCreate daemonset/nmstate-handler Created pod: nmstate-handler-trlmn 77m Normal ScalingReplicaSet deployment/nmstate-webhook Scaled up replica set nmstate-webhook-74b5db87f6 to 2 77m Normal SuccessfulCreate daemonset/nmstate-handler Created pod: nmstate-handler-zfjlw 77m Normal SuccessfulCreate daemonset/nmstate-handler Created pod: nmstate-handler-957zb 77m Normal Scheduled pod/nmstate-webhook-74b5db87f6-n8pf6 Successfully assigned openshift-nmstate/nmstate-webhook-74b5db87f6-n8pf6 to master2.cluster2.openshift.lan 77m Normal Scheduled pod/nmstate-handler-trlmn Successfully assigned openshift-nmstate/nmstate-handler-trlmn to master1.cluster2.openshift.lan 77m Normal SuccessfulCreate daemonset/nmstate-handler Created pod: nmstate-handler-7jh56 77m Normal Pulling pod/nmstate-handler-957zb Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal Pulling pod/nmstate-handler-trlmn Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal Pulling pod/nmstate-handler-9gvrm Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal Pulling pod/nmstate-handler-7jh56 Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal Pulling pod/nmstate-handler-zfjlw Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal AddedInterface pod/nmstate-webhook-74b5db87f6-n8pf6 Add eth0 [10.129.0.14/23] 77m Normal Pulled pod/nmstate-handler-zfjlw Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.351433901s 77m Normal Created pod/nmstate-handler-zfjlw Created container nmstate-handler 77m Normal Started pod/nmstate-handler-zfjlw Started container nmstate-handler 77m Normal Pulled pod/nmstate-handler-trlmn Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.472857175s 77m Normal AddedInterface pod/nmstate-webhook-74b5db87f6-xjg2l Add eth0 [10.129.0.15/23] 77m Normal Started pod/nmstate-handler-trlmn Started container nmstate-handler 77m Normal Created pod/nmstate-handler-trlmn Created container nmstate-handler 77m Normal Started pod/nmstate-handler-9gvrm Started container nmstate-handler 77m Normal Created pod/nmstate-handler-9gvrm Created container nmstate-handler 77m Normal Pulled pod/nmstate-handler-9gvrm Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.694459449s 77m Normal Started pod/nmstate-handler-957zb Started container nmstate-handler 77m Normal Created pod/nmstate-handler-957zb Created container nmstate-handler 77m Normal Pulled pod/nmstate-handler-957zb Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.557592774s 77m Normal Started pod/nmstate-handler-7jh56 Started container nmstate-handler 77m Normal Created pod/nmstate-handler-7jh56 Created container nmstate-handler 77m Normal Pulled pod/nmstate-handler-7jh56 Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.40683149s 77m Normal Pulling pod/nmstate-webhook-74b5db87f6-xjg2l Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 77m Normal Pulled pod/nmstate-webhook-74b5db87f6-n8pf6 Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.20654852s 77m Normal Pulled pod/nmstate-webhook-74b5db87f6-xjg2l Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.167304574s 77m Warning FailedToUpdateEndpoint endpoints/nmstate-webhook Failed to update endpoint openshift-nmstate/nmstate-webhook: Operation cannot be fulfilled on endpoints "nmstate-webhook": the object has been modified; please apply your changes to the latest version and try again 77m Normal Created pod/nmstate-webhook-74b5db87f6-xjg2l Created container nmstate-webhook 77m Normal Started pod/nmstate-webhook-74b5db87f6-xjg2l Started container nmstate-webhook 76m Normal LeaderElection configmap/5d2e944a.nmstate.io nmstate-webhook-74b5db87f6-n8pf6_3cae2580-1514-4591-9ad0-21612610f926 became leader 76m Normal RequirementsNotMet clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 one or more requirements couldn't be found 76m Normal RequirementsNotMet clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 requirements not met 76m Warning RequirementsNotMet clusterserviceversion/kubernetes-nmstate-operator.v4.7.0 requirements no longer met 76m Warning Unhealthy pod/nmstate-webhook-74b5db87f6-n8pf6 Readiness probe failed: Get "https://10.129.0.14:8443/readyz": dial tcp 10.129.0.14:8443: connect: connection refused 75m Warning Unhealthy pod/nmstate-webhook-74b5db87f6-xjg2l Readiness probe failed: Get "https://10.129.0.15:8443/readyz": dial tcp 10.129.0.15:8443: connect: connection refused 12m Normal Pulled pod/nmstate-webhook-74b5db87f6-n8pf6 Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.888293628s 11m Normal Pulled pod/nmstate-webhook-74b5db87f6-n8pf6 Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.384430314s 11m Normal Pulling pod/nmstate-webhook-74b5db87f6-n8pf6 Pulling image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" 11m Normal Started pod/nmstate-webhook-74b5db87f6-n8pf6 Started container nmstate-webhook 11m Normal Pulled pod/nmstate-webhook-74b5db87f6-n8pf6 Successfully pulled image "registry.redhat.io/openshift4/ose-kubernetes-nmstate-handler-rhel8@sha256:fce48697d94273ea27341b962d8e91884c144a9f6c2e6988108af62852c0fa44" in 1.571531453s 11m Normal Created pod/nmstate-webhook-74b5db87f6-n8pf6 Created container nmstate-webhook 11m Warning FailedMount pod/nmstate-webhook-74b5db87f6-n8pf6 MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 2m3s Warning BackOff pod/nmstate-webhook-74b5db87f6-n8pf6 Back-off restarting failed container 119s Warning FailedMount pod/nmstate-handler-7jh56 MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 99s Warning FailedMount pod/nmstate-handler-zfjlw MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 96s Warning FailedMount pod/nmstate-handler-957zb MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 68s Warning FailedMount pod/nmstate-handler-9gvrm MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 66s Warning FailedMount pod/nmstate-webhook-74b5db87f6-xjg2l MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found 5s Warning FailedMount pod/nmstate-handler-trlmn MountVolume.SetUp failed for volume "nmstate-handler-token-v5ttw" : secret "nmstate-handler-token-v5ttw" not found I don't know if or how BZ 1914354 might be related to any of this @dornelas, I deployed the updated version of 4.7 k8s-nmstate operator on OCP 4.7 (check [1] for OCP and nmstate operator versions) successfully. The problem does not seem to reproduce in the latest 4.7 version, can you please check the latest version in your environment? [1] [kni@worker-0 dev-scripts]$ oc version Client Version: 4.7.0-0.nightly-2021-10-11-105617 Server Version: 4.7.0-0.nightly-2021-10-11-105617 Kubernetes Version: v1.20.0+bbbc079 [kni@worker-0 dev-scripts]$ oc get csv -n openshift-nmstate NAME DISPLAY VERSION REPLACES PHASE kubernetes-nmstate-operator.4.7.0-202110051546 Kubernetes NMState Operator 4.7.0-202110051546 Succeeded [kni@worker-0 dev-scripts]$ @dornelas Any update on this issue? Can we close this bug? I'm going to close this bug, in case you manage to reproduce it please reopen it. |