Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes immediately with Kubernetes 1.6 #33

Open
jml opened this issue Apr 24, 2017 · 2 comments
Open

Crashes immediately with Kubernetes 1.6 #33

jml opened this issue Apr 24, 2017 · 2 comments

Comments

@jml
Copy link

jml commented Apr 24, 2017

I ran kubetop against my local minikube installation and got this error: 'schedulerName' are not among the specified fields for v1.PodSpec.

I tried kubectl get po immediately after, to confirm k8s was running in some mostly-working way, and it was indeed working.

I don't know if Kubernetes 1.6 is the main factor, but subject lines are hard.

Full output

$ kubetop
Traceback (most recent call last):
Failure: twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.defer.FirstError'>: FirstError[#1, [Failure instance: Traceback: <type 'exceptions.AttributeError'>: 'schedulerName' are not among the specified fields for v1.PodSpec
/Users/jml/Library/Python/2.7/lib/python/site-packages/twisted/web/_newclient.py:1210:_bodyDataFinished_CONNECTED
/Users/jml/Library/Python/2.7/lib/python/site-packages/twisted/web/client.py:2144:connectionLost
/Users/jml/Library/Python/2.7/lib/python/site-packages/twisted/internet/defer.py:459:callback
/Users/jml/Library/Python/2.7/lib/python/site-packages/twisted/internet/defer.py:567:_startRunCallbacks
--- <exception caught here> ---
/Users/jml/Library/Python/2.7/lib/python/site-packages/twisted/internet/defer.py:653:_runCallbacks
/Users/jml/Library/Python/2.7/lib/python/site-packages/eliot/twisted.py:82:callbackWithContext
/Users/jml/Library/Python/2.7/lib/python/site-packages/eliot/_action.py:389:run
/Users/jml/Library/Python/2.7/lib/python/site-packages/txkube/_network.py:271:<lambda>
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_helpers.py:80:inner_f
/Users/jml/Library/Python/2.7/lib/python/site-packages/txkube/_model.py:379:iobject_from_raw
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:113:create
/Users/jml/Library/Python/2.7/lib/python/site-packages/txkube/_model.py:256:__new__
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:52:__new__
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_checked_types.py:200:_checked_type_create
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:113:create
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:52:__new__
/Users/jml/Library/Python/2.7/lib/python/site-packages/txkube/_swagger.py:255:optional
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:113:create
/Users/jml/Library/Python/2.7/lib/python/site-packages/pyrsistent/_pclass.py:67:__new__
]]
]]

Versions

$ kubetop --version
Twisted version: 17.1.0
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"clean", BuildDate:"2017-03-28T16:36:33Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.0", GitCommit:"fff5156092b56e6bd60fff75aad4dc9de6b6ef37", GitTreeState:"dirty", BuildDate:"2017-04-07T20:46:46Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}
$ minikube version
minikube version: v0.18.0

macOS 10.12.4

@exarkun
Copy link
Contributor

exarkun commented Apr 28, 2017

Thanks!

It looks like this is due to a limitation of txkube - which is that it uses the Kubernetes 1.5 schema.

It's not immediately obvious to me what to do about this. Except to file an issue against txkube: LeastAuthority/txkube#121

@dictvm
Copy link

dictvm commented Nov 5, 2018

This is still an issue:

kubectl version                                           
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-30T21:39:16Z", GoVersion:"go1.11.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.8", GitCommit:"7eab6a49736cc7b01869a15f9f05dc5b49efb9fc", GitTreeState:"clean", BuildDate:"2018-09-14T15:54:20Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants