From ef941fed9a3eb18a30de14e5b61c7829240f2dff Mon Sep 17 00:00:00 2001 From: topahadzi Date: Wed, 22 Nov 2023 14:02:54 +0700 Subject: [PATCH] adjuts command to reboot now --- chaoslib/litmus/vira/node-restart/lib/node-restart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoslib/litmus/vira/node-restart/lib/node-restart.go b/chaoslib/litmus/vira/node-restart/lib/node-restart.go index a1d4b3c..6fbef07 100644 --- a/chaoslib/litmus/vira/node-restart/lib/node-restart.go +++ b/chaoslib/litmus/vira/node-restart/lib/node-restart.go @@ -145,7 +145,7 @@ func restartNode(experimentsDetails *experimentTypes.ExperimentDetails, clients return err } - command := exec.Command("kubectl", "node_shell", experimentsDetails.TargetNode, "--", "shutdown", "-r", "+3") + command := exec.Command("kubectl", "node_shell", experimentsDetails.TargetNode, "--", "shutdown", "-r", "now") if err := common.RunCLICommands(command, "", fmt.Sprintf("{node: %s}", experimentsDetails.TargetNode), "failed to restart the target node", cerrors.ErrorTypeChaosInject); err != nil { return err }