Bug 1426259 - [GSS] [RFE] Customer need the ability to set the persistentVolumeReclaimPolicy per storage class
Summary: [GSS] [RFE] Customer need the ability to set the persistentVolumeReclaimPoli...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: kubernetes
Version: rhgs-3.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: CNS 3.10
Assignee: Humble Chirammal
QA Contact: Prasanth
URL:
Whiteboard:
Depends On:
Blocks: 1543778 1568860
TreeView+ depends on / blocked
 
Reported: 2017-02-23 14:40 UTC by Otakar Masek
Modified: 2023-09-15 00:01 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-12 12:27:13 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:2697 0 None None None 2018-09-12 12:27:57 UTC

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


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