Bug 1809291

Summary: Access to the path 'C:\\k\\kube-proxy.exe' is denied
Product: OpenShift Container Platform Reporter: Sebastian Soto <ssoto>
Component: Windows ContainersAssignee: Mansi Kulkarni <mankulka>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: aos-bugs, gmarkley, rgudimet
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:17:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sebastian Soto 2020-03-02 19:14:44 UTC
Description of problem:
WSU failure:

                	            	TASK [Copy kube-proxy to C:\k] *************************************************
                	            	An exception occurred during task execution. To see the full traceback, use -vvv. The error was:    at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveFileSystemItem(FileSystemInfo fileSystemInfo, Boolean force)
                	            	fatal: [3.15.41.51]: FAILED! => {"changed": false, "dest": "C:\\k\\kube-proxy.exe", "msg": "Unhandled exception while executing module: Access to the path 'C:\\k\\kube-proxy.exe' is denied.", "src": "C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible.qzxpswok.auh\\kube-proxy.exe"}



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


How reproducible:
Not sure

Steps to Reproduce:
1. Run the WSU e2e test suite multiple times against the same VMs

Actual results:
WSU fails on kubeproxy copy on the VM that downloaded WMCB

Expected results:
WSU succeeds

Additional info:
This is happening because kube-proxy is in use. This is fixed by moving the `Ensure kube-proxy Windows Service is not running` to execute before the `Copy kube-proxy to C:\k` task.

Comment 3 gaoshang 2020-03-23 11:30:43 UTC
This bug has been verified and passed on 4.5.0-0.nightly-2020-03-22-224936, thanks.

Steps to Reproduce:
1. Run the WSU e2e test suite multiple times against the same VMs

Comment 5 errata-xmlrpc 2020-07-13 17:17:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2409