Bug 1500164 - "debug_level" isn't working
Summary: "debug_level" isn't working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.7.0
Assignee: Michael Gugino
QA Contact: Gan Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-10 06:06 UTC by Gan Huang
Modified: 2017-11-28 22:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-28 22:15:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-29 02:34:54 UTC

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


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