Bug 1266981 - PV recycling fails when there are dot files/directories
Summary: PV recycling fails when there are dot files/directories
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Mark Turansky
QA Contact: Liang Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-28 17:51 UTC by Scott Dodson
Modified: 2019-08-15 05:32 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:25:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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

Steps:
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

Result:
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.


Note You need to log in before you can comment on or make changes to this bug.