-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Misleading kubectl error: the server doesn't have a resource type "po" #57198
Comments
/sig release |
I can reproduce this when cached discovery expired when API server unreachable. |
And this happend because we changed to fallback to hardcoded types when there's err. https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/util/factory_object_mapping.go#L93-L94 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This is still an issue in kubectl v1.11.2 |
/reopen |
@Ghazgkull: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Still an issue (v1.12.1) and very confusing! |
/reopen |
@luksa: Reopening this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hmm, @michidk are you sure? I've just tried it with v1.12.1 and can't reproduce it anymore. Can you provide steps to reproduce the error?
|
Not sure if this is a different issue, but I tried it with |
ok, then I'll re-close this. |
I can reproduce this and yes the error is/was quite misleading (especially when the error was not happening on my machine but in a CI environment): kubectl v1.13.5:
kubectl v1.16.6-beta.0:
|
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
When using kubectl 1.9.0-beta.1+, if you run
kubectl get po
, while the API server is unreachable, you get the following misleading error:the server doesn't have a resource type "po"
.What you expected to happen:
In versions 1.9.0-alpha.3 and lower, you get the proper error:
The connection to the server 127.0.0.1:1 was refused
.How to reproduce it (as minimally and precisely as possible):
If you try the same command with kubectl 1.9.0-alpha.3, you get the correct error message:
You also get the same error message in kubectl 1.9.0-beta.1, if you use the full resource name instead of the abbreviation:
Anything else we need to know?:
This is a regression between 1.9.0-alpha.3 and 1.9.0-beta.1
/sig cli
The text was updated successfully, but these errors were encountered: