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

Bug 2099751

Summary: specialresourcemodule stacktrace while looping over build status
Product: OpenShift Container Platform Reporter: Constantin Vultur <cvultur>
Component: Special Resource OperatorAssignee: Pablo Acevedo <pacevedo>
Status: CLOSED ERRATA QA Contact: Constantin Vultur <cvultur>
Severity: high Docs Contact:
Priority: high    
Version: 4.11CC: bthurber
Target Milestone: ---   
Target Release: 4.11.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-08-10 11:18:57 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 Constantin Vultur 2022-06-21 15:54:41 UTC
Description of problem:
While a specialresourcemodule reconciliation is ran, the check for pod status also includes a stacktrace. 

{"level":"error","ts":1655825532.4678752,"logger":"controller.specialresourcemodule","msg":"Reconciler error","reconciler group":"sro.openshift.io","reconciler kind":"SpecialResourceModule","name":"acm-ice","namespace":"","error":"failed to reconcile chart for SepcialResourceModule 'acm-ice': failed to run helm chart 'acm-ice': failed to create resources from yaml for chart acm-ice: failed to create object from YAML: failed to execute after crud for object acm-ice/acm-ice-4-8-2: failed to wait for resource, object acm-ice/acm-ice-4-8-2: waiting too long for resource BuildConfig acm-ice/acm-ice-4-8-2: resource Build/acm-ice/acm-ice-4-8-2-1 not available","stacktrace":"sigs.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"}

As it can be seen a "stacktrace" field is included in the log, which should not be included.

By comparison, the SpecialResource object does not include that

nd":"SpecialResource","name":"simple-kmod","namespace":"","error":"failed to reconcile SpecialResource /simple-kmod: cannot reconcile hardware states: failed to create state templates/0000-buildconfig.yaml: fail
ed to create resources from yaml for chart simple-kmod: failed to create object from YAML: failed to execute after crud for object simple-kmod/simple-kmod-driver-build-99249f257707c0c3: failed to wait for resour
ce, object simple-kmod/simple-kmod-driver-build-99249f257707c0c3: waiting too long for resource BuildConfig simple-kmod/simple-kmod-driver-build-99249f257707c0c3: resource Build/simple-kmod/simple-kmod-driver-bu
ild-99249f257707c0c3-1 not available "}





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

How reproducible:


Steps to Reproduce:
1. deploy a specialresourcemodule
2.
3.

Actual results:
stacktrace included in the log message

Expected results:
given that is expected for a build to take a while, the logs should not include the stacktrace 

Additional info:

Comment 4 Constantin Vultur 2022-06-24 15:53:36 UTC
Verified on bundle build:

{"level":"info","ts":1656085924.0952468,"logger":"controller.specialresourcemodule","msg":"WARNING: RECONCILE REQUEUE: Could not reconcile chart for SpecialResourceModule","reconciler group":"sro.openshift.io","reconciler kind":"SpecialResourceModule","name":"acm-simple-kmod","namespace":"","error":"failed to run helm chart 'acm-simple-kmod': failed to create resources from yaml for chart acm-simple-kmod: failed to create object from YAML: failed to execute after crud for object acm-simple-kmod/acm-simple-kmod-4-18-0-305-34-2-el8-4-x86-64: failed to wait for resource, object acm-simple-kmod/acm-simple-kmod-4-18-0-305-34-2-el8-4-x86-64: waiting too long for resource BuildConfig acm-simple-kmod/acm-simple-kmod-4-18-0-305-34-2-el8-4-x86-64: resource Build/acm-simple-kmod/acm-simple-kmod-4-18-0-305-34-2-el8-4-x86-64-1 not available"}
{"level":"info","ts":1656085924.0953643,"logger":"controller.specialresourcemodule","msg":"Reconciling","reconciler group":"sro.openshift.io","reconciler kind":"SpecialResourceModule","name":"acm-simple-kmod","namespace":""}

The stacktrace is not seen anymore

Comment 6 errata-xmlrpc 2022-08-10 11:18:57 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