/cc @kubernetes/sig-api-machinery-bugs @kubernetes/sig-cli-bugs
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.![]()
I verified that this occurs when you use different versions of go on the client vs. server.
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7+", GitVersion:"v1.7.0-alpha.4", GitCommit:"249551461e038df9dae5e1a932334aa66a8dc701", GitTreeState:"clean", BuildDate:"2017-05-18T17:25:27Z", GoVersion:"go1.8.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.0-alpha.0.251+56da71bb348eb9-dirty", GitCommit:"56da71bb348eb9cd6d24b64d601be974b716ad99", GitTreeState:"dirty", BuildDate:"2017-06-06T17:38:44Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
client with go1.8.1 works with server with go1.8.3
it seems that client with go1.8.3 doesn't work with server with go1.8.1
@timothysc Is this a blocking issue for 1.7?
I think it's a bad experience, but I don't know if it's blocker worthy. I'd definitely cherry-pick any fixes.
I'm seeing this same issue with a build of hyperkube.. so in this case the server and client are the same binary, so they can't be using different versions:
vagrant-kube:/home/vagrant # kubectl version
2017-07-13 19:10:19.779033 I | proto: duplicate proto type registered: google.protobuf.Any
2017-07-13 19:10:19.779103 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-07-13 19:10:19.779119 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-07-13T14:57:09Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-07-13T14:57:09Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
I don't see how the server go version could matter.
Same issue happens at kubernetes/kubernetes#48924.
$ kubectl version
2017-09-05 08:18:47.436503 I | proto: duplicate proto type registered: google.protobuf.Any
2017-09-05 08:18:47.436595 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-09-05 08:18:47.436627 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5+coreos.0", GitCommit:"070d238cd2ec359928548e486a9171b498573181", GitTreeState:"clean", BuildDate:"2017-08-31T21:28:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5+coreos.0", GitCommit:"070d238cd2ec359928548e486a9171b498573181", GitTreeState:"clean", BuildDate:"2017-08-31T21:28:39Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}```
I originally saw it on the delta in behavior from two different generated versions, which could be a false positive.
same output with gcr.io/google_containers/hyperkube-amd64:v1.7.5 image.
Was wondering why one of my cron pods who's using this image for kubectl kept outputting
2017-09-13 12:30:04.122873 I | proto: duplicate proto type registered: google.protobuf.Any
2017-09-13 12:30:04.123017 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-09-13 12:30:04.123056 I | proto: duplicate proto type registered: google.protobuf.Timestamp
and landed here
I am getting the same for every kubectl command. I am using coreos/hyperkube:v1.7.4_coreos.0 and same result with 1.7.2_coreos_0 as well and there is go version mismatch at all
kubectl version 2017-09-19 14:55:33.488846 I | proto: duplicate proto type registered: google.protobuf.Any 2017-09-19 14:55:33.489644 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-09-19 14:55:33.489672 I | proto: duplicate proto type registered: google.protobuf.Timestamp Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4+coreos.0", GitCommit:"4bb697e04f7c356347aee6ffaa91640b428976d5", GitTreeState:"clean", BuildDate:"2017-08-22T08:43:47Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.4+coreos.0", GitCommit:"4bb697e04f7c356347aee6ffaa91640b428976d5", GitTreeState:"clean", BuildDate:"2017-08-22T08:43:47Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
related to kubernetes/kubernetes#52132
same for each kubectl command in v 1.7.6
Everything is normal in v 1.5.0 with same config
[root@localhost ~]# kubectl version 2017-10-26 20:32:21.787720 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:21.787779 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:21.787792 I | proto: duplicate proto type registered: google.protobuf.Timestamp Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-18T12:25:36Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-18T12:25:36Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} [root@localhost ~]# kubectl get nodes 2017-10-26 20:32:24.149428 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:24.149490 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:24.149503 I | proto: duplicate proto type registered: google.protobuf.Timestamp NAME STATUS AGE VERSION kubernetes-node1 Ready 2m v1.7.6 kubernetes-node2 Ready 2m v1.7.6
[root@localhost ~]# kubectl get nodes 2017-10-26 20:32:24.149428 I | proto: duplicate proto type registered: google.protobuf.Any 2017-10-26 20:32:24.149490 I | proto: duplicate proto type registered: google.protobuf.Duration 2017-10-26 20:32:24.149503 I | proto: duplicate proto type registered: google.protobuf.Timestamp NAME STATUS AGE VERSION kubernetes-node1 Ready 2m v1.7.6 kubernetes-node2 Ready 2m v1.7.6
In my case go version and kubelet version as same. Still seeing this
root@k8s-master-7D10C75F-0:~# kubectl version
2017-10-26 19:04:57.347948 I | proto: duplicate proto type registered: google.protobuf.Any
2017-10-26 19:04:57.348004 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-10-26 19:04:57.348097 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Same for me
2017-10-31 04:47:51.364542 I | proto: duplicate proto type registered: google.protobuf.Any
2017-10-31 04:47:51.365204 I | proto: duplicate proto type registered: google.protobuf.Duration
2017-10-31 04:47:51.365391 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-10-26T19:44:12Z", GoVersion:"go1.8.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"$Format:%H$", GitTreeState:"not a git tree", BuildDate:"2017-10-26T19:44:12Z", GoVersion:"go1.8.5", Compiler:"gc", Platform:"linux/amd64"}```
It's fixed from Kubernetes 1.8 and onward. Update to get rid of it
A cherry-picked backport to 1.7 is in the pipeline: kubernetes/kubernetes#53950
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
Closed #30.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
kubectl version
2018-10-02 13:36:02.034449 I | proto: duplicate proto type registered: google.protobuf.Any
2018-10-02 13:36:02.034557 I | proto: duplicate proto type registered: google.protobuf.Duration
2018-10-02 13:36:02.034574 I | proto: duplicate proto type registered: google.protobuf.Timestamp
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.3", GitCommit:"2c2fe6e8278a5db2d15a013987b53968c743f2a1", GitTreeState:"clean", BuildDate:"2017-08-10T10:34:42Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
@iahmad-khan update your kubectl, i don't think the fixes will ever be backported to old branches
With 1.10 already out, 1.7 branch is no longer supported. I'm closing this one.
Yeah, that was the latest from Fedora package.
Reinstalled using curl. Fixed.
Thanks
Running it on MacOS and version 1.9 I still get this error:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-09T21:51:54Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
$ kubectl get deployments -n midgard
Error from server: proto: Unknown: illegal tag 0 (wire type 0)