From 3dac13417fec1743d2f6e8631fe9b6cf8796bfb5 Mon Sep 17 00:00:00 2001 From: Diwakar Sharma Date: Wed, 15 Jan 2025 17:29:15 +0000 Subject: [PATCH] fix: account for builtin nvme-tcp module in initContainer - If sysfs check pass - driver is available as either loaded already or builtin - If sysfs check fails - driver isn't builtin but can be possibly loaded Signed-off-by: Diwakar Sharma --- chart/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/values.yaml b/chart/values.yaml index 090eec5a7..ac25a7093 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -364,7 +364,7 @@ csi: enabled: false containers: - name: nvme-tcp-probe - command: ['sh', '-c', 'trap "exit 1" TERM; until $(lsmod | grep nvme_tcp &>/dev/null); do [ -z "$WARNED" ] && echo "nvme_tcp module not loaded..."; WARNED=1; sleep 60; done;'] + command: ['sh', '-c', 'trap "exit 1" TERM; until [ -d /sys/module/nvme_tcp ]; do [ -z "$WARNED" ] && echo "nvme_tcp module not loaded..."; WARNED=1; sleep 60; done;'] io_engine: # -- Log level for the io-engine service