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

Directory deletion errors are being ignored when deconfiguring Windows instances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.13.0
    • 4.13.0
    • Windows Containers
    • None
    • None
    • 3
    • WINC - Sprint 230, WINC - Sprint 231
    • 2
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      When a program has an active handle on a file, directory deletion will fail, but WMCO will ignore the error.
      

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

      
      

      How reproducible:

      Unknown, this is being seen in CI but not from manual testing.
      

      Steps to Reproduce:

      1. On a BYOH node a running program is using a file within c:\k
      2. Remove the instance from the cluster to trigger deconfiguration
      

      Actual results:

      An error is printed in the logs, but WMCO ignores it:
      2023-01-12T16:25:27Z	DEBUG	wc 10.0.228.20	run	{"cmd": "cmd /c if exist C:\\k\\ rmdir C:\\k\\ /s /q", "out": "C:\\k\\hybrid-overlay-node.exe - Access is denied.\r\n"}
      

      Expected results:

      WMCO handles the error and retries the deletion.
      

      Additional info:

      
      

        1. 35707_GCP_413_2.log
          71 kB
          Jose Luis Franco Arza
        2. must-gather.local.9009481393530352770.tar.xz
          9.00 MB
          Jose Luis Franco Arza
        3. wmco.log
          52 kB
          Jose Luis Franco Arza

              rh-ee-ssoto Sebastian Soto
              rh-ee-ssoto Sebastian Soto
              Aharon Rasouli Aharon Rasouli
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: