Skip to content

Commit

Permalink
bugfix: scaling up machines not work
Browse files Browse the repository at this point in the history
  • Loading branch information
nautilusshell authored Sep 27, 2020
1 parent c869a23 commit 2613134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ClusterBootstrap/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4063,7 +4063,7 @@ def scale_up(config):
print(node_info)

## install necessary software
run_script(node, "./scripts/prepare_ubuntu.sh", sudo = True)
run_script(node, ["./scripts/prepare_ubuntu.sh"], sudo = True)

## wait for node to reboot
print("waiting for 2 seconds...")
Expand Down Expand Up @@ -4097,8 +4097,8 @@ def scale_up(config):
# sleep 1;
#done

run_script(node, "./scripts/prepare_ubuntu.sh continue", sudo = True)
run_script(node, "./scripts/install_kubeadm.sh", sudo = True)
run_script(node, ["./scripts/prepare_ubuntu.sh continue"], sudo = True)
run_script(node, ["./scripts/install_kubeadm.sh"], sudo = True)

## turn off swap
output = utils.SSH_exec_cmd_with_output(config["ssh_cert"], config["admin_username"], node, "swapoff -a", False)
Expand Down

0 comments on commit 2613134

Please sign in to comment.