Bug 2081081 - PreflightValidation "odd number of arguments passed as key-value pairs for logging" error
Summary: PreflightValidation "odd number of arguments passed as key-value pairs for lo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.11.0
Assignee: yevgeny shnaidman
QA Contact: Constantin Vultur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-02 17:23 UTC by Constantin Vultur
Modified: 2022-08-10 11:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:09:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 184 0 None open Bug 2081081: fix the logging arguments error 2022-05-03 07:18:06 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:10:20 UTC

Description Constantin Vultur 2022-05-02 17:23:19 UTC
Description of problem:
The 'odd number of arguments passed as key-value pairs for logging' can be seen in  operator logs after applying a PreflightValidation CR

Version-Release number of selected component (if applicable):
master/release-4.11

How reproducible:


Steps to Reproduce:
1. deploy SRO from bundle using release-4.11 branch
2. deploy sample specialresource for testing
3. deploy preflightvalidation CR

Actual results:

Operator logs displays a dpanic level entry:

{"level":"dpanic","ts":1651511976.9947278,"logger":"controller.preflightvalidation","msg":"odd number of arguments passed as key-value pairs for logging","reconciler group":"sro.openshift.io","reconciler kind":"PreflightValidation","name":"preflight","namespace":"","ignored key":true,"stacktrace":"github.com/openshift/special-resource-operator/controllers.(*PreflightValidationReconciler).Reconcile\n\t/workspace/controllers/preflightvalidation_controller.go:86\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}



Expected results:


Additional info:

Comment 2 Constantin Vultur 2022-05-18 15:36:20 UTC
Verified with a new bundle build from release-4.11 branch and error is not seen anymore

Marking as Verified

Comment 4 errata-xmlrpc 2022-08-10 11:09:59 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069


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