Remote cli kubectl command doesn’t work in windows 10 environment

Bug #1849131 reported by Anujeyan Manokeran
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Stefan Dinescu

Bug Description

Brief Description
-----------------.
Remote cli kubectl command doesn’t work windows 10 environment. Following failure seen during the execution . System commands are working on windows 10 .
$ kubectl get pods -n kube-system
error: error loading config file "/root/.kube/config": read /root/.kube/config: is a directory

amanoker@YOW-AMANOKER-D2 ~/wrs-remote-clients-2.0.6
$ kubectl
the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

Severity
--------
Major

Steps to Reproduce
------------------
1. Install cygwin64 on window 10.
2. Install docker desktop
3. As per remote cli read me instructions setup Controller .
4. Setup remote cli client side in window cygwin64.
5. Verify system commands working ok
6. Verify kubctl commands . As per description failure.
System Configuration
--------------------
Storage system yow-cgcs-wildcat-92_98
With windows 10 as clienet.

Expected Behavior
------------------
Kubectl command execution with output

Actual Behavior
----------------
As per description failure

Reproducibility
---------------
100% always.

Branch/Pull Time/Commit
-----------------------
BUILD_DATE= "2019-10-07_20-00-00"

Last Pass
---------
N/A
Timestamp/Logs
--------------

Test Activity
-------------
Regression test

Revision history for this message
Anujeyan Manokeran (anujeyan) wrote :

This was open by mistake .I will close this .

Changed in starlingx:
status: New → Invalid
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Stefan Dinescu (stefandinescu)
Changed in starlingx:
status: Invalid → In Progress
Frank Miller (sensfan22)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.3.0 stx.config
summary: - Remote cli kubectl command doesn’t work windows 10 environment
+ Remote cli kubectl command doesn’t work in windows 10 environment
Revision history for this message
Stefan Dinescu (stefandinescu) wrote :

It seems docker on Windows 10 doesn't handle mounting volumes the same way that docker does on Linux and MacOS. Investigating a way to better handle this scenario.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to clients (master)

Fix proposed to branch: master
Review: https://review.opendev.org/690927

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to clients (master)

Reviewed: https://review.opendev.org/690927
Committed: https://git.openstack.org/cgit/starlingx/clients/commit/?id=9a068d8d6f70864089336251f2e66105044ec073
Submitter: Zuul
Branch: master

commit 9a068d8d6f70864089336251f2e66105044ec073
Author: Stefan Dinescu <email address hidden>
Date: Thu Oct 24 14:33:05 2019 +0300

    Fix broken windows 10 remote cli

    Kubectl and helm commands didn't properly work under
    Windows 10 by using remote CLI.

    Changes included:
    - add winpty dependency for windows 10 to properly use
      interactive prompt commands
    - change Unix paths to full Windows paths to be passed
      to docker only if scripts are run under cygwin
    - add information to README file about the new dependency

    Change-Id: I4509941e051552133a77dd5c2a7922b2cade3858
    Closes-bug: 1849131
    Signed-off-by: Stefan Dinescu <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Yang Liu (yliu12)
tags: added: stx.retestneeded
Revision history for this message
Anujeyan Manokeran (anujeyan) wrote :

Tested in windows 10 on build 2019-10-27_20-00-00.

tags: removed: stx.retestneeded
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.