Skip to content

CNS volumes are removed from the infrastructure after PV removal with the Retain reclaim policy #3835

@pawcykca

Description

@pawcykca

Is it correct that when I delete a PV in Released status with "ReclaimPolicy: Retain" configuration, the CNS volume is also automatically deleted from infrastructure?

Here I would expect that after deleting such a PV the CNS volume in the infrastructure would not be automatically deleted.

Is this in line with official K8S guidelines?

The Retain reclaim policy allows for manual reclamation of the resource. When the PersistentVolumeClaim is deleted, the PersistentVolume still exists and the volume is considered "released". But it is not yet available for another claim because the previous claimant's data remains on the volume. An administrator can manually reclaim the volume with the following steps.

  1. Delete the PersistentVolume. The associated storage asset in external infrastructure still exists after the PV is deleted.
  2. Manually clean up the data on the associated storage asset accordingly.
  3. Manually delete the associated storage asset.

Other CSI drivers we have used so far behave as above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions