Project

General

Profile

Actions

Bug #62435

open

Pod unable to mount fscrypt encrypted cephfs PVC when it moves to another node

Added by Sudhin Bengeri 9 months ago. Updated 3 months ago.

Status:
Need More Info
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Here is our setup:
Kubernetes: 1.27.3
rook: 1.11.9
ceph: 17.2.6
OS: Ubuntu 20.04 modified kernel to support fscrypt
(Linux wkhd 6.3.0-rc4+ #6 SMP PREEMPT_DYNAMIC Mon May 22 22:48:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux)

1. Made change to operator.yaml & common.yaml
2. Enabled fscrypt on CephFileSystem
3. Enabled fscrypt on storageclass

as suggested in https://rook.io/docs/rook/v1.11/Storage-Configuration/Ceph-CSI/ceph-csi-drivers/#enable-rbd-encryption-support

After that, we are able to create the pod and mount the volume. But once the pod was deleted and recreated in a different node, we get:

Warning FailedMount 27s (x7 over 2m39s) kubelet MountVolume.MountDevice failed for volume "pvc-71b1ef3f-4b06-4809-a2ac-2c42c4477db4" : rpc error: code = Internal desc = fscrypt: unsupported state metadata=true kernel_policy=false


Files

dmesg-230830.txt (18.5 KB) dmesg-230830.txt Sudhin Bengeri, 08/30/2023 02:11 PM
Actions

Also available in: Atom PDF