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

Must-gather logging image fails because oc client now runs gather command via setsid, which is missing in minimal images

XMLWordPrintable

    • None
    • False
    • Hide

      None

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

      Description of problem:

      Running the must-gather logging plugin fails inside the pod with:
      
      /bin/bash: line 17: setsid: command not found
      
      The failure happens because a recent change in the oc client (PR #2087) now wraps the gather command using:
      
      setsid -w bash <<EOF
      
      
      Minimal must-gather plugin images (including logging) do not include setsid, because util-linux is not installed.
      This causes must-gather for logging to fail immediately when the gather script starts.
      

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

          

      How reproducible:

          100% reproducible when using:
      
      
      oc adm must-gather --image=registry.redhat.io/openshift-logging/cluster-logging-rhel9-operator@sha256:5f96aaba248207054bdf1dd8dd8e43a2550a210c62367535fb31fa9907c5ee7a   
      
      with an image that lacks setsid

      Steps to Reproduce:

          1.oc adm must-gather --image=registry.redhat.io/openshift-logging/cluster-logging-rhel9-operator:latest
           2.
          3.
          

      Actual results:

          /bin/bash: line <n>: setsid: command not found
      

      Expected results:

          

      Additional info:

          

              aguclu@redhat.com Arda Guclu
              rh-ee-sprizend Shoshana Prizend
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: