Bug 2063991

Summary: On upgraded cluster, "v2v-vmware" is present under hco.status.relatedObject
Product: Container Native Virtualization (CNV) Reporter: Debarati Basu-Nag <dbasunag>
Component: InstallationAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED ERRATA QA Contact: Debarati Basu-Nag <dbasunag>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.10.0CC: cnv-qe-bugs, ocohen, stirabos
Target Milestone: ---   
Target Release: 4.10.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.10.1-98 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-18 20:27:26 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:

Comment 3 Debarati Basu-Nag 2022-04-11 16:56:26 UTC
I am still seeing this, post 4.9.4->4.10.0->4.10.1(registry-proxy.engineering.redhat.com/rh-osbs/iib:212294) upgrade:
==========================
[cnv-qe-jenkins@c01-upg-49-rxt2v-executor ~]$ kubectl get configMap -n openshift-cnv -o json vm-import-controller-config  | jq "."
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "metadata": {
    "creationTimestamp": "2022-04-08T19:36:41Z",
    "name": "vm-import-controller-config",
    "namespace": "openshift-cnv",
    "resourceVersion": "53809",
    "uid": "f2122d19-ff18-4e0d-9a92-74a371c4a3a5"
  }
}
[cnv-qe-jenkins@c01-upg-49-rxt2v-executor ~]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.relatedObjects[]  | select(.kind == "ConfigMap")'
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "kubevirt-storage-class-defaults",
  "namespace": "openshift-cnv",
  "resourceVersion": "3891118",
  "uid": "1d97ff6d-ecfc-4793-b15b-649c72049df1"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "v2v-vmware",
  "namespace": "openshift-cnv",
  "resourceVersion": "52927",
  "uid": "5142c627-f611-4966-9b58-e1b0b7b645f6"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "grafana-dashboard-kubevirt-top-consumers",
  "namespace": "openshift-config-managed",
  "resourceVersion": "3891242",
  "uid": "140a3e6a-586d-4f92-ac1c-8adf9048a3c0"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "virtio-win",
  "namespace": "openshift-cnv",
  "resourceVersion": "3891263",
  "uid": "ae31f541-44d1-4bb7-acb0-4e8a36c13625"
}
[cnv-qe-jenkins@c01-upg-49-rxt2v-executor ~]$ kubectl get csv -A
NAMESPACE                              NAME                                         DISPLAY                       VERSION               REPLACES                                    PHASE
openshift-cnv                          kubevirt-hyperconverged-operator.v4.10.1     OpenShift Virtualization      4.10.1                kubevirt-hyperconverged-operator.v4.10.0    Succeeded
openshift-local-storage                local-storage-operator.4.10.0-202203311829   Local Storage                 4.10.0-202203311829   local-storage-operator.4.9.0-202203251214   Succeeded
openshift-operator-lifecycle-manager   packageserver                                Package Server                0.18.3                                                            Succeeded
openshift-storage                      mcg-operator.v4.9.6                          NooBaa Operator               4.9.6                 mcg-operator.v4.9.5                         Succeeded
openshift-storage                      ocs-operator.v4.9.6                          OpenShift Container Storage   4.9.6                 ocs-operator.v4.9.5                         Succeeded
[cnv-qe-jenkins@c01-upg-49-rxt2v-executor ~]$

Comment 5 Debarati Basu-Nag 2022-04-27 01:28:07 UTC
Verified against v4.10.1-88, upgraded from 4.9.4->4.10.0->4.10.1
[cnv-qe-jenkins@c01-dbn-49-dj5wz-executor ~]$ kubectl get ip -A
NAMESPACE                 NAME            CSV                                          APPROVAL    APPROVED
openshift-cnv             install-459jv   kubevirt-hyperconverged-operator.v4.9.4      Manual      true
openshift-cnv             install-7znrs   kubevirt-hyperconverged-operator.v4.10.1     Manual      true
openshift-cnv             install-8q29v   kubevirt-hyperconverged-operator.v4.10.0     Manual      true
openshift-local-storage   install-f6mgm   local-storage-operator.4.9.0-202203251214    Automatic   true
openshift-local-storage   install-k78k4   local-storage-operator.4.9.0-202204092357    Automatic   true
openshift-local-storage   install-mp5wj   local-storage-operator.4.10.0-202204090935   Automatic   true
openshift-storage         install-jtgr9   mcg-operator.v4.9.6                          Automatic   true
[cnv-qe-jenkins@c01-dbn-49-dj5wz-executor ~]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.relatedObjects[]  | select(.kind == "ConfigMap")'
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "kubevirt-storage-class-defaults",
  "namespace": "openshift-cnv",
  "resourceVersion": "9464051",
  "uid": "17fbc755-443b-402c-9a1a-5d8ef798369d"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "v2v-vmware",
  "namespace": "openshift-cnv",
  "resourceVersion": "51520",
  "uid": "e0dcacbd-2d2c-4782-bb5e-a5cfd2fce234"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "grafana-dashboard-kubevirt-top-consumers",
  "namespace": "openshift-config-managed",
  "resourceVersion": "9464133",
  "uid": "bca94cbf-a917-4513-91e7-f21bc054ce85"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "virtio-win",
  "namespace": "openshift-cnv",
  "resourceVersion": "9464141",
  "uid": "0233a5dd-b919-4962-aaaf-56b1fb66ef2e"
}
[cnv-qe-jenkins@c01-dbn-49-dj5wz-executor ~]$ 

[cnv-qe-jenkins@c01-dbn-49-dj5wz-executor ~]$ kubectl get configmap -n openshift-cnv | grep vm
v2v-vmware                                         4      7d1h
vm-import-controller-config                        0      7d1h
[cnv-qe-jenkins@c01-dbn-49-dj5wz-executor ~]$

Comment 7 Debarati Basu-Nag 2022-04-30 18:59:50 UTC
Tested against 4.9.4->4.10.0->4.10.1 (build 97)
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ kubectl get csv -n openshift-cnv
NAME                                       DISPLAY                    VERSION   REPLACES                                   PHASE
kubevirt-hyperconverged-operator.v4.10.1   OpenShift Virtualization   4.10.1    kubevirt-hyperconverged-operator.v4.10.0   Succeeded
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ kubectl get catalogsource hco-catalogsource -n openshift-marketplace -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  creationTimestamp: "2022-04-30T02:52:53Z"
  generation: 3
  name: hco-catalogsource
  namespace: openshift-marketplace
  resourceVersion: "997452"
  uid: 84aad572-cc43-4abc-b2e0-ef5d86544649
spec:
  displayName: OpenShift Virtualization Index Image
  image: registry-proxy.engineering.redhat.com/rh-osbs/iib:223664
  publisher: Red Hat
  sourceType: grpc
  updateStrategy:
    registryPoll:
      interval: 8h
status:
  connectionState:
    address: hco-catalogsource.openshift-marketplace.svc:50051
    lastConnect: "2022-04-30T18:48:43Z"
    lastObservedState: READY
  latestImageRegistryPoll: "2022-04-30T18:52:53Z"
  registryService:
    createdAt: "2022-04-30T18:48:20Z"
    port: "50051"
    protocol: grpc
    serviceName: hco-catalogsource
    serviceNamespace: openshift-marketplace
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ 
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.relatedObjects[]  | select(.kind == "ConfigMap")'
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "kubevirt-storage-class-defaults",
  "namespace": "openshift-cnv",
  "resourceVersion": "991348",
  "uid": "48ee69fb-84c1-4802-80ef-74c5ae6495ab"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "v2v-vmware",
  "namespace": "openshift-cnv",
  "resourceVersion": "58268",
  "uid": "ecd013bb-4483-48df-a396-31970db7b2bb"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "grafana-dashboard-kubevirt-top-consumers",
  "namespace": "openshift-config-managed",
  "resourceVersion": "991443",
  "uid": "abe30928-c8cb-4192-9154-198cfe71cf82"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "virtio-win",
  "namespace": "openshift-cnv",
  "resourceVersion": "991460",
  "uid": "8be5d531-78dc-45fe-a689-5edfcd24396f"
}
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ 
cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ kubectl get configmap -n openshift-cnv
NAME                                               DATA   AGE
135b1886.kubevirt.io                               0      30m
5d2e944a.nmstate.io                                0      15h
5d2e944b.nmstate.io                                0      15h
734f7229.kubevirt.io                               0      15h
cdi-apiserver-signer-bundle                        1      15h
cdi-config                                         0      15h
cdi-controller-leader-election-helper              0      15h
cdi-insecure-registries                            0      15h
cdi-operator-leader-election-helper                0      15h
cdi-uploadproxy-signer-bundle                      1      15h
cdi-uploadserver-client-signer-bundle              1      15h
cdi-uploadserver-signer-bundle                     1      15h
cluster-networks-addons-operator-applied-cluster   1      15h
hostpath-provisioner-operator-lock                 0      30m
hyperconverged-cluster-operator-lock               0      15h
kube-root-ca.crt                                   1      16h
kubemacpool-mac-range-config                       2      15h
kubevirt-ca                                        1      15h
kubevirt-install-strategy-5hfnp                    1      28m
kubevirt-install-strategy-g8r99                    1      27m
kubevirt-install-strategy-gk8d4                    1      9m5s
kubevirt-install-strategy-h9l2p                    1      15h
kubevirt-install-strategy-xphc4                    1      7m23s
kubevirt-storage-class-defaults                    6      15h
node-maintenance-operator-lock                     0      15h
openshift-service-ca.crt                           1      16h
v2v-vmware                                         4      15h
virtio-win                                         1      28m
vm-import-controller-config                        0      15h
[cnv-qe-jenkins@c01-dbn-49-4js44-executor ~]$ 

Marking as failed verification.

Comment 9 Debarati Basu-Nag 2022-05-04 13:59:33 UTC
Verified against 4.10.1-102:
=============================
[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq '.status.relatedObjects[]  | select(.kind == "ConfigMap")'
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "kubevirt-storage-class-defaults",
  "namespace": "openshift-cnv",
  "resourceVersion": "1114161",
  "uid": "6c1bb107-69cd-4910-a504-3496f85eb4e7"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "grafana-dashboard-kubevirt-top-consumers",
  "namespace": "openshift-config-managed",
  "resourceVersion": "1114241",
  "uid": "fe3b7d6f-841f-4087-951f-1cdd3f4e851e"
}
{
  "apiVersion": "v1",
  "kind": "ConfigMap",
  "name": "virtio-win",
  "namespace": "openshift-cnv",
  "resourceVersion": "1114271",
  "uid": "16833a5a-de86-4fdc-a9e1-118d6bf20dec"
}
[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$ 

[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$ kubectl get hco kubevirt-hyperconverged -n openshift-cnv -o json | jq ".status.versions" 
[
  {
    "name": "operator",
    "version": "4.10.1"
  }
]
[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$ 
[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$ kubectl get configmap -n openshift-cnv
NAME                                               DATA   AGE
135b1886.kubevirt.io                               0      28m
5d2e944a.nmstate.io                                0      18h
5d2e944b.nmstate.io                                0      18h
734f7229.kubevirt.io                               0      18h
cdi-apiserver-signer-bundle                        1      18h
cdi-config                                         0      18h
cdi-controller-leader-election-helper              0      18h
cdi-insecure-registries                            0      18h
cdi-operator-leader-election-helper                0      18h
cdi-uploadproxy-signer-bundle                      1      18h
cdi-uploadserver-client-signer-bundle              1      18h
cdi-uploadserver-signer-bundle                     1      18h
cluster-networks-addons-operator-applied-cluster   1      18h
hostpath-provisioner-operator-lock                 0      28m
hyperconverged-cluster-operator-lock               0      18h
kube-root-ca.crt                                   1      18h
kubemacpool-mac-range-config                       2      18h
kubevirt-ca                                        1      18h
kubevirt-install-strategy-2c7vk                    1      4m22s
kubevirt-install-strategy-85dbp                    1      5m57s
kubevirt-install-strategy-fxvhv                    1      26m
kubevirt-install-strategy-lcrnf                    1      18h
kubevirt-install-strategy-pntt2                    1      25m
kubevirt-storage-class-defaults                    6      18h
node-maintenance-operator-lock                     0      18h
openshift-service-ca.crt                           1      18h
virtio-win                                         1      27m
[cnv-qe-jenkins@c01-dbn-49-lms9w-executor ~]$

Comment 15 errata-xmlrpc 2022-05-18 20:27:26 UTC
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 (Moderate: OpenShift Virtualization 4.10.1 Images security and bug fix update), 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/RHSA-2022:4668