Bug 1452073 - oc commands such as oc get/edit etc can not work in Windows
Summary: oc commands such as oc get/edit etc can not work in Windows
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-18 09:44 UTC by Xingxing Xia
Modified: 2021-03-03 14:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 05:24:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Xingxing Xia 2017-05-18 09:44:24 UTC
Description of problem:
oc commands such as oc get/edit etc can not work in Windows 10 (not sure if Win 8 reproduces; not tested on it yet)

oc 3.5 cmds VS openshift 3.5 can work (i.e. not stuck). But checked oc 3.5 cmds with --loglevel 6, it also shows the repeated messages "failed to write cache to C:\Users\star\.kube\... not supported by windows"

Version-Release number of selected component (if applicable):
oc/openshift v3.6.77
kubernetes v1.6.1+5115d708d7
features: Basic-Auth

How reproducible:
Always

Steps to Reproduce:
1. Prepare project and resources via Linux oc. Download Windows oc.
Below do the operations in Windows

2. oc login to master, and try:
oc version
oc whoami

3. Try others:
oc get pod
oc edit dc database
oc delete svc database
oc status

4. Check oc cmds with --loglevel 6

Actual results:
2. These cmds can work

3. These cmds are stuck till Ctrl + C

4. `oc get pod --loglevel 6` shows:
I0518 16:51:45.741762    4196 loader.go:354] Config loaded from file C:\Users\star/.kube/config
I0518 16:51:47.264013    4196 round_trippers.go:405] GET https://$master:8443/api 200 OK in 1503 milliseconds
I0518 16:51:47.557462    4196 round_trippers.go:405] GET https://$master:8443/apis 200 OK in 293 milliseconds
I0518 16:51:47.561501    4196 cached_discovery.go:134] failed to write cache to C:\Users\star\.kube\$master_cluster\servergroups.json due to chmod C:\Users\star\.kube\$master_cluster\servergroups.json.689571775: not supported by windows
I0518 16:51:47.853778    4196 round_trippers.go:405] GET https://$master:8443/apis/authentication.k8s.io/v1 200 OK in 292 milliseconds
I0518 16:51:47.855788    4196 cached_discovery.go:87] failed to write cache to C:\Users\star\.kube\$master_cluster\authentication.k8s.io\v1\serverresources.json due to chmod C:\Users\star\.kube\$master_cluster\authentication.k8s.io\v1\serverresources.json.937666578: not supported by windows
I0518 16:51:48.153001    4196 round_trippers.go:405] GET https://$master:8443/apis/authentication.k8s.io/v1beta1 200 OK in 296 milliseconds
I0518 16:51:48.156011    4196 cached_discovery.go:87] failed to write cache to C:\Users\star\.kube\$master_cluster\authentication.k8s.io\v1beta1\serverresources.json due to chmod C:\Users\star\.kube\$master_cluster\authentication.k8s.io\v1beta1\serverresources.json.668620361: not supported by windows
I0518 16:51:48.451321    4196 round_trippers.go:405] GET https://$master:8443/apis/authorization.k8s.io/v1 200 OK in 294 milliseconds
I0518 16:51:48.454333    4196 cached_discovery.go:87] failed to write cache to C:\Users\star\.kube\$master_cluster\authorization.k8s.io\v1\serverresources.json due to chmod C:\Users\star\.kube\$master_cluster\authorization.k8s.io\v1\serverresources.json.293755668: not supported by windows
I0518 16:51:48.763595    4196 round_trippers.go:405] GET https://$master:8443/apis/authorization.k8s.io/v1beta1 200 OK in 309 milliseconds
I0518 16:51:48.766604    4196 cached_discovery.go:87] failed to write cache to C:\Users\star\.kube\$master_cluster\authorization.k8s.io\v1beta1\serverresources.json due to chmod C:\Users\star\.kube\$master_cluster\authorization.k8s.io\v1beta1\serverresources.json.489402723: not supported by windows
I0518 16:51:49.059270    4196 round_trippers.go:405] GET https://$master:8443/apis/autoscaling/v1 200 OK in 292 milliseconds
I0518 16:51:49.062284    4196 cached_discovery.go:87] failed to write cache to C:\Users\star\.kube\$master_cluster\autoscaling\v1\serverresources.json due to chmod C:\Users\star\.kube\$master_cluster\autoscaling\v1\serverresources.json.137875302: not supported by windows
... many such messages ...


Expected results:
3 and 4: these cmds should work in Windows

Additional info:

Comment 1 Fabiano Franz 2017-05-30 04:54:14 UTC
Pull request is https://github.com/openshift/origin/pull/14399

Comment 3 Xingxing Xia 2017-06-05 10:43:27 UTC
Verified in oc/openshift v3.6.94, commands oc get/edit etc can work in Windows, not stuck now.

As in comment 0:
> oc 3.5 cmds VS openshift 3.5 can work (i.e. not stuck). But checked oc 3.5 cmds with --loglevel 6, it also shows the repeated messages "failed to write cache to C:\Users\star\.kube\... not supported by windows"

Seems it is worth to backport 3.5 to remove the repeated messages, WDYT about the backport?
Thank you

Comment 5 errata-xmlrpc 2017-08-10 05:24:06 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/RHEA-2017:1716


Note You need to log in before you can comment on or make changes to this bug.