Bug 2021119

Summary: odf-operator fails CVP bundle data linting test
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Boris Ranto <branto>
Component: odf-operatorAssignee: Nitin Goyal <nigoyal>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.9CC: ebenahar, jrivera, muagarwa, ocs-bugs, odf-bz-bot, rperiyas
Target Milestone: ---   
Target Release: ODF 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.9.0-230.ci Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-07 17:46:31 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 Boris Ranto 2021-11-08 12:14:32 UTC
Description of problem (please be detailed as possible and provide log
snippests):
The odf-operator bundle fails the CVP package linting tests:

http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/odf-operator-bundle-container-4.9.0-0.6/9aa1612c-3b20-4773-a8fd-28b698ccfc31/operator-metadata-linting-bundle-image-output.txt

Version of all relevant components (if applicable):
All

Can this issue reproducible?
Always


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Check the bundle linting tests
2.
3.


Actual results:
The bundle linting test fails because of an incorrect service account

Expected results:
The test passes


Additional info:
Copying the full output of the linting test:

===== Test: operator-metadata-linting-bundle-image =====

 

Operator SDK version:
-------------------------

operator-sdk version: "v1.13.1", commit: "1659ab58a073999463e6dcdf18bdc359a315e091", kubernetes version: "1.21", go version: "go1.16.8", GOOS: "linux", GOARCH: "amd64"

Validation output:
-------

time="2021-11-05T10:56:47Z" level=debug msg="Debug logging is set"
time="2021-11-05T10:56:47Z" level=debug msg="Found manifests directory" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Found metadata directory" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Getting mediaType info from manifests directory" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Found annotations file" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Found dependencies file" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating bundle contents" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating monitoring.coreos.com/v1, Kind=ServiceMonitor \"odf-operator-controller-manager-metrics-monitor\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating rbac.authorization.k8s.io/v1, Kind=Role \"odf-operator-controller-manager-metrics-service\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating rbac.authorization.k8s.io/v1, Kind=RoleBinding \"odf-operator-controller-manager-metrics-service\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating /v1, Kind=Service \"odf-operator-controller-manager-metrics-service\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating /v1, Kind=ServiceAccount \"odf-operator-controller-manager\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating /v1, Kind=ConfigMap \"odf-operator-manager-config\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=debug msg="Validating rbac.authorization.k8s.io/v1, Kind=ClusterRole \"odf-operator-metrics-reader\"" bundle-dir=../../../../../test-operator container-tool=docker
time="2021-11-05T10:56:47Z" level=error msg="Error: Value odf-operator-controller-manager: invalid service account found in bundle. sa name cannot match service account defined for deployment spec in CSV"
time="2021-11-05T10:56:47Z" level=warning msg="Warning: Value : (odf-operator.v4.9.0) csv.Spec.minKubeVersion is not informed. It is recommended you provide this information. Otherwise, it would mean that your operator project can be distributed and installed in any cluster version available, which is not necessarily the case for all projects."
time="2021-11-05T10:56:47Z" level=warning msg="Warning: Value odf-operator.v4.9.0: checking APIs against Kubernetes version : 1.22"


return code:
------------

1



-------------------
Execution Reference:

-> /cvp/cvp-redhat-operator-bundle-image-validation-test/odf-operator-bundle-container-4.9.0-0.6/9aa1612c-3b20-4773-a8fd-28b698ccfc31/