Bug 1376182

Summary: [RFE]Manually start PV recycler
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: StorageAssignee: Bradley Childs <bchilds>
Status: CLOSED NOTABUG QA Contact: Liang Xia <lxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.2.1CC: aos-bugs, erjones, jsafrane
Target Milestone: ---Keywords: NeedsTestCase
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 15:57:43 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-09-14 19:21:41 UTC
- What is the nature and description of the request? 
As an admin I require the ability to free up my PV's if they are supposed to be auto-recycled and were not for some reason.

- Why does the customer need this? (List the business requirements here) 
If PV's are supposed to be recycled but are stuck in bound state for some reason there needs to be a way to clear it using the pods.

- How would the customer like to achieve this? (List the functional requirements here) 
Kick start a recycler pod to clear a single PV

- For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.
Bind a PV and kill the default recycler pod before it succeeds (leaving it still bound but with no PVC) and then manually start that recycler pod.

- Is there already an existing RFE upstream or in Red Hat Bugzilla?
Unclear

- Who is the customer behind the request?  
Support

  
- Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
Soon

- Is the sales team involved in this request and do they have any additional input?  
No
  
- Would the customer be able to assist in testing this functionality if implemented?  
Yes

Comment 1 Jan Safranek 2016-11-23 13:44:36 UTC
In OpenShift 3.2, we re-tried recycling only few times and then we marked the PV as Failed. In OpenShift 3.3 and 3.4, we retry recycling forever, until an admin does something (e.g. manually deletes the PV).

OpenShift trigger for recycling in 3.3 and above is:
 - PV.Spec.ClaimRef points to a PVC, i.e. full PV.Spec.ClaimRef must be filled, incl. its UID
 - AND the referenced PVC does not exist

PV.Status is not considered at all in 3.3! It can be Bound, Released, Failed or even Available. All that matters is PV.Spec.ClaimRef.

In 3.2 the behavior was a bit different and I'd rather not touch that code, we've rewritten it from scratch in 3.3.


Is it a valid solution for this bug?

Comment 2 Jan Safranek 2017-02-01 15:57:43 UTC
I'm closing this bug, original support ticket is closed.