Recycle policy for ceph backend

Solution In Progress - Updated -

Issue

  • We've seen OSE3 documentation talks about recycling volumes is only supported in NFS and HostPath but Ceph backend shows recycle as a persistentVolumeReclaimPolicy.
  • There is a bugzilla to fix documentation.

  • But, what will be the procedure to manually recycle the volume? Should the admin user delete the pv, then delete the volume in the storage backend and recreate it?

  • Why is recycling not implemented when using ceph backend? The recycling is just a special pod (ose-recycler) that uses the previously released volume and runs an rm -Rf /".

  • If we set the reclaimpolicy to recycle for ceph pv, logs say:

messages:Jan  4 04:56:16 ose1master atomic-openshift-master: I0104 04:56:16.019862    9525 persistentvolume_recycler_controller.go:94] Reclaiming PersistentVolume[ceph-vol13]
messages:Jan  4 04:56:16 ose1master atomic-openshift-master: I0104 04:56:16.023230    9525 persistentvolume_recycler_controller.go:126] Recycling PersistentVolume[ceph-vol13]
messages:Jan  4 04:56:16 ose1master atomic-openshift-master: E0104 04:56:16.023259    9525 persistentvolume_recycler_controller.go:118] Could not recycle volume spec: Could not find recyclable volume plugin for spec: no volume plugin matched

Environment

  • Openshift Enterprise
    • 3.1, 3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content