Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4660

Debug log messages missing from output and Info messages malformed

XMLWordPrintable

    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-4367. The following is the description of the original issue:

      Description of problem:

      The calls to log.Debugf() from image/baseiso.go and image/oc.go are not being output when the "image create" command is run.

      Version-Release number of selected component (if applicable):

      4.12.0

      How reproducible:

      Every time

      Steps to Reproduce:

      1. Run ../bin/openshift-install agent create image --dir ./cluster-manifests/ --log-level debug
      
      

      Actual results:

      No debug log messages from log.Debugf() calls in pkg/asset/agent/image/oc.go

      Expected results:

      Debug log messages are output

      Additional info:

      Note from Zane: We should probably also use the real global logger instead of [creating a new one](https://github.com/openshift/installer/blob/2698cbb0ec7e96433a958ab6b864786c0c503c0b/pkg/asset/agent/image/baseiso.go#L109) with the default config that ignores the --log-level flag and prints weird `[0001]` stuff in the output for some reason. (The NMStateConfig manifests logging suffers from the same problem.)

       

       

       

              asegurap1@redhat.com Antoni Segura Puimedon
              openshift-crt-jira-prow OpenShift Prow Bot
              zhenying niu zhenying niu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: