Bug 1426259

Summary: [GSS] [RFE] Customer need the ability to set the persistentVolumeReclaimPolicy per storage class
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Otakar Masek <omasek>
Component: kubernetesAssignee: Humble Chirammal <hchiramm>
Status: CLOSED ERRATA QA Contact: Prasanth <pprakash>
Severity: medium Docs Contact:
Priority: medium    
Version: rhgs-3.1CC: acomabon, akhakhar, annair, bkunal, fcami, hchiramm, jarrpa, kramdoss, madam, pdwyer, pprakash, rcyriac, rreddy, rtalur, sjr, suprasad, swatt
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: CNS 3.10   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 12:27:13 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: 1543778, 1568860    

Description Otakar Masek 2017-02-23 14:40:07 UTC
Description of problem:

Customer need  the ability to set the persistentVolumeReclaimPolicy per storage class. By default, Gluster dynamic provisionner uses delete, which could be dangerous for production environment, where dual seat belts can be often useful.

Comment 4 Steve Watt 2017-02-23 16:57:08 UTC
I think this might be easiest to resolve if expose a Reclaim Policy parameter in heketi that we can surface up via a storage class. We could have one storage class that has the policy set to delete and another storage class to retain. That way, developers can provision volumes using the policy they like the best.

Comment 5 Michael Adam 2017-02-24 08:00:52 UTC
I don't fully understand this yet: The reclaim policy is purely an kube-level concept, so I don't see the relationship to heketi yet.

And for *dynamically provisioned* PVs, the policy is always Delete, see https://kubernetes.io/docs/user-guide/persistent-volumes/#reclaiming .

So this would not be CNS-level (gluster/heketi-level) RFE but a kube-level change.

Note that this is the upstream upstream issue where such a change was requested, and it was closed:
https://github.com/kubernetes/kubernetes/issues/30606

My 2 cents.

Comment 6 Humble Chirammal 2017-02-24 08:53:55 UTC
This is indeed not in heketi layer. Its is kube. There is already an upstream issue where we were discussing about to have the reclaim policy configurable, see
https://github.com/kubernetes/kubernetes/issues/38192.

Comment 34 errata-xmlrpc 2018-09-12 12:27:13 UTC
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/RHEA-2018:2697

Comment 35 Red Hat Bugzilla 2023-09-15 00:01:26 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days