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

TALM Fails to Report Low Disk Space during Image Precaching

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Undefined
    • None
    • 4.13
    • TALM Operator
    • None
    • Moderate
    • No
    • CNF RAN Sprint 232
    • 1
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      TALM image precaching executes a disk space check on the managed cluster before precaching begins. When a low disk space condition:
      
      disk space free is less than ((15% capacity in KB) - 15GB) 
      
      TALM should report report the error "not enough space for precaching" 
      
      In TALM build 4.13.0-42 this error is not reported in the precaching pod logs.

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

      4.13.0-42

      How reproducible:

      Always

      Steps to Reproduce:

      1.Simulate a low disk space condition on the managed cluster. Use fallocate to create a file of a size calculated to force free disk space to be (85% - 15GB) of total capacity. 
      2. Create and enable a policy and CGU that will trigger image precaching 
      3. Monitor the precache pod logs on the managed cluster. 
      

      Actual results:

      CGU status on hub:
      
        - lastTransitionTime: "2023-02-27T20:26:45Z"
          message: Precaching failed for all clusters
          reason: Failed
          status: "False"
          type: PrecachingSuceeded
      ...
        precaching:
          spec:
      ...
          status:
            ocp-edge87: UnrecoverableError
      
      
      
      Log from precache pod on managed cluster
      
      $ oc logs  -n openshift-talo-pre-cache pre-cache-rllmj --follow
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  3262    0  3262    0     0  74136      0 --:--:-- --:--:-- --:--:-- 74136
      highThresholdPercent: 85 diskSize:937156932 used:781047416

      Expected results:

      TALM should report report the error "not enough space for precaching" 

      Additional info:

       

      Attachments

        Activity

          People

            saskari@redhat.com Saeid Askari
            josclark@redhat.com Joshua Clark
            Joshua Clark Joshua Clark
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: