@@ -616,6 +616,7 @@ func runCommandWithWait(command string, args []string, sleepSeconds int, silent
616
616
fmt .Printf ("running command %s with args %v\n " , command , args )
617
617
err := cmd .Run ()
618
618
if err != nil {
619
+ log .Warningf ("error running command: %v" , err )
619
620
fmt .Printf ("command failed, retrying after %d seconds\n " , sleepSeconds )
620
621
time .Sleep (time .Duration (sleepSeconds ) * time .Second )
621
622
continue
@@ -649,7 +650,7 @@ func setEnvVar(envvars []string, key, value string) []string {
649
650
// For driver container installs, check existence of .driver-ctr-ready to confirm running driver
650
651
// container has completed and is in Ready state.
651
652
func assertDriverContainerReady (silent bool ) error {
652
- command := "bash "
653
+ command := "sh "
653
654
args := []string {"-c" , "stat /run/nvidia/validations/.driver-ctr-ready" }
654
655
655
656
if withWaitFlag {
@@ -932,7 +933,7 @@ func (n *NvidiaFs) validate() error {
932
933
933
934
func (n * NvidiaFs ) runValidation (silent bool ) error {
934
935
// check for nvidia_fs module to be loaded
935
- command := "bash "
936
+ command := "sh "
936
937
args := []string {"-c" , "lsmod | grep nvidia_fs" }
937
938
938
939
if withWaitFlag {
@@ -1067,7 +1068,7 @@ func (m *MOFED) validate() error {
1067
1068
1068
1069
func (m * MOFED ) runValidation (silent bool ) error {
1069
1070
// check for mlx5_core module to be loaded
1070
- command := "bash "
1071
+ command := "sh "
1071
1072
args := []string {"-c" , "lsmod | grep mlx5_core" }
1072
1073
1073
1074
// If MOFED container is running then use readiness flag set by the driver container instead
@@ -1632,7 +1633,7 @@ func (c *CCManager) setKubeClient(kubeClient kubernetes.Interface) {
1632
1633
1633
1634
// Check that the ccManager container is ready after applying required ccMode
1634
1635
func assertCCManagerContainerReady (silent , withWaitFlag bool ) error {
1635
- command := "bash "
1636
+ command := "sh "
1636
1637
args := []string {"-c" , "stat /run/nvidia/validations/.cc-manager-ctr-ready" }
1637
1638
1638
1639
if withWaitFlag {
0 commit comments