Red Hat Bugzilla – Bug 1266981
PV recycling fails when there are dot files/directories
Last modified: 2015-11-23 09:25:13 EST
Description of problem:
The recycler fails when there are dot directories and files.
registry.access.redhat.com/openshift3/ose-deployer v22.214.171.124 73fecc7ae1fc
1. Create PV with Recycle reclaim policy, bound it with a PVC
2. Create a pod with the PVC
3. When the pod is available, create files and directories with and without dot under the mount dir, eg:
touch file1 file2 file3 .file1 .file2 .file3
mkdir -p a/b/c/d/e/f
mkdir -p .a/.b/.c/d/.e/f
4. Delete pod and pvc
After pod and pvc was deleted, PV firstly became 'Released', the files and directories were being deleted during this time. When all the files were directories are deleted, the PV became 'Available' again. Verified the PV and be bound again with when it's Available.
This fix is available in OpenShift Enterprise 3.1.