Bug 1266981

Summary: PV recycling fails when there are dot files/directories
Product: OpenShift Container Platform Reporter: Scott Dodson <sdodson>
Component: StorageAssignee: Mark Turansky <mturansk>
Status: CLOSED CURRENTRELEASE QA Contact: Liang Xia <lxia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: aos-bugs, jhou, jialiu, jokerman, nicholas_schuetz, pep, pruan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Scott Dodson 2015-09-28 17:51:49 UTC
Description of problem:
The recycler fails when there are dot directories and files. 

See https://github.com/openshift/origin/pull/3657

Comment 6 Jianwei Hou 2015-09-29 11:32:25 UTC
Verified on:

openshift v3.0.2.0-17-g701346b
kubernetes v1.1.0-alpha.0-1605-g44c91b1

registry.access.redhat.com/openshift3/ose-deployer v3.0.2.0 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.

Comment 7 Brenton Leanhardt 2015-11-23 14:25:13 UTC
This fix is available in OpenShift Enterprise 3.1.