Skip to content

Resizing volumes leaves backups behiend #107

@robinAwallace

Description

@robinAwallace

Hello,

I have noticed that when resizing volumes the csi-driver creates a backup of the volume. I also see in the resizer function that this backup should be deleted. But the backup is never deleted.

The resize for me looks successfully, as the size is increased correctly. But I can see in the logs that something failed just before successfully resizing the volume.

I0826 09:02:41.593567       1 event.go:285] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"opensearch-system", Name:"opensearch-master-opensearch-master-0", UID:"54ae8ec5-c1bd-416a-bcc3-c2f4c5453cff", APIVersion:"v1", ResourceVersion:"38745", FieldPath:""}): type: 'Normal' reason: 'Resizing' External resizer is resizing volume pvc-54ae8ec5-c1bd-416a-bcc3-c2f4c5453cff
I0826 09:02:42.243560       1 controller.go:483] Resize volume succeeded for volume "pvc-54ae8ec5-c1bd-416a-bcc3-c2f4c5453cff", start to update PV's capacity
I0826 09:02:42.243574       1 controller.go:590] Resize volume succeeded for volume "pvc-54ae8ec5-c1bd-416a-bcc3-c2f4c5453cff", start to update PV's capacity
I0826 09:02:42.261758       1 controller.go:489] Update capacity of PV "pvc-54ae8ec5-c1bd-416a-bcc3-c2f4c5453cff" to 120Gi succeeded

The backup I see in the hub after resizing:

image

I expect after a successful resize that all backups are deleted. As this will otherwise be an additional costs.

Version Im using:

image: registry.k8s.io/sig-storage/csi-resizer:v1.4.0
image: ghcr.io/upcloudltd/upcloud-csi:v1.1.0

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