Files
kubernetes/pkg/volume
Kubernetes Submit Queue 11ecad2629 Merge pull request #59914 from iliastsi/feature-csi-stale-path
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

csi: Remove stale volume path

**What this PR does / why we need it**:

The CSI mounter creates the following paths during SetUp():

   * .../pods/\<podID\>/volumes/kubernetes.io~csi/\<specVolId\>/mount/
   * .../pods/\<podID\>/volumes/kubernetes.io~csi/\<specVolId\>/volume_data.json

During TearDown(), it does not remove the `.../kubernetes.io~csi/<specVolId>/`
directory, leaving behind orphan volumes: method cleanupOrphanedPodDirs()
complains with 'Orphaned pod found, but volume paths are still present
on disk'.

Fix that by removing the above directory in removeMountDir().

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-02-16 08:04:32 -08:00
..
2018-02-15 13:30:36 +02:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2018-02-11 11:04:14 +08:00
2017-12-23 13:12:11 -08:00
2018-02-06 18:38:52 -08:00
2017-12-23 13:12:11 -08:00
2018-02-11 11:04:14 +08:00
2017-12-23 13:12:11 -08:00
2018-02-15 16:33:17 +01:00
2017-12-23 13:12:11 -08:00
2017-12-23 13:12:11 -08:00
2018-01-26 15:42:57 +08:00
2018-02-11 11:04:14 +08:00