Skip to content

Commit 92db325

Browse files
committed
Merge branch 'cherry_pick_02a8ddbde2986' into 'release-1.9'
Cherry-pick: Fix validation check to ensure MOFED drivers are ready See merge request nvidia/kubernetes/gpu-operator!389
2 parents c33c8d6 + 00f5608 commit 92db325

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validator/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,9 @@ func (m *MOFED) validate() error {
595595
}
596596

597597
func (m *MOFED) runValidation(silent bool) error {
598-
// invoke validation command
599-
command := "grep"
600-
args := []string{"ib_register_peer_memory_client", "/proc/kallsyms"}
598+
//check for mlx5_core module to be loaded
599+
command := "bash"
600+
args := []string{"-c", "lsmod | grep mlx5_core"}
601601

602602
// If MOFED container is running then use readiness flag set by the driver container instead
603603
if os.Getenv(UseHostMOFEDEnvname) != "true" {

0 commit comments

Comments
 (0)