{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/3130","repository_url":"https://api.github.com/repos/coreos/rkt","labels_url":"https://api.github.com/repos/coreos/rkt/issues/3130/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/3130/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/3130/events","html_url":"https://github.com/coreos/rkt/issues/3130","id":173811825,"number":3130,"title":"'rkt rm' panic","user":{"login":"anas-aso","id":16538065,"avatar_url":"https://avatars.githubusercontent.com/u/16538065?v=3","gravatar_id":"","url":"https://api.github.com/users/anas-aso","html_url":"https://github.com/anas-aso","followers_url":"https://api.github.com/users/anas-aso/followers","following_url":"https://api.github.com/users/anas-aso/following{/other_user}","gists_url":"https://api.github.com/users/anas-aso/gists{/gist_id}","starred_url":"https://api.github.com/users/anas-aso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anas-aso/subscriptions","organizations_url":"https://api.github.com/users/anas-aso/orgs","repos_url":"https://api.github.com/users/anas-aso/repos","events_url":"https://api.github.com/users/anas-aso/events{/privacy}","received_events_url":"https://api.github.com/users/anas-aso/received_events","type":"User","site_admin":false},"labels":[{"id":205839586,"url":"https://api.github.com/repos/coreos/rkt/labels/area/usability","name":"area/usability","color":"bfe5bf","default":false},{"id":205839935,"url":"https://api.github.com/repos/coreos/rkt/labels/component/stage0","name":"component/stage0","color":"0052cc","default":false},{"id":146906597,"url":"https://api.github.com/repos/coreos/rkt/labels/help%20wanted","name":"help wanted","color":"006b75","default":true},{"id":146906594,"url":"https://api.github.com/repos/coreos/rkt/labels/kind/bug","name":"kind/bug","color":"FF0000","default":false},{"id":401589551,"url":"https://api.github.com/repos/coreos/rkt/labels/mentoring","name":"mentoring","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/coreos/rkt/milestones/51","html_url":"https://github.com/coreos/rkt/milestones/v1.17.0","labels_url":"https://api.github.com/repos/coreos/rkt/milestones/51/labels","id":1981766,"number":51,"title":"v1.17.0","description":"","creator":{"login":"lucab","id":98086,"avatar_url":"https://avatars.githubusercontent.com/u/98086?v=3","gravatar_id":"","url":"https://api.github.com/users/lucab","html_url":"https://github.com/lucab","followers_url":"https://api.github.com/users/lucab/followers","following_url":"https://api.github.com/users/lucab/following{/other_user}","gists_url":"https://api.github.com/users/lucab/gists{/gist_id}","starred_url":"https://api.github.com/users/lucab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucab/subscriptions","organizations_url":"https://api.github.com/users/lucab/orgs","repos_url":"https://api.github.com/users/lucab/repos","events_url":"https://api.github.com/users/lucab/events{/privacy}","received_events_url":"https://api.github.com/users/lucab/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":26,"state":"closed","created_at":"2016-09-03T19:29:22Z","updated_at":"2016-11-11T17:18:15Z","due_on":"2016-10-13T00:00:00Z","closed_at":"2016-10-13T09:44:50Z"},"comments":4,"created_at":"2016-08-29T16:12:34Z","updated_at":"2016-11-11T17:18:15Z","closed_at":"2016-11-11T17:18:15Z","body":"**Environment**\nrkt Version: 1.7.0\nappc Version: 0.8.4\nGo Version: go1.5.4\nGo OS/Arch: linux/amd64\n## Features: -TPM\n## Linux 4.6.3-coreos x86_64\n\nNAME=CoreOS\nID=coreos\nVERSION=1068.10.0\nVERSION_ID=1068.10.0\nBUILD_ID=2016-08-23-0220\nPRETTY_NAME=\"CoreOS 1068.10.0 (MoreOS)\"\nANSI_COLOR=\"1;32\"\nHOME_URL=\"https://coreos.com/\"\n## BUG_REPORT_URL=\"https://github.com/coreos/bugs/issues\"\n\nsystemd 229\n+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN\n\n**What did you do?**\nI wanted to removed all exited containers\n\n``` bash\n$ rkt list\nUUID      APP       IMAGE NAME              STATE   CREATED   STARTED   NETWORKS\n3a2a4f81        hyperkube       quay.io/coreos/hyperkube:v1.3.4_coreos.0        exited  6 hours ago     6 hours ago\n94b1cdb1        hyperkube       quay.io/coreos/hyperkube:v1.3.4_coreos.0        exited  4 days ago      4 days ago\nb6c77304        hyperkube       quay.io/coreos/hyperkube:v1.3.4_coreos.0        exited  6 hours ago     6 hours ago\nea163361        dnsmasq   coreos.com/dnsmasq:v0.3.0           exited  6 minutes ago   6 minutes ago\n$ rkt rm 3a2a4f81 3a2a4f81 3a2a4f81 ea163361\n```\n\nthen I wrongly copy/pasted an ID 3 times ! \n\n**What did you expect to see?**\nThe normal output when rkt containers are deleted or something like :\n\n``` bash\nrm: failed to remove one or more pods\n```\n\n**What did you see instead?**\n\n``` bash\n\"3a2a4f81-4ea3-4755-b693-296f9c1b6b9a\"\nrm: cannot get pod: pod \"3a2a4f81-4ea3-4755-b693-296f9c1b6b9a\" not found\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal 0xb code=0x1 addr=0x30 pc=0x436889]\n\ngoroutine 1 [running, locked to thread]:\nmain.removePod(0x0, 0xe92460)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/rkt/rm.go:96 +0x49\nmain.runRm(0x14fc500, 0xc820127bc0, 0x4, 0x4, 0x0)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/rkt/rm.go:80 +0x1df\nmain.runWrapper.func1(0x14fc500, 0xc820127bc0, 0x4, 0x4)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/rkt/rkt.go:197 +0x43\nmain.ensureSuperuser.func1(0x14fc500, 0xc820127bc0, 0x4, 0x4)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/rkt/rkt.go:211 +0x160\ngithub.com/spf13/cobra.(*Command).execute(0x14fc500, 0xc820127a40, 0x4, 0x4, 0x0, 0x0)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/Godeps/_workspace/src/github.com/spf13/cobra/command.go:572 +0x869\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x14fa100, 0x14fc500, 0x0, 0x0)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/Godeps/_workspace/src/github.com/spf13/cobra/command.go:662 +0x54e\ngithub.com/spf13/cobra.(*Command).Execute(0x14fa100, 0x0, 0x0)\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/Godeps/_workspace/src/github.com/spf13/cobra/command.go:618 +0x2d\nmain.main()\n        /build/amd64-usr/var/tmp/portage/app-emulation/rkt-1.7.0/work/rkt-1.7.0/build-rkt-1.7.0/gopath/src/github.com/coreos/rkt/rkt/main.go:32 +0x98\n\ngoroutine 17 [syscall, locked to thread]:\nruntime.goexit()\n        /usr/lib/go/src/runtime/asm_amd64.s:1721 +0x1\n\ngoroutine 5 [syscall]:\nos/signal.loop()\n        /usr/lib/go/src/os/signal/signal_unix.go:22 +0x18\ncreated by os/signal.init.1\n        /usr/lib/go/src/os/signal/signal_unix.go:28 +0x37\n```\n"}}
{"actor":{"display_login":"lucab"}}