{"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/24717","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/24717/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/24717/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/24717/events","html_url":"https://github.com/kubernetes/kubernetes/issues/24717","id":150674425,"number":24717,"title":"cinder volume can't be unmounted when pod is deleted","user":{"login":"chengyli","id":14160732,"avatar_url":"https://avatars.githubusercontent.com/u/14160732?v=3","gravatar_id":"","url":"https://api.github.com/users/chengyli","html_url":"https://github.com/chengyli","followers_url":"https://api.github.com/users/chengyli/followers","following_url":"https://api.github.com/users/chengyli/following{/other_user}","gists_url":"https://api.github.com/users/chengyli/gists{/gist_id}","starred_url":"https://api.github.com/users/chengyli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chengyli/subscriptions","organizations_url":"https://api.github.com/users/chengyli/orgs","repos_url":"https://api.github.com/users/chengyli/repos","events_url":"https://api.github.com/users/chengyli/events{/privacy}","received_events_url":"https://api.github.com/users/chengyli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubelet","name":"component/kubelet","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/node","name":"team/node","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-24T15:45:32Z","updated_at":"2016-05-06T20:53:30Z","closed_at":"2016-05-06T20:53:30Z","body":"We noticed that if kubelet's root-dir is a symlink, when pod with a cinder volume is deleted, cinder volume is still mounted even though pod's containers have been removed. The below errors are seen in kubelet log.\r\n\r\n```\r\nApr 23 17:11:34 kubernetes-minion-1-3169 kubelet[31412]: W0423 17:11:34.263560   31412 mount.go:99] could not determine device for path: \"/mnt/kubelet/pods/473b273e-0976-11e6-851a-74dbd1a0bde4/volumes/kubernetes.io~cinder/pv-openshift-registry\"\r\nApr 23 17:11:34 kubernetes-minion-1-3169 kubelet[31412]: I0423 17:11:34.263570   31412 cinder.go:354] Directory /mnt/kubelet/pods/473b273e-0976-11e6-851a-74dbd1a0bde4/volumes/kubernetes.io~cinder/pv-openshift-registry is not mounted\r\nApr 23 17:11:34 kubernetes-minion-1-3169 kubelet[31412]: E0423 17:11:34.263578   31412 kubelet.go:1990] Could not tear down volume \"473b273e-0976-11e6-851a-74dbd1a0bde4/pv-openshift-registry\": directory /mnt/kubelet/pods/473b273e-0976-11e6-851a-74dbd1a0bde4/volumes/kubernetes.io~cinder/pv-openshift-registry is not mounted\r\nApr 23 17:11:34 kubernetes-minion-1-3169 kubelet[31412]: I0423 17:11:34.263688   31412 kubelet.go:1901] Orphaned pod \"473b273e-0976-11e6-851a-74dbd1a0bde4\" found, but volumes are not cleaned up; err: <nil>, volumes: [0xc2082bede0]\r\n```\r\n\r\n"}}