Bug 2030568

Summary: Operator installation fails to parse operatorframework.io/initialization-resource annotation
Product: OpenShift Container Platform Reporter: Aleksandra Malykhin <amalykhi>
Component: NetworkingAssignee: Christoph Stäbler <cstabler>
Networking sub component: kubernetes-nmstate-operator QA Contact: Aleksandra Malykhin <amalykhi>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, cstabler
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: 2022-03-10 16:32:55 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:
Attachments:
Description Flags
UI console error none

Description Aleksandra Malykhin 2021-12-09 07:37:15 UTC
Created attachment 1845404 [details]
UI console error

Created attachment 1845404 [details]
UI console error

Created attachment 1845404 [details]
UI console error

Description of problem:
The initialization-resource for the operator had a JSON parse error for 4.10 (not 4.9 as the another init resource is used here)
 SyntaxError: Unexpected token } in JSON at position 99

Version:
OCP Cluster version is 4.10.0-0.nightly-2021-12-03-213835

nmstate 4.10.0-202112020013


How reproducible: 100%


Steps to Reproduce:
1. Install the cluster.
2. Install the nmstate operator from the UI console (used the build  4.10.0-202112020013 from the brew) : Choose the Operator in the operator hub -> Install-> Install (all defaults)


Actual results:
operator got installed, but without the init-resource:
$ oc -n openshift-nmstate get po
NAME                                READY   STATUS    RESTARTS   AGE
nmstate-operator-76786d8556-bx5vs   1/1     Running   0          11m

$ oc get nmstate                
No resources found


Also the "empty" Error was popped-up in the UI console and the error message on browsers console ( see the attachment)

Expected results:
init-resource  is created, no errors

Additional info:

Comment 1 Christoph Stäbler 2021-12-09 08:13:15 UTC
*** Bug 2030567 has been marked as a duplicate of this bug. ***

Comment 3 Aleksandra Malykhin 2021-12-15 13:01:53 UTC
Verified on knmstate 4.10.0-202112131952 
OCP Cluster version is 4.10.0-0.nightly-2021-12-14-032611

[kni@provisionhost-0-0 ~]$ oc get nmstate   
NAME      AGE
nmstate   5m33s


The knmstate is installed successfully, no errors occurred

Comment 6 errata-xmlrpc 2022-03-10 16:32:55 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056