{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23242","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23242/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23242/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23242/events","html_url":"https://github.com/kubernetes/kubernetes/issues/23242","id":142047219,"number":23242,"title":"kubectl panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"olafurnielsen","id":54323,"avatar_url":"https://avatars.githubusercontent.com/u/54323?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurnielsen","html_url":"https://github.com/olafurnielsen","followers_url":"https://api.github.com/users/olafurnielsen/followers","following_url":"https://api.github.com/users/olafurnielsen/following{/other_user}","gists_url":"https://api.github.com/users/olafurnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurnielsen/subscriptions","organizations_url":"https://api.github.com/users/olafurnielsen/orgs","repos_url":"https://api.github.com/users/olafurnielsen/repos","events_url":"https://api.github.com/users/olafurnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/olafurnielsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T09:46:07Z","updated_at":"2016-03-19T09:46:07Z","closed_at":null,"body":"Getting a panic error when trying to do a rolling-update. Any ideas?\r\n\r\n```\r\n➜  nodetest git:(master) ✗ kubectl rolling-update nodetest2 --image=814863397952.dkr.ecr.us-east-1.amazonaws.com/nodetest\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x20 pc=0x336457]\r\n\r\ngoroutine 1 [running]:\r\nk8s.io/kubernetes/pkg/runtime.Encode(0x0, 0x0, 0x1d145d8, 0xc82016de00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/runtime/codec.go:45 +0xf7\r\nk8s.io/kubernetes/pkg/api.HashObject(0x1d145d8, 0xc82016de00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/api/helpers.go:156 +0xb2\r\nk8s.io/kubernetes/pkg/kubectl.CreateNewControllerFromCurrentController(0x1d1a540, 0xc8203e8dc0, 0x0, 0x0, 0xc82026d050, 0x7, 0x7fff5fbff87f, 0x9, 0x0, 0x0, ...)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/rolling_updater.go:575 +0x754\r\nk8s.io/kubernetes/pkg/kubectl/cmd.RunRollingUpdate(0xc8201e6820, 0x1d13198, 0xc820074008, 0xc820245e00, 0xc8202645e0, 0x1, 0x2, 0xc82023f3e0, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/rollingupdate.go:253 +0x4234\r\nk8s.io/kubernetes/pkg/kubectl/cmd.NewCmdRollingUpdate.func1(0xc820245e00, 0xc8202645e0, 0x1, 0x2)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/rollingupdate.go:87 +0x7d\r\ngithub.com/spf13/cobra.(*Command).execute(0xc820245e00, 0xc8202644a0, 0x2, 0x2, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:572 +0x869\r\ngithub.com/spf13/cobra.(*Command).ExecuteC(0xc82013ba00, 0xc820245e00, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:662 +0x54e\r\ngithub.com/spf13/cobra.(*Command).Execute(0xc82013ba00, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:618 +0x2d\r\nk8s.io/kubernetes/cmd/kubectl/app.Run(0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/app/kubectl.go:28 +0xf0\r\nmain.main()\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:28 +0x28\r\n\r\ngoroutine 18 [chan receive]:\r\ngithub.com/golang/glog.(*loggingT).flushDaemon(0x18f7840)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67\r\ncreated by github.com/golang/glog.init.1\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297\r\n\r\ngoroutine 27 [syscall]:\r\nos/signal.loop()\r\n\t/usr/local/go/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/usr/local/go/src/os/signal/signal_unix.go:28 +0x37\r\n\r\ngoroutine 32 [IO wait]:\r\nnet.runtime_pollWait(0x1d4fe68, 0x72, 0xc82005c080)\r\n\t/usr/local/go/src/runtime/netpoll.go:157 +0x60\r\nnet.(*pollDesc).Wait(0xc8203320d0, 0x72, 0x0, 0x0)\r\n\t/usr/local/go/src/net/fd_poll_runtime.go:73 +0x3a\r\nnet.(*pollDesc).WaitRead(0xc8203320d0, 0x0, 0x0)\r\n\t/usr/local/go/src/net/fd_poll_runtime.go:78 +0x36\r\nnet.(*netFD).Read(0xc820332070, 0xc820411000, 0x800, 0x800, 0x0, 0x1d0f028, 0xc82005c080)\r\n\t/usr/local/go/src/net/fd_unix.go:232 +0x23a\r\nnet.(*conn).Read(0xc820092010, 0xc820411000, 0x800, 0x800, 0x0, 0x0, 0x0)\r\n\t/usr/local/go/src/net/net.go:172 +0xe4\r\ncrypto/tls.(*block).readFromUntil(0xc820330360, 0x1d50278, 0xc820092010, 0x5, 0x0, 0x0)\r\n\t/usr/local/go/src/crypto/tls/conn.go:455 +0xcc\r\ncrypto/tls.(*Conn).readRecord(0xc82033e000, 0x13fb817, 0x0, 0x0)\r\n\t/usr/local/go/src/crypto/tls/conn.go:540 +0x2d1\r\ncrypto/tls.(*Conn).Read(0xc82033e000, 0xc8203f6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/go/src/crypto/tls/conn.go:901 +0x167\r\nnet/http.noteEOFReader.Read(0x1d1b420, 0xc82033e000, 0xc8202d0b58, 0xc8203f6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/local/go/src/net/http/transport.go:1370 +0x67\r\nnet/http.(*noteEOFReader).Read(0xc8202f8ae0, 0xc8203f6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t<autogenerated>:126 +0xd0\r\nbufio.(*Reader).fill(0xc8202f1620)\r\n\t/usr/local/go/src/bufio/bufio.go:97 +0x1e9\r\nbufio.(*Reader).Peek(0xc8202f1620, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/local/go/src/bufio/bufio.go:132 +0xcc\r\nnet/http.(*persistConn).readLoop(0xc8202d0b00)\r\n\t/usr/local/go/src/net/http/transport.go:876 +0xf7\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/local/go/src/net/http/transport.go:685 +0xc78\r\n\r\ngoroutine 49 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc8202d0b00)\r\n\t/usr/local/go/src/net/http/transport.go:1009 +0x40c\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/local/go/src/net/http/transport.go:686 +0xc9d\r\n```\r\n\r\nThe resource controller was originally created with the following yml:\r\n```\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: nodetest2\r\n  labels:\r\n    name: nodetest-new\r\nspec:\r\n  replicas: 1\r\n  selector:\r\n    name: nodetest-new\r\n  template:\r\n    metadata:\r\n      labels:\r\n        name: nodetest-new\r\n    spec:\r\n      imagePullSecrets:\r\n        - name: nectar-registry-pull-secret\r\n      containers:\r\n        - name: nodetest-container\r\n          image: 814863397952.dkr.ecr.us-east-1.amazonaws.com/nodetest:latest\r\n          ports:\r\n            - containerPort: 8080\r\n              name: nodetest\r\n```"}}