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

Directory deletion errors are being ignored when deconfiguring Windows instances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.12.z
    • 4.13.0
    • Windows Containers
    • None
    • No
    • 0
    • WINC - Sprint 232, WINC - Sprint 233
    • 2
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-5887. The following is the description of the original issue:

      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:

      
      

            rh-ee-mankulka Mansi Kulkarni
            openshift-crt-jira-prow OpenShift Prow Bot
            Aharon Rasouli Aharon Rasouli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: