{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/28063","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/28063/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/28063/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/28063/events","html_url":"https://github.com/kubernetes/kubernetes/issues/28063","id":162255817,"number":28063,"title":"Running `kubectl rollout history deployment` causing `panic: runtime error`","user":{"login":"osterman","id":52489,"avatar_url":"https://avatars.githubusercontent.com/u/52489?v=3","gravatar_id":"","url":"https://api.github.com/users/osterman","html_url":"https://github.com/osterman","followers_url":"https://api.github.com/users/osterman/followers","following_url":"https://api.github.com/users/osterman/following{/other_user}","gists_url":"https://api.github.com/users/osterman/gists{/gist_id}","starred_url":"https://api.github.com/users/osterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osterman/subscriptions","organizations_url":"https://api.github.com/users/osterman/orgs","repos_url":"https://api.github.com/users/osterman/repos","events_url":"https://api.github.com/users/osterman/events{/privacy}","received_events_url":"https://api.github.com/users/osterman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-25T01:14:19Z","updated_at":"2016-06-25T10:23:40Z","closed_at":null,"body":"## what\r\n\r\nWe have a k8s cluster that has been up for 9 days. We have CircleCI deploying this server as part of our CI/CD pipeline. Today, we're having trouble with a deployment. When I check the history, I get the following stacktrace.\r\n\r\n## command\r\n`kubectl rollout history deployment agent-desktop`\r\n\r\n## output\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0xb8 pc=0xe1b16a]\r\n\r\ngoroutine 1 [running]:\r\nk8s.io/kubernetes/pkg/util/deployment.Revision(0x0, 0xc208323aa0, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/deployment/deployment.go:328 +0x4a\r\nk8s.io/kubernetes/pkg/kubectl.(*DeploymentHistoryViewer).History(0xc208150cf0, 0xc2081060f0, 0x5, 0x7fffca5b4c88, 0xd, 0x0, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/history.go:80 +0x7ea\r\nk8s.io/kubernetes/pkg/kubectl/cmd/rollout.RunHistory(0xc208152960, 0xc20819da00, 0x7fe249c1e030, 0xc208042008, 0xc20819b220, 0x2, 0x2, 0xc20819a2c0, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/rollout/rollout_history.go:98 +0x8a8\r\nk8s.io/kubernetes/pkg/kubectl/cmd/rollout.func·002(0xc20819da00, 0xc20819b220, 0x2, 0x2)\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubectl/cmd/rollout/rollout_history.go:55 +0x6f\r\ngithub.com/spf13/cobra.(*Command).execute(0xc20819da00, 0xc20819b0a0, 0x2, 0x2, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:572 +0x82f\r\ngithub.com/spf13/cobra.(*Command).ExecuteC(0xc208077600, 0xc20819da00, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:662 +0x4db\r\ngithub.com/spf13/cobra.(*Command).Execute(0xc208077600, 0x0, 0x0)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/spf13/cobra/command.go:618 +0x3a\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 +0x101\r\nmain.main()\r\n\t/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubectl/kubectl.go:28 +0x2f\r\n\r\ngoroutine 5 [chan receive]:\r\ngithub.com/golang/glog.(*loggingT).flushDaemon(0x1e6b160)\r\n\t/go/src/k8s.io/kubernetes/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x78\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 +0x2a7\r\n\r\ngoroutine 13 [syscall]:\r\nos/signal.loop()\r\n\t/usr/src/go/src/os/signal/signal_unix.go:21 +0x1f\r\ncreated by os/signal.init·1\r\n\t/usr/src/go/src/os/signal/signal_unix.go:27 +0x35\r\n\r\ngoroutine 19 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081de1b0, 0x72, 0x0, 0x0)\r\n\t/usr/src/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081de1b0, 0x0, 0x0)\r\n\t/usr/src/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081de150, 0xc208140000, 0x1000, 0x1000, 0x0, 0x7fe249c1e378, 0xc2081f0300)\r\n\t/usr/src/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc208042028, 0xc208140000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n\t/usr/src/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7fe249c24c48, 0xc208042028, 0xc20808f4f8, 0xc208140000, 0x1000, 0x1000, 0x1309f20, 0x0, 0x0)\r\n\t/usr/src/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081dc920, 0xc208140000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n\t<autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2081911a0)\r\n\t/usr/src/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2081911a0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t/usr/src/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20808f4a0)\r\n\t/usr/src/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/src/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 20 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20808f4a0)\r\n\t/usr/src/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/src/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 18 [sleep]:\r\nnet.func·019()\r\n\t/usr/src/go/src/net/dnsclient_unix.go:240 +0x5a\r\ncreated by net.loadConfig\r\n\t/usr/src/go/src/net/dnsclient_unix.go:269 +0x20c\r\n```\r\n\r\n## version\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.4\", GitCommit:\"3eed1e3be6848b877ff80a93da3785d9034d0a4f\", GitTreeState:\"clean\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.4\", GitCommit:\"3eed1e3be6848b877ff80a93da3785d9034d0a4f\", GitTreeState:\"clean\"}\r\n```\r\n\r\nOn CoreOS 899.17.0\r\n\r\n## remediation\r\nUnfortunately, we can't leave the service in the current state so I had to take corrective action. \r\n```\r\nkubectl get deployment agent-desktop -o yaml --export > /tmp/agent-desktop.yml\r\nkubectl delete deployment agent-desktop\r\nkubectl apply -f /tmp/agent-desktop.yml\r\n```\r\nAfter running these commands, it's healthy again.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/228529772","html_url":"https://github.com/kubernetes/kubernetes/issues/28063#issuecomment-228529772","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/28063","id":228529772,"user":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T10:23:39Z","updated_at":"2016-06-25T10:23:39Z","body":"@bgrant0607 @janetkuo @pwittrock do you still cherry-pick for 1.2?"}}
{"actor":{"display_login":"kargakis"}}