Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1844908

Summary: Duplicate key "version" in CRD
Product: OpenShift Container Platform Reporter: Carlos Eduardo Arango Gutierrez <carangog>
Component: Node Feature Discovery OperatorAssignee: Zvonko Kosic <zkosic>
Status: CLOSED ERRATA QA Contact: Walid A. <wabouham>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.6CC: sejug
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1844909 (view as bug list) Environment:
Last Closed: 2020-10-27 16:05: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:
Bug Depends On:    
Bug Blocks: 1844909    

Description Carlos Eduardo Arango Gutierrez 2020-06-07 22:58:14 UTC
version: v1alpha1 is defined twice, in https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml#L13 and https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml#L38 which is failing validation in brew.

Image build failed. Error in plugin orchestrate_build: {"x86_64": {"pin_operator_digest": "while constructing a mapping\n  in \"/tmp/tmpXBzS7p/cluster-nfd-operator-bundle/manifests/nfd.crd.yaml\", line 6, column 3\nfound duplicate key \"version\" with value \"v1alpha1\" (original value: \"v1alpha1\")\n  in \"/tmp/tmpXBzS7p/cluster-nfd-operator-bundle/manifests/nfd.crd.yaml\", line 38, column 3\n\nTo suppress this check see:\n    http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys\n\nDuplicate keys will become and error in future releases, and are errors\nby default when using the new API.\n"}}. OSBS build id: cluster-nfd-operator-bundle-rhaos-45-rhel-7-7ffff-4

Failed brew build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=28602159

Comment 4 Carlos Eduardo Arango Gutierrez 2020-06-23 15:36:00 UTC
https://github.com/openshift/cluster-nfd-operator/pull/84

Comment 5 Walid A. 2020-06-23 15:47:50 UTC
The extra version line was removed in CRD by this PR:  https://github.com/openshift/cluster-nfd-operator/pull/84

The extra line is now removed:
https://github.com/openshift/cluster-nfd-operator/blob/release-4.5/manifests/olm-catalog/4.5/nfd.crd.yaml#L38

Comment 7 errata-xmlrpc 2020-10-27 16:05:31 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 Container Platform 4.6 GA 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/RHBA-2020:4196