Bug 1395276

Summary: Recycler is started on mounted NFS shares
Product: OpenShift Container Platform Reporter: Jan Safranek <jsafrane>
Component: StorageAssignee: Jan Safranek <jsafrane>
Status: CLOSED WONTFIX QA Contact: Liang Xia <lxia>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.1CC: aos-bugs, bchilds, eparis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 16:07:56 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1392338, 1415624    

Description Jan Safranek 2016-11-15 15:00:38 UTC
Let a pod uses a NFS PV via a PVC. When the pod and the PVC is deleted at the same time, the pod is being killed slowly, while a recycler pod for the NFS PV is started. At some point, both the recycler and the pod may access the same NFS share and mess with each other.

The recycler should wait until all pods that use the same PV are deleted.

Version-Release number of selected component (if applicable):
openshift v3.3.1.3
kubernetes v1.3.0+52492b4
etcd 2.3.0+git


How reproducible:
~50%

Steps to Reproduce:
1. create 10 separate NFS shares, 10 PVs and 10 claims
2. create 10 pods, each using one claim. The pods randomly create files on the its PVs.
3. delete the pods and claims.

Actual results:
Recycler is started while the pods are still running and creating new directories.

Expected results:
Recyler is started *after* appropriate pod that uses the PV that is being recycled is terminated.

Comment 3 Eric Paris 2017-02-01 16:07:56 UTC
I'm going to close this BZ WONTFIX. It's just impossible on NFS. With the merge of 1395271 it should greatly reduce the race risk and risk of old data sticking around too long.