-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel mounter refuses to mount when cephfs is built into kernel #4376
Labels
Comments
You are correct, if |
nixpanic
added a commit
to nixpanic/ceph-csi
that referenced
this issue
Jan 16, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: ceph#4376 Signed-off-by: Niels de Vos <[email protected]>
nixpanic
added a commit
to nixpanic/ceph-csi
that referenced
this issue
Jan 16, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: ceph#4376 Signed-off-by: Niels de Vos <[email protected]>
nixpanic
added a commit
to nixpanic/ceph-csi
that referenced
this issue
Jan 16, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: ceph#4376 Signed-off-by: Niels de Vos <[email protected]>
nixpanic
added a commit
to nixpanic/ceph-csi
that referenced
this issue
Jan 17, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: ceph#4376 Signed-off-by: Niels de Vos <[email protected]>
nixpanic
added a commit
to nixpanic/ceph-csi
that referenced
this issue
Jan 17, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: ceph#4376 Signed-off-by: Niels de Vos <[email protected]>
mergify bot
pushed a commit
that referenced
this issue
Jan 17, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: #4376 Signed-off-by: Niels de Vos <[email protected]>
mergify bot
pushed a commit
that referenced
this issue
Jan 17, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: #4376 Signed-off-by: Niels de Vos <[email protected]> (cherry picked from commit ab87045)
mergify bot
pushed a commit
that referenced
this issue
Jan 18, 2024
By reading the contents of /proc/filesystems, and checking if "ceph" is included there, running "modprobe ceph" can be skipped. Fixes: #4376 Signed-off-by: Niels de Vos <[email protected]> (cherry picked from commit ab87045)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running on a kernel configured with
CONFIG_CEPH_FS=y
(not=m
), the nodeplugin refuses to mount.The
mountKernel
function begins with a call tomodprobe ceph
, even if the/proc/filesystems
list already includesceph
. If that modprobe command fails, it doesn't even try to mount the volume.When the kernel has enabled cephfs as a builtin feature (not as a module),
modprobe
won't find a file namedceph.ko
, and thus, it doesn't work.Environment details
Steps to reproduce
Steps to reproduce the behavior:
Actual results
Pods fail to start. The node plugin logs talk about modprobe failing.
Expected behavior
It mounts the thing and everything works.
Logs
Additional context
I was able to prove that modprobe is the only issue, by applying a hacky workaround. I exec'ed into the node plugin container and replaced the
modprobe
command with a symlink to/bin/true
. After doing this, the node plugin mounted the cephfs volume successfully and the pods started, and everything seems to work great.I had built my kernel this way in an attempt to optimize the kernel I use on k8s nodes, to minimize the attack surface and simplify the build/boot processes. I think these are worthwhile goals, and while building ceph as a module is extremely common, ceph csi's dependency on that is a bit problematic.
Maybe turn the error into a warning? Or check if
ceph
is in/proc/filesystems
before doing the modprobe? Or try mounting anyway before returning the error?The text was updated successfully, but these errors were encountered: