From 26131340363adcca6803b7ba2cdff5c1a24c3360 Mon Sep 17 00:00:00 2001 From: Nautilus <39021950+nautilusshell@users.noreply.github.com> Date: Sun, 27 Sep 2020 10:52:58 +0800 Subject: [PATCH] bugfix: scaling up machines not work --- src/ClusterBootstrap/deploy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ClusterBootstrap/deploy.py b/src/ClusterBootstrap/deploy.py index df887bebb..ede00869e 100755 --- a/src/ClusterBootstrap/deploy.py +++ b/src/ClusterBootstrap/deploy.py @@ -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...") @@ -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)