Bug 1878042

Summary: .spec.customresourcedefinitions.owned[].version is empty on SSP operator CSV making it invalid
Product: Container Native Virtualization (CNV) Reporter: Simone Tiraboschi <stirabos>
Component: SSPAssignee: Karel Šimon <ksimon>
Status: CLOSED ERRATA QA Contact: Ruth Netser <rnetser>
Severity: high Docs Contact:
Priority: urgent    
Version: 2.5.0CC: cnv-qe-bugs, fdeutsch, ncredi
Target Milestone: ---Keywords: AutomationBlocker, TestBlocker, TestBlockerForLayeredProduct
Target Release: 2.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubevirt-ssp-operator-container-v2.5.0-39 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 Simone Tiraboschi 2020-09-11 07:17:59 UTC
Description of problem:
Recent 2.5.0 builds are failing on "Operator Bundle Data Linting Test"on CVP,
the reported errors are like:

time="2020-09-10T18:24:05Z" level=error msg="Error: Value ssp.kubevirt.io/, Kind=KubevirtCommonTemplatesBundle: owned CRD \"ssp.kubevirt.io/, Kind=KubevirtCommonTemplatesBundle\" not found in bundle \"kubevirt-hyperconverged-operator.v2.5.0\""
...
time="2020-09-10T18:24:05Z" level=error msg="Error: Value ssp.kubevirt.io/v1, Kind=KubevirtCommonTemplatesBundle: CRD \"ssp.kubevirt.io/v1, Kind=KubevirtCommonTemplatesBundle\" is present in bundle \"kubevirt-hyperconverged-operator.v2.5.0\" but not defined in CSV"

Please notice the difference between 'ssp.kubevirt.io/' and 'ssp.kubevirt.io/v1'.

The root cause is that .spec.customresourcedefinitions.owned[].version is now empty in the CSV of SSP oeprator.

The same issue is also present in upstream CSV:
https://github.com/kubevirt/kubevirt-ssp-operator/blob/master/deploy/olm-catalog/kubevirt-ssp-operator.clusterserviceversion.yaml#L26

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

How reproducible:
100%

Steps to Reproduce:
1. Wait for a new build
2.
3.

Actual results:
New builds are rejected by CVP

Expected results:
New builds passes CVP tests

Additional info:
The regression probably comes from https://github.com/kubevirt/kubevirt-ssp-operator/pull/225

Comment 1 Ruth Netser 2020-09-22 19:53:23 UTC
Verified with kubevirt-ssp-operator-container-v2.5.0-42
SSP is deployed successfully.

Comment 4 errata-xmlrpc 2020-11-17 13:24:22 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 (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