Red Hat Bugzilla – Bug 1419472
oadm diagnostics didn't report errors about MasterConfigCheck and NodeConfigCheck when DiagnosticName is not specified
Last modified: 2017-07-24 10:11 EDT
Description of problem: When DiagnosticName = MasterConfigCheck|NodeConfigCheck: Diagnose openshift system without DiagnosticName specified, errors are not reported: # oadm diagnostics --master-config=/etc/nonfile ... [Note] Running diagnostic: MasterConfigCheck Description: Check the master config file [Note] Running diagnostic: NodeConfigCheck Description: Check the node config file ... Diagnose openshift system with DiagnosticName specified, errors are reported: # oadm diagnostics MasterConfigCheck --master-config=/etc/nonfile [Note] Running diagnostic: MasterConfigCheck Description: Check the master config file ERROR: [DH0002 from diagnostic MasterConfigCheck@openshift/origin/pkg/diagnostics/host/util.go:27] Could not read master config file '/etc/nonfile': (*os.PathError) open /etc/nonfile: no such file or directory Version-Release number of selected component (if applicable): openshift v3.5.0.16+a26133a kubernetes v1.5.2+43a9be4 etcd 3.1.0 How reproducible: Always Steps to Reproduce: 1.Refer to "Description of problem" 2. 3. Actual results: No error report when DiagnosticName is not specified for "MasterConfigCheck" and "NodeConfigCheck". Expected results: Should report error when DiagnosticName is specified for "MasterConfigCheck" and "NodeConfigCheck". Additional info: Issue did not repro for DiagnosticNames != MasterConfigCheck|NodeConfigCheck
Related PR: https://github.com/openshift/origin/pull/12832
Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/72c6f268f782d28a43caa379fcfb15e0e3679c64 bug 1419472 print master config error if it exists
Tested with the latest puddle openshift v3.5.0.18+9a5d1aa, code is not merged into OCP. Will verify after it's in.
This has been merged into ocp and is in OCP v3.5.0.19 or newer.
Verified on the latest puddle, it's fixed. # openshift version openshift v3.5.0.19+199197c kubernetes v1.5.2+43a9be4 etcd 3.1.0
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-2017:0884