NetApp / trident

Storage orchestrator for containers
Apache License 2.0
762 stars 222 forks source link

tridentctl import cannot mount LUKS encrypted volumes in backend without LUKS as a default #849

Closed alifelan closed 4 months ago

alifelan commented 1 year ago

Describe the bug When having a backend with two virtual pools, one for LUKS and one for non LUKS, and a default without LUKS, we can create LUKS encrypted volumes. Then, we can create a snapshot of the volume. But when we try to import the volume with tridentctl import, the import itself succeeds, but the volume cannot be mounted to a pod due to the following error:

kubelet  MountVolume.MountDevice failed for volume "pvc-72b02d9a-3198-47c2-8318-5a85a858036c" : rpc error: code = Internal desc = failed to stage volume: LUN trident_pvc_72b02d9a_3198_47c2_8318_5a85a858036c, device dm-11 already formatted with other filesystem: crypto_LUKS

Environment Provide accurate information about the environment to help us reproduce the issue.

To Reproduce

Expected behavior The pod should be able to mount and read/write to the volume

vasum0406 commented 4 months ago

This has been fixed in Trident 24.06.