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

Must gather pkill fails when the running command is not the default

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • Proposed
    • Bug Fix
    • Fixed oc adm must-gather volume checker not killing gather when a custom command is specified
    • None
    • None
    • None
    • None

      Description of problem:

          when the volume max percentage exceeded we expect must gather to stop run, but the pkill fails and must gather continues to run
      This happens when we run not the default 1 word cmd /usr/bin/gather
      This is the run cmd:
      oc adm must-gather -- "sed -i 's#--rotated-pod-logs# #g' /usr/bin/*gather* && /usr/bin/gather"

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

          

      How reproducible:

          every time when not enough disk space and with this cmd

      Steps to Reproduce:

          1.run oc adm must-gather -- "sed -i 's#--rotated-pod-logs# #g' /usr/bin/*gather* && /usr/bin/gather"  

      Actual results:

          [must-gather-dksw2] POD 2025-07-30T08:56:09.318218227Z volume usage percentage 65
      [must-gather-dksw2] POD 2025-07-30T08:56:09.318248495Z Disk usage exceeds the volume percentage of 5 for mounted directory. Exiting...
      [must-gather-dksw2] POD 2025-07-30T08:56:09.321511812Z pkill: only one pattern can be provided
      [must-gather-zj2cr] POD 2025-07-30T08:56:09.307828344Z pkill: only one pattern can be provided
      

      Expected results:

          pkill succeeds and must gather running stops

      Additional info:

          

              rh-ee-okupka Ondřej Kupka
              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: