PVC mount with LUKS encryption enabled fails with "LUKS passphrase cannot be empty"
Applies to
- NetApp Trident
- Red Hat OpenShift
- Linux Unified Key Setup (LUKS) encryption
Issue
After enabling LUKS encryption for volumes on Trident, mounting a non-LUKS encrypted PVC using OpenShift fails with the following error:
Trident Event Logs (
kubectl get events -n trident
):TYPE REASON OBJECT MESSAGE
Warning FailedMount pod/<PV_Id> MountVolume.MountDevice failed for volume "<PVC_Id>" : rpc error: code = Internal desc = rpc error: code = Internal desc = failed to stage volume: LUKS passphrase cannot be empty
Warning FailedMount pod/<PV_Id> Unable to attach or mount volumes: unmounted volumes=[<Volume_Name>], unattached volumes=[], failed to process volumes=[]: timed out waiting for the condition