Dashboard: Exec is broken

Created on 26 Sep 2017  路  12Comments  路  Source: kubernetes/dashboard

Environment
Dashboard version:1.7.0
Kubernetes version:1.7.0
Operating system:CentOS7.3
Node.js version:
Go version:

Today,I update dashboard from v1.6.3 to 1.7.0, web page notice "unable to upgrade connection: you must specify at least 1 of stdin, stdout, stderr" when i exec container ,but 1.6.3 is working

kinbug

Most helpful comment

@floreks i think i could fix this issue for now and make the basic functionality of web-term work. After that we could re-consider how we rewrite exec functionality in a better way. I could probably take a look into it

All 12 comments

qq 20170926111652

It is a known issue. API has changed on k8s side and we have to rewrite exec functionality.

Also noticed this. Posted details in https://github.com/kubernetes/dashboard/issues/2029#issuecomment-331450969.

But it's works with same k8s cluster and dashboard 1.6.3. Don't sure about API change on k8s.

1.6.3 uses k8s 1.6 dependencies. 1.7 uses k8s 1.7.

@floreks has anyone already taken over this issue?

No. Version of Dashboard always reflects dependency on similar major version of kubernetes.
Dashboard 1.6 - K8S 1.6
Dashboard 1.7 - K8S 1.7

We did not started work on this yet. We need to rewrite exec functionality anyway as it is not stable right now.

@floreks i think i could fix this issue for now and make the basic functionality of web-term work. After that we could re-consider how we rewrite exec functionality in a better way. I could probably take a look into it

@Kaijun Go ahead :)

@floreks @maciaszczykm fixed, have a try

I just dive into the code and found the problem, after upgrading to client-go v4, we have to pass scheme.ParameterCodec instead of api.ParameterCodec while calling req.VersionedParams

check: https://github.com/kubernetes/kubernetes/search?utf8=%E2%9C%93&q=VersionedParams%28&type=

In addition, i also double-checked other codes which calls req.VersionedParams, and only found one other occurrence, it already passed scheme.ParameterCodec correctly

image

Done in #2422. Thanks, @Kaijun.

Was this page helpful?
0 / 5 - 0 ratings