After I created a cluster with only one master, I tried to add a new node into the cluster. Then error
failed to run command[export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin"; seautil route add --host 10.103.97.2 --gateway 192.168.1.201 occurred.
I ran sealer run -f clusterfile successfully. Then I want to add a new node.
When I ran sealer scale-up --nodes 192.168.1.201 -p 'vagrant', it failed with above logs.
What happen?
After I created a cluster with only one master, I tried to add a new node into the cluster. Then error
failed to run command[export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin"; seautil route add --host 10.103.97.2 --gateway 192.168.1.201
occurred.Relevant log output?
What you expected to happen?
Add a new node to my cluster successfully.
How to reproduce it (as minimally and precisely as possible)?
I ran
sealer run -f clusterfile
successfully. Then I want to add a new node. When I ransealer scale-up --nodes 192.168.1.201 -p 'vagrant'
, it failed with above logs.Anything else we need to know?
No response
What is the version of Sealer you using?
{"gitVersion":"v0.10.0","gitCommit":"d83ead0","buildDate":"2023-05-16 02:39:03","goVersion":"go1.17.13","compiler":"gc","platform":"linux/amd64"}
What is your OS environment?
Ubuntu 20.04
What is the Kernel version?
Linux master-01 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Other environment you want to tell us?
Vagrantfile
content:Vagrant.configure("2") do |config|
config.vm.define "master-01" do |master| master.vm.box = "generic/ubuntu2004" master.vm.hostname = "master-01" master.vm.network "private_network", ip: "192.168.1.200" master.vm.provider "virtualbox" do |vb| vb.cpus = 4 vb.memory = "8000" vb.customize ['modifyvm', :id, '--macaddress1', '080027000051'] vb.customize ['modifyvm', :id, '--natnet1', '10.0.51.0/24'] end master.vm.provision "shell", inline: <<-SHELL sudo sed -i s@/archive.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list sudo apt-get update sudo apt-get install ntp -y sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config sudo systemctl restart sshd wget http://ack-a-aecp.oss-cn-hangzhou.aliyuncs.com/ack-distro/sealer/sealer-0.9.4-beta2-linux-amd64.tar.gz -O sealer-latest-linux-amd64.tar.gz && sudo tar -xvf sealer-latest-linux-amd64.tar.gz -C /usr/bin SHELL end
config.vm.define "worker-01" do |worker| worker.vm.box = "generic/ubuntu2004" worker.vm.hostname = "worker-01" worker.vm.network "private_network", ip: "192.168.1.201" worker.vm.provider "virtualbox" do |vb| vb.cpus = 4 vb.memory = "8000" vb.customize ['modifyvm', :id, '--macaddress1', '080027000052'] vb.customize ['modifyvm', :id, '--natnet1', '10.0.52.0/24'] end worker.vm.provision "shell", inline: <<-SHELL sudo sed -i s@/archive.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list sudo apt-get update sudo apt-get install ntp -y sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config sudo systemctl restart sshd SHELL end end