Bug 1500164

Summary: "debug_level" isn't working
Product: OpenShift Container Platform Reporter: Gan Huang <ghuang>
Component: InstallerAssignee: Michael Gugino <mgugino>
Status: CLOSED ERRATA QA Contact: Gan Huang <ghuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 3.7.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: 2017-11-28 22:15:54 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 Gan Huang 2017-10-10 06:06:08 UTC
Description of problem:
The log level of all system configurations is set to 2 no matter what debug_level is in inventory host.

Version-Release number of the following components:
openshift-ansible-3.7.0-0.146.0.git.0.3038a60.el7.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1.Trigger installation with "debug_level=5" set in inventory host


Actual results:
Check loglevel after the installation:

On master:
# grep -nir "loglevel" /etc/sysconfig/*
/etc/sysconfig/atomic-openshift-master:1:OPTIONS="--loglevel=0"
/etc/sysconfig/atomic-openshift-master-api:1:OPTIONS=--loglevel=2 --listen=https://0.0.0.0:8443 --master=https://OpenShift-126.lab.sjc.Redhat.com:8443
/etc/sysconfig/atomic-openshift-master-controllers:1:OPTIONS=--loglevel=2 --listen=https://0.0.0.0:8444
/etc/sysconfig/atomic-openshift-node:1:OPTIONS=--loglevel=2

On node:
# grep -nir "loglevel" /etc/sysconfig/*
/etc/sysconfig/atomic-openshift-node:1:OPTIONS=--loglevel=2

Expected results:
The loglevel in system configurations should be consistent with "debug_level" set in inventory host

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 1 Michael Gugino 2017-10-10 17:25:20 UTC
PR Created: https://github.com/openshift/openshift-ansible/pull/5716

Comment 3 Gan Huang 2017-10-17 09:20:12 UTC
Verified with openshift-ansible-3.7.0-0.153.0.git.0.d5028b3.el7.noarch.rpm

Comment 6 errata-xmlrpc 2017-11-28 22:15:54 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, 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-2017:3188