Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1415624 - Persistent Volumes on NFS arent all getting recycled [NEEDINFO]
Persistent Volumes on NFS arent all getting recycled
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage (Show other bugs)
3.3.1
Unspecified Unspecified
unspecified Severity urgent
: ---
: 3.4.z
Assigned To: Jan Safranek
Liang Xia
: Performance
Depends On: 1392338 1395271 1395276
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-23 04:41 EST by Jan Safranek
Modified: 2017-02-22 13:11 EST (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1392338
Environment:
Last Closed: 2017-02-22 13:11:17 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
erich: needinfo? (rhowe)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github openshift/ose/pull/565 None None None 2017-02-01 10:25 EST
Red Hat Product Errata RHBA-2017:0289 normal SHIPPED_LIVE OpenShift Container Platform 3.4.1.7, 3.3.1.14, and 3.2.1.26 bug fix update 2017-02-22 18:10:04 EST

  None (edit)
Description Jan Safranek 2017-01-23 04:41:19 EST
Clone for 3.4.x backport

+++ This bug was initially created as a clone of Bug #1392338 +++

Description of problem:
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:
1. Create PV in OS namespace.
2. Create new project 
3. Create new MYSQL persistent instances 
4. Delete project.

Steps to Reproduce:
1. Create some NFS persistent volumes on NFS server and in OS (using Recycle). (at least 8)
2. Create new project, add new MYSQL persistent instances (8 in my case)
3. The pods with MYSQL will be deployed and get assigned to a persistent volume using a pvc.
4. Once all pods are up and ready, delete the project, either using web interface or oc delete.
5. Watch PV status => oc get pv -w
6. Some PV get status "AVAILABLE" before the recycler complete the data scrubbing + sometimes the recycler pod didnt start and flag the volume as AVAILABLE while data are still present on the NFS volume.


Actual results:
Some volumes get correctly scrubbed.
Some volumes are not at all scrubbed and their status is changed from Bound to Recycle to Available.

The oc get po -w in openshift-infra namespace list strange pod creation when failing to recycle :
recycler-for-volume1 0/1 Completed
recycler-for-volume1 0/1 Terminating
recycler-for-volume1 0/1 Terminating

in oc get pv -w:
volume1 10Gi RWO,RWX Released projecta/dbmysql 
volume1 10Gi RWO,RWX Released 
volume1 10Gi RWO,RWX Available

=> NFS share still has folder and data.

Expected results:
A volume cannot be in status Available before the recycler successfully delete all data on the NFS volume.

Additional info:
There is no permission issue related here as some volume the data scrubbing is correctly done, based on my observation the issues are related to the recycler pod creation and the PV status update. I feel like the recycler pod creation is not always started correctly like "Pending" -> "Container Creating" -> "Running" -> "Completed" -> "Terminating" 

For some reason sometimes the creation is no done and we have only Completed + terminating in the logs or simply no recycler creation.

--- Additional comment from Jan Safranek on 2016-11-28 07:37:39 EST ---

Origin pull request: https://github.com/openshift/origin/pull/12041
Comment 1 Jan Safranek 2017-01-23 06:14:54 EST
OSE pull request: https://github.com/openshift/ose/pull/565
Comment 2 Jan Safranek 2017-02-06 04:53:45 EST
Merged
Comment 3 Troy Dawson 2017-02-06 14:27:34 EST
This has been merged into ocp and is in OCP v3.5.0.17 or newer.
Comment 8 Troy Dawson 2017-02-07 18:03:18 EST
Sorry about that.  The pull request has already merged and this needs to go onto the next 3.4 release.  Fixing things up.
Comment 10 Troy Dawson 2017-02-10 17:57:05 EST
This has been merged into ocp and is in OCP v3.4.1.7 or newer.
Comment 12 Liang Xia 2017-02-13 00:10:05 EST
Did not see any file left after PV recycled back to available.

# openshift version
openshift v3.4.1.7
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

Steps,
Create an NFS server and export 100 folder.
Create 100 recycling PVs.
In a loop, create project, create pvc, create pod, create file in the mounted path within the pod, delete project.

The files are created and removed during the testing.

After several hours running, no file left in the exported nfs server path.
Comment 13 Jan Safranek 2017-02-13 05:00:10 EST
> Please fill out and follow https://mojo.redhat.com/docs/DOC-1072778 if you need
> to request a back port for a customer.

That's GSS job, @vwalek
Comment 22 errata-xmlrpc 2017-02-22 13:11:17 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0289

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