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

Debug log messages missing from output and Info messages malformed

    XMLWordPrintable

Details

    • Moderate
    • Agent Sprint 228
    • 1
    • False
    • Hide

      None

      Show
      None

    Description

      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.)

       

       

       

      Attachments

        Issue Links

          Activity

            People

              bfournie@redhat.com Robert Fournier
              bfournie@redhat.com Robert Fournier
              zhenying niu zhenying niu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: