Bug 1366522
| Summary: | The value of "debug_level" isn't applied to /etc/sysconfig/atomic-openshift-master | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gan Huang <ghuang> |
| Component: | Installer | Assignee: | Andrew Butcher <abutcher> |
| Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.3.0 | CC: | aos-bugs, bleanhar, ghuang, jdetiber, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | 3.3.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: |
Previously, the debug_level inventory variable was only being applied to node configuration. Debug level is now correctly set within master and node configuration but can also be set individually via openshift_master_debug_level or openshift_node_debug_level.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-27 16:12:47 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
2016-08-12 08:30:33 UTC
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 |