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

must-gather logs does not persist the error messages

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21
    • must-gather
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      While running oc adm must-gather if there are any errors reported, they show up on the oc cli process on the terminal but are not persisted to the gathered directory. The collected "must-gather.logs" do not have the stderr messages.    

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

      Any OpenShift version

      How reproducible:

      During collection of must-gather through oc adm must-gather,
      
      a ClusterRoleBinding is created (https://github.com/openshift/oc/blob/main/pkg/cli/admin/mustgather/mustgather.go#L1078-L1107) in between collection process while oc is active, remove the binding forcefully to induce some RBAC errors.
         

      Steps to Reproduce:

          1. 
          2.
          3.
          

      Actual results:

      The errors are reported on the terminal but not on the collected must-gather.logs    

      Expected results:

      The must-gather.logs file should keep the collection error messages too.    

      Additional info:

      When oc adm must-gather reports some issues there is no way for us to read the errors back from the must-gather.logs, this is an issue because that means we never what went wrong. 

              tgeer@redhat.com Trilok Geer
              swghosh@redhat.com Swarup Ghosh
              Keenon Lee Keenon Lee
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: