Bug 1367500

Summary: Deleting a project, after creating an pod that creates a PVC, leaves PV broken sometimes
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: StorageAssignee: hchen
Status: CLOSED WORKSFORME QA Contact: Jianwei Hou <jhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: aos-bugs, jhou, jokerman, mmccomas
Target Milestone: ---Keywords: Unconfirmed
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: 2016-08-17 13:21:07 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 Eric Jones 2016-08-16 14:28:18 UTC
Description of problem:
If a project is deleted shortly after creating an app/pod that creates a PVC that binds a PV occasionally leaves the PV in an error state.

Steps to Reproduce:
1. Create project
2. create mysql pod from template [0] or any other pod that creates a PVC
3. check claim status 
4. delete project
5. check volume to see state 


[0] oc new-app --template=mysql-persistent -p DATABASE_SERVICE_NAME=ericdb,MYSQL_USER=eric,MYSQL_DATABASE=eric


Actual results:
Sometimes the PV is in an error state and sometimes it is properly released.

Expected results:
Always release the PV.

Comment 1 hchen 2016-08-16 20:22:14 UTC
does it happen in openshift 3.3 with kubernetes 1.3.4?

Comment 2 Jianwei Hou 2016-08-17 03:06:22 UTC
I'm using a cinder volume for my PV with reclaim policy 'Retain'. After the project is deleted, PV is Released. Tried 3 times, didn't run into the unexpected state.

Test env:
openshift v3.3.0.19
kubernetes v1.3.0+507d3a7
etcd 2.3.0+git

Comment 3 hchen 2016-08-17 13:21:07 UTC
Thanks. I close it for now. if it is still a problem, please reopen it.