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

MustGather flag --volume-percentage does not enforce disk usage limits if EmptyDir sizeLimit is unset, risking filling up the node disk

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Previously oc adm must-gather volume checker script assumes that the directory was empty. So if initially directory is not empty, it calculates the node disk size incorrectly. This patch always calculates the size of directory correctly.
    • None
    • None
    • None
    • None

      Description of problem:

      The --volume-percentage flag in must-gather is intended to prevent excessive disk usage by stopping the collection process if the volume usage exceeds a configured percentage. However, when the EmptyDir volume backing must-gather does not have a sizeLimit set, the volume effectively uses the entire node disk capacity.In this scenario, the --volume-percentage check does not correctly limit or prevent must-gather from filling the node disk, because it calculates usage against the node’s full disk space rather than a defined quota or limit. This can lead to the disk being filled up by the collection process, potentially impacting system stability and other workloads.

              aguclu@redhat.com Arda Guclu
              rh-ee-hoberger Hodaya Berger
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: