Bug 1948553

Summary: When setting etcd spec.LogLevel is not propagated to etcd operand
Product: OpenShift Container Platform Reporter: Lili Cosic <lcosic>
Component: EtcdAssignee: Lili Cosic <lcosic>
Status: CLOSED ERRATA QA Contact: ge liu <geliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Spec.LogLevel did not actually set log-level flag on etcd operand. Consequence: Users could not change log level of the etcd operand. Fix: Result: Now when setting the logLevel field in the Spec users can set verbosity of logs for the etcd operand. Log Levels map to etcd as follows: - Debug, Trace and TraceAll map to etcd debug level - Default or Normal log levels map to info log level in etcd
Story Points: ---
Clone Of:
: 1954073 (view as bug list) Environment:
Last Closed: 2021-07-27 22:59:25 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:
Bug Depends On:    
Bug Blocks: 1954073    

Description Lili Cosic 2021-04-12 12:35:41 UTC
Description of problem:

When you set logLevel in the etcd spec.LogLevel the operator does not make use of this value and doesn't set the log level for the etcd operand.


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


How reproducible:
Every time.


Steps to Reproduce:
1. Set logLevel field in the etcd CustomResource
2. log level for etcd operand does not change

Actual results:


Expected results:


Additional info:

Comment 2 ge liu 2021-04-21 08:15:43 UTC
Verified with 4.8.0-0.nightly-2021-04-20-195442
Check the etcd cr, the default loglevel is 'Normal', and spec.loglevel in etcd pod is 'info'

# oc edit etcd cluster

Change loglevel to 'Debug', waiting for a couple of minutes, the etcd pods will restart, and verified the spec.loglevel change to 'Debug'

Comment 5 errata-xmlrpc 2021-07-27 22:59:25 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.8.2 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-2021:2438