Bug 2021119 - odf-operator fails CVP bundle data linting test
Summary: odf-operator fails CVP bundle data linting test
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-operator
Version: 4.9
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ODF 4.9.0
Assignee: Nitin Goyal
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-08 12:14 UTC by Boris Ranto
Modified: 2023-08-09 17:00 UTC (History)
6 users (show)

Fixed In Version: 4.9.0-230.ci
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-07 17:46:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-operator pull 142 0 None open bundle: fix validation error via removing SA manifest 2021-11-08 15:26:41 UTC
Github red-hat-storage odf-operator pull 143 0 None open Bug 2021119:[release-4.9] bundle: fix validation error via removing SA manifest 2021-11-08 15:40:16 UTC

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/


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