Bug 2030568 - Operator installation fails to parse operatorframework.io/initialization-resource annotation
Summary: Operator installation fails to parse operatorframework.io/initialization-reso...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: Christoph Stäbler
QA Contact: Aleksandra Malykhin
URL:
Whiteboard:
: 2030567 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-09 07:37 UTC by Aleksandra Malykhin
Modified: 2022-03-10 16:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:32:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI console error (60.21 KB, image/png)
2021-12-09 07:37 UTC, Aleksandra Malykhin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift kubernetes-nmstate pull 238 0 None Merged Upstream: <carry>: Fix JSON error in initialization resource 2021-12-09 07:40:21 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:33:08 UTC

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


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