Description of problem: Speficying "debug_level=5" in inventory hosts, debug_level was still set to default value "2" in /etc/sysconfig/atomic-openshift-master after installation. Version-Release number of selected component (if applicable): openshift-ansible-3.3.9-1.git.0.ed8fd1b.el7.noarch.rpm ansible-2.2.0-0.3.prerelease.el7.noarch How reproducible: always Steps to Reproduce: 1.specify "debug_level=5" under [OSEv3:vars] in inventory hosts 2.Run BYO playbook 3. Actual results: [root@ip-172-18-15-140 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-master OPTIONS=--loglevel=2 [root@ip-172-18-15-140 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-node OPTIONS=--loglevel=5 Expected results: loglevel should be set to "5" in /etc/sysconfig/atomic-openshift-master. Additional info:
On master, debug_level for master role in /etc/ansible/facts.d/openshift.fact is 2. # cat /etc/ansible/facts.d/openshift.fact {"node": {"labels": {"role": "node"}, "dns_ip": "172.18.14.111", "debug_level": "5" ...... "master": {"identity_providers": [{"name": "htpasswd_auth", "challenge": "true", "login": "true", "kind": "HTPasswdPasswordIdentityProvider", "filename": "/etc/origin/htpasswd"}], "named_certificates": [], "manage_htpasswd": true, "session_secrets_file": "/etc/origin/master/session-secrets.yaml", "debug_level": "2", "master_count": "1" ...... common": {"install_examples": true, "is_containerized": false, "debug_level": "5"
Hi Huang Gan, I think the variable name is openshift_debug_level. Could you try that?
Hi Brenton, I used "openshift_debug_level=5" in inventory hosts, unfortunately "loglevel" was set to 2 in master and node configurations. [root@ip-172-18-8-73 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-node OPTIONS=--loglevel=2 [root@ip-172-18-8-73 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-master OPTIONS=--loglevel=2
This is probably still a bug then. I suspect it has to do with the way we're trying to have the default for the node level derive from openshift.common.debug_level.
Commit pushed to master at https://github.com/openshift/openshift-ansible https://github.com/openshift/openshift-ansible/commit/f539303306947ff8b1d5ddfe206a2b21c36de3e8 Merge pull request #2546 from abutcher/master-debug-level Bug 1366522 - The value of "debug_level" isn't applied to /etc/sysconfig/atomic-openshift-master
Re-test this bug with openshift-ansible-3.3.30-1.git.0.b260e04.el7.noarch, only a part of this issue is fixed. When setting debug_level=5 in inventory host file, it only takes effect in node config file, but not in master config file. [root@openshift-105 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-master OPTIONS=--loglevel=2 [root@openshift-105 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-node OPTIONS=--loglevel=5
Also tried "openshift_debug_level" var, the same behavior like comment 7.
Verified this bug with openshift-ansible-3.3.34-1.git.0.5b998bb.el7.noarch, and PASS. [root@openshift-151 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-master OPTIONS=--loglevel=5 [root@openshift-151 ~]# grep "loglevel" /etc/sysconfig/atomic-openshift-node OPTIONS=--loglevel=5
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/RHBA-2016:2122