Bug 2012952

Summary: clusterresourceoverride operator not specifying required annotations.
Product: OpenShift Container Platform Reporter: Mehul Modi <memodi>
Component: NodeAssignee: Peter Hunt <pehunt>
Node sub component: CRI-O QA Contact: Sunil Choudhary <schoudha>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: aos-bugs, cmacedo, rycole
Version: 4.8   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-11 18:57: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:

Description Mehul Modi 2021-10-11 17:19:40 UTC
Description of problem:
CVP tests for ose-clusterresourceoverride-operator-metadata-container-v4.8.0.202110011559.p0.git.a79c117.assembly.stream-1 is failing for 4.8.14 OLM Operators metadata


time="2021-10-08T15:06:23Z" level=error msg="Error: Value : (clusterresourceoverride-operator.4.8.0-202110011559) csv.Annotations not specified olm.maxOpenShiftVersion for an OCP version < 4.9. This annotation is required to prevent the user from upgrading their OCP cluster before they have installed a version of their operator which is compatible with 4.9. This bundle is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 which are no longer supported on 4.9. Migrate the API(s) for CRD: ([\"clusterresourceoverrides.operator.autoscaling.openshift.io\"]) or use the annotation"
time="2021-10-08T15:06:23Z" level=error msg="Error: Value : (clusterresourceoverride-operator.4.8.0-202110011559) unable to get the range informed on com.redhat.openshift.versions"



Version-Release number of selected component (if applicable):
4.8.14 for OLM Operators metadata


How reproducible:

Re-run Greenwave CVP tests


Steps to Reproduce:
1.
2.
3.

Actual results:
Fail CVP tests for ose-clusterresourceoverride-operator-metadata-container-v4.8.0.202110011559.p0.git.a79c117.assembly.stream-1	

Expected results:
CVP tests for ose-clusterresourceoverride-operator-metadata-container-v4.8.0.202110011559.p0.git.a79c117.assembly.stream-1 should PASS

Additional info:

Comment 4 Ryan Cole 2021-10-11 18:57:26 UTC
This was the result of an error in CVP's reporting of warnings to Greenwave, which caused the warnings to be interpreted as errors.  The bug was fixed earlier today, and I re-triggered the pipeline.  The tests have since passed (with warnings) as expected:

http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/ose-clusterresourceoverride-operator-metadata-container-v4.8.0.202110011559.p0.git.a79c117.assembly.stream-1/d9d0ea98-68d6-4e87-a4b9-bfb8bf6afd79/cvp-test-report.html.

I belive this closes out the bug, please let me know if you have any other questions.