Skip to content

Commit aefb892

Browse files
committed
OCPBUGS-83580: Load fuse kernel module before testing /dev/fuse in CRI-O
The OCP-70987 test was failing across multiple CI platforms (AWS, GCP, vSphere, Metal+IPv6) because /dev/fuse was not available on host nodes where the fuse kernel module was not loaded. CRI-O silently ignores the io.kubernetes.cri-o.Devices annotation when the device does not exist on the host, causing the pod to start without /dev/fuse mounted. This adds a modprobe fuse step before creating the test pod to ensure the fuse kernel module is loaded. This is idempotent (no-op if already loaded) and follows the same pattern used in tap.go for modprobe tun. Made-with: Cursor
1 parent ff48d7a commit aefb892

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

test/extended/node/node_e2e/node.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,15 @@ var _ = g.Describe("[sig-node] [Jira:Node/Kubelet] Kubelet, CRI-O, CPU manager",
112112
podName := "pod-devfuse"
113113
ns := "devfuse-test"
114114

115+
g.By("Ensure fuse kernel module is loaded on a worker node")
116+
workerName, err := oc.AsAdmin().WithoutNamespace().Run("get").Args("nodes", "-l", "node-role.kubernetes.io/worker", "-o=jsonpath={.items[0].metadata.name}").Output()
117+
o.Expect(err).NotTo(o.HaveOccurred())
118+
o.Expect(workerName).NotTo(o.BeEmpty(), "No worker nodes found")
119+
_, err = nodeutils.ExecOnNodeWithChroot(oc, strings.TrimSpace(workerName), "modprobe", "fuse")
120+
o.Expect(err).NotTo(o.HaveOccurred(), "failed to load fuse kernel module on node")
121+
115122
g.By("Create a test namespace")
116-
err := oc.AsAdmin().WithoutNamespace().Run("create").Args("namespace", ns).Execute()
123+
err = oc.AsAdmin().WithoutNamespace().Run("create").Args("namespace", ns).Execute()
117124
o.Expect(err).NotTo(o.HaveOccurred())
118125
defer oc.AsAdmin().WithoutNamespace().Run("delete").Args("namespace", ns, "--ignore-not-found").Execute()
119126

0 commit comments

Comments
 (0)