Bug 2030567

Summary: Operator installation fails to parse operatorframework.io/initialization-resource annotation
Product: OpenShift Container Platform Reporter: Christoph Stäbler <cstabler>
Component: NetworkingAssignee: Christoph Stäbler <cstabler>
Networking sub component: kubernetes-nmstate-operator QA Contact: Aleksandra Malykhin <amalykhi>
Status: CLOSED DUPLICATE Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.0   
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-12-09 08:13:15 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 Christoph Stäbler 2021-12-09 07:35:25 UTC
Description of problem:
When installing the latest version of the operator for 4.10 (202112020013), the installation logs the following message to the browser console:

Could not parse annotation operatorframework.io/initialization-resource as JSON:  SyntaxError: Unexpected token } in JSON at position 99

In addition an empty message box (titled error) pops up and doesn't disappear until the page is fully reloaded.
Anyhow the operator gets installed, but without adding the initialization resource.


Version-Release number of selected component (if applicable):
OCP 4.10 nightly
Operator version: http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/ose-kubernetes-nmstate-operator-bundle-container-v4.10.0.202112020013.p0.g0cb3be2.assembly.stream-1/a0e26e63-2ad6-4b76-9b9f-2b01b2cf6a3a/index_images.yml



How reproducible:
always


Steps to Reproduce:
1. start a 4.10 cluster
2. install the operator following https://hackmd.io/0vbbJdZ7RXem69vCWI61ug?view (with the the iib of 141080 in step 7)
3. Try to install the operator via the marketplace


Actual results:
* error message on browsers console
* nmstate init resource doesn't get installed
* error popup

Expected results:
* operator installs without errors and creates the init resource

Comment 1 Christoph Stäbler 2021-12-09 07:38:20 UTC
PR https://github.com/openshift/kubernetes-nmstate/pull/238 got merged. Waiting for ART build to verify it.

Comment 2 Christoph Stäbler 2021-12-09 08:13:15 UTC

*** This bug has been marked as a duplicate of bug 2030568 ***