Increasing the logging verbosity from the OpenShift Installer

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform 4.x

Issue

  • How do I get more logging verbosity out of the OpenShift Installer?

Resolution

  • You can increase the logging level of the installer by passing the --log-level debug flag to the installer when you run the installer.

Root Cause

Diagnostic Steps

  • Default log level is set to info

  • To change the default log level run the installation command as follows:

    • Change the log level while creating the cluster
    openshift-install create cluster --log-level [ error / debug / warn / info ]
    
    • Change the log level while destroying the cluster
    openshift-install destroy cluster --log-level [ error / debug / warn / info ]
    
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.