Bug 1835242 - Can't query SSP CRs after upgrade from 2.3 to 2.4
Summary: Can't query SSP CRs after upgrade from 2.3 to 2.4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: SSP
Version: 2.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.4.0
Assignee: Karel Šimon
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-13 13:21 UTC by Nahshon Unna-Tsameret
Modified: 2020-07-28 19:10 UTC (History)
5 users (show)

Fixed In Version: kubevirt-ssp-operator-container-v2.4.0-64, hco-bundle-registry-container-v2.3.0-435
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-28 19:10:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt hyperconverged-cluster-operator pull 631 0 None closed Improve the upgrade detection 2020-07-08 12:55:02 UTC
Github kubevirt hyperconverged-cluster-operator pull 635 0 None closed [release-2.4] Improve the upgrade detection 2020-07-08 12:55:02 UTC
Red Hat Product Errata RHSA-2020:3194 0 None None None 2020-07-28 19:10:18 UTC

Description Nahshon Unna-Tsameret 2020-05-13 13:21:52 UTC
Description of problem:
SSP CRD names were changed from 2.3 to 2.4, but the old CRDs are not removed when deleting the old version. That creates two set of CRDs with different names, and blocks querying the DRs.


Version-Release number of selected component (if applicable):
2.3

How reproducible:


Steps to Reproduce:
1. deploy CNV 2.3
2. upgrade to CNV 2.4
3. query SSP CRs, e.g.
```
# oc get kubevirtnodelabellerbundles --all-namespaces
No resources found.
# oc get kubevirtmetricsaggregations --all-namespaces
No resources found.
# oc get kubevirtcommontemplatesbundles --all-namespaces
No resources found.
# oc get kubevirttemplatevalidators --all-namespaces
No resources found.

```

Actual results:
1. No resource found
2. When querying the CRDs, K8s returns two result for each CRD

Expected results:
1. CR is returned
2. When querying an SSP CRD, only one result is returned

Additional info:

Comment 1 Omer Yahud 2020-05-21 07:54:39 UTC
Should be solved along with https://bugzilla.redhat.com/show_bug.cgi?id=1832283.
Once 283 is verified, this should be retested

Comment 3 Ruth Netser 2020-07-08 13:08:33 UTC
Verified:  OCP 4.5.0-rc.6, upgrade from 2.3.0 - > 2.4.0 (SSP v2.4.0-66) ends successfully.

SSP CRs and CRDs exist on the clustser:

$ oc get crd -n openshift-cnv|grep ssp
kubevirtcommontemplatesbundles.ssp.kubevirt.io                   2020-07-08T11:06:33Z
kubevirtmetricsaggregations.ssp.kubevirt.io                      2020-07-08T11:06:34Z
kubevirtnodelabellerbundles.ssp.kubevirt.io                      2020-07-08T11:06:34Z
kubevirttemplatevalidators.ssp.kubevirt.io                       2020-07-08T11:06:34Z

$ oc get kubevirtnodelabellerbundles --all-namespaces
NAMESPACE       NAME                                    AGE
openshift-cnv   node-labeller-kubevirt-hyperconverged   111m

$ oc get kubevirtmetricsaggregations --all-namespaces
NAMESPACE       NAME                                          AGE
openshift-cnv   metrics-aggregation-kubevirt-hyperconverged   111m

$ oc get kubevirtcommontemplatesbundles --all-namespaces
NAMESPACE   NAME                                       AGE
openshift   common-templates-kubevirt-hyperconverged   111m

$ oc get kubevirttemplatevalidators --all-namespaces
NAMESPACE       NAME                                         AGE
openshift-cnv   template-validator-kubevirt-hyperconverged   111m

Comment 6 errata-xmlrpc 2020-07-28 19:10:07 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, 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-2020:3194


Note You need to log in before you can comment on or make changes to this bug.