Bug 1878757
Summary: | [uninstallation bug] virt-api, virt-controller Deployments and virt-handler DaemonSet are not getting deleted upon Kubevirt CR deletion | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Oren Cohen <ocohen> |
Component: | Virtualization | Assignee: | David Vossel <dvossel> |
Status: | CLOSED ERRATA | QA Contact: | Kedar Bidarkar <kbidarka> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.5.0 | CC: | cnv-qe-bugs, dvossel, fdeutsch, kbidarka, lbednar, rgarcia, sgott, stirabos |
Target Milestone: | --- | ||
Target Release: | 2.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | hco-bundle-registry-container-v2.5.0-209 virt-operator-container-v2.5.0-54 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-17 13:24:22 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: |
Description
Oren Cohen
2020-09-14 13:17:30 UTC
David, do you have an idea why this could be? yes. This was a result of the change to use the status subresource. Our operator wasn't properly handling the finalizer after that subresource change, which caused the KubeVirt cr to disappear before uninstallation. This merged PR fixes this. https://github.com/kubevirt/kubevirt/pull/4113 (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get kv NAME AGE PHASE kubevirt-kubevirt-hyperconverged 6d7h Deployed (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get deployments NAME READY UP-TO-DATE AVAILABLE AGE cdi-operator 0/1 1 0 6d7h cluster-network-addons-operator 1/1 1 1 6d7h hco-operator 1/1 1 1 6d7h hostpath-provisioner-operator 1/1 1 1 6d7h kubemacpool-mac-controller-manager 1/1 1 1 6d7h kubevirt-ssp-operator 1/1 1 1 6d7h nmstate-webhook 2/2 2 2 6d7h node-maintenance-operator 1/1 1 1 6d7h virt-api 2/2 2 2 6d7h virt-controller 2/2 2 2 6d7h virt-operator 2/2 2 2 6d7h vm-import-operator 1/1 1 1 6d7h (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get daemonsets NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE bridge-marker 6 6 6 6 6 beta.kubernetes.io/arch=amd64 6d7h hostpath-provisioner 3 3 3 3 3 <none> 6d7h kube-cni-linux-bridge-plugin 6 6 6 6 6 beta.kubernetes.io/arch=amd64 6d7h kubevirt-node-labeller 3 3 3 3 3 <none> 5d nmstate-handler 6 6 6 6 6 beta.kubernetes.io/arch=amd64 6d7h ovs-cni-amd64 6 6 6 6 6 beta.kubernetes.io/arch=amd64 6d7h virt-handler 3 3 3 3 3 <none> 6d7h (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc delete hco kubevirt-hyperconverged hyperconverged.hco.kubevirt.io "kubevirt-hyperconverged" deleted (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get kv No resources found in openshift-cnv namespace. (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc delete csv --all clusterserviceversion.operators.coreos.com "kubevirt-hyperconverged-operator.v2.5.0" deleted (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc delete subs --all subscription.operators.coreos.com "hco-operatorhub" deleted (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get deployments No resources found in openshift-cnv namespace. (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get ds NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE hostpath-provisioner 3 3 3 3 3 <none> 6d7h (cnv-tests) [kbidarka@kbidarka-host cnv-tests]$ oc get pods NAME READY STATUS RESTARTS AGE hostpath-provisioner-4f9c4 1/1 Running 0 6d7h hostpath-provisioner-mj5kf 1/1 Running 0 6d7h hostpath-provisioner-qvtkg 1/1 Running 0 6d7h ------------------------ Deleting the HCO CR was successful. openshift-cnv namespace, is empty from virt( pods, deployments and daemonsets ) after CNV removal. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Virtualization 2.5.0 Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:5127 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |