Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1840251

Summary: Running wmcb.exe copies the files specified in the command to C:/k on windows
Product: OpenShift Container Platform Reporter: Mansi Kulkarni <mankulka>
Component: Windows ContainersAssignee: Mansi Kulkarni <mankulka>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, aravindh, gmarkley, pmahajan, rgudimet
Target Milestone: ---   
Target Release: 4.6.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-10-27 16:01:17 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 Mansi Kulkarni 2020-05-26 16:06:22 UTC
Description of problem:

Running wmcb.exe copies the files specified in the wmcb command to C:/k folder on windows VM. Example running following command is copying cni.conf and cni folder to C:/K on windows VM: configureCNICmd := C:\\Temp\\wmcb.exe configure-cni --cni-dir=C:\\Temp\\cni\\ --cni-config=C:\\Temp\\cni\\cni.conf

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


How reproducible:
Always

Steps to Reproduce:
1. Run the opeartor
2. RDP into windows VM
3. check the contents of C:/K folder on windows VM

Actual results:
C:/K folder contains cni folder and cni.conf file

Expected results:
C:/K folder should not contain cni folder and cni.conf file or any other additional files associated with running wmcb command.

Additional info:

Comment 1 Mansi Kulkarni 2020-05-26 16:39:18 UTC
This bug is being tracked by https://issues.redhat.com/browse/WINC-411

Comment 2 Aravindh Puthiyaparambil 2020-06-08 16:27:17 UTC
We should not be using C:\Temp for anything that we want preserved.

Comment 5 gaoshang 2020-08-26 03:05:57 UTC
This bug has been verified and passed on OCP 4.6.0-0.nightly-2020-08-24-110601, thanks.

Steps:
1. Run WMCO operator and bootstrap Windows node
2. SSH into Windows node
3. Check copied files location as expected

PS C:\k\cni> ls 
    Directory: C:\k\cni
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        8/25/2020   1:56 PM                config
-a----        8/25/2020   1:56 PM        7533056 flannel.exe
-a----        8/25/2020   1:56 PM        3330048 host-local.exe
-a----        8/25/2020   1:56 PM        7989248 win-bridge.exe
-a----        8/25/2020   1:56 PM        7886848 win-overlay.exe

PS C:\k\cni> ls .\config\
    Directory: C:\k\cni\config
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        8/25/2020   1:56 PM            394 cni.conf

PS C:\k> ls
    Directory: C:\k
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        8/25/2020   1:53 PM                cni
d-----        8/25/2020   1:53 PM                etc
d-----        8/25/2020   1:53 PM                usr
-a----        8/25/2020   1:53 PM          10865 bootstrap-kubeconfig
-a----        8/25/2020   1:53 PM       47306752 hybrid-overlay-node.exe
-a----        8/25/2020   1:53 PM       44950016 kube-proxy.exe
-a----        8/25/2020   1:53 PM          10089 kubeconfig
-a----        8/25/2020   1:53 PM           5875 kubelet-ca.crt
-a----        8/25/2020   1:53 PM            739 kubelet.conf
-a----        8/25/2020   1:53 PM      111417856 kubelet.exe
-a----        8/25/2020   1:53 PM       14966272 wmcb.exe

PS C:\> ls .\Temp\
    Directory: C:\Temp
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        8/25/2020   1:53 PM           5741 hns.psm1
-a----        8/25/2020   1:53 PM           1173 wget-ignore-cert.ps1

Comment 7 errata-xmlrpc 2020-10-27 16:01:17 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 (OpenShift Container Platform 4.6 GA Images), 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:4196