Skip to content

Commit

Permalink
fix parallel node target
Browse files Browse the repository at this point in the history
  • Loading branch information
topahadzi committed Dec 1, 2023
1 parent a411b36 commit 376d75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaoslib/litmus/vira/node-restart/lib/node-restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func restartNode(targetNodeList []string, experimentsDetails *experimentTypes.Ex
}
for _, appNode := range targetNodeList {
log.Infof("[Inject]: Restarting the %v node", appNode)
command := exec.Command("kubectl", "node_shell", appNode, "--", "shutdown", "-r", "+1")
command := exec.Command("kubectl", "node_shell", appNode, "--", "shutdown", "-r", "+3")
if err := common.RunCLICommands(command, "", fmt.Sprintf("{node: %s}", appNode), "failed to restart the target node", cerrors.ErrorTypeChaosInject); err != nil {
return err
}
Expand Down

0 comments on commit 376d75b

Please sign in to comment.