Bug 1324464

Summary: [RFE] PV recycling for Gluster volumes
Product: OpenShift Container Platform Reporter: Evgheni Dereveanchin <ederevea>
Component: RFEAssignee: Bradley Childs <bchilds>
Status: CLOSED WONTFIX QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: ahatfiel, aos-bugs, erich, jokerman, mhepburn, mmccomas, pprakash, swatt, tkimura
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-31 15:56:42 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 Evgheni Dereveanchin 2016-04-06 11:30:32 UTC
Description of request:
Currently only NFS supports Physical Volume recycling.
This request is to implement a plugin to recycle Gluster volumes after they're released to improve usability of this volume type.

Comment 1 Mike Hepburn 2016-08-25 04:49:57 UTC
it may also help if the official documentation didn't reference Recycle in the example

https://docs.openshift.com/enterprise/3.2/install_config/persistent_storage/persistent_storage_glusterfs.html#gfs-creating-persistent-volume


apiVersion: v1
kind: PersistentVolume
metadata:
  name: gluster-default-volume 
spec:
  capacity:
    storage: 2Gi 
  accessModes: 
    - ReadWriteMany
  glusterfs: 
    endpoints: glusterfs-cluster 
    path: myVol1 
    readOnly: false
  persistentVolumeReclaimPolicy: Recycle

Comment 2 Andrew Hatfield 2016-08-28 23:41:28 UTC
Ack to Mike's comments.  https://docs.openshift.com/enterprise/3.2/architecture/additional_concepts/storage.html#pv-recycling-policy specifies that only NFS and Hostpath currently support Recycle.

This contradicts the Gluster example Mike posted above.

Comment 3 Steve Watt 2017-01-31 15:56:42 UTC
GlusterFS Persistent Volumes are not going to support Recycling. The recommended approach is to create them manually and use the Retain policy or use the GlusterFS Dynamic Provisioner and create the volumes on demand when a claim is submitted and delete them dynamically when the claim is released.