Giuseppe1992 / Distrinet

Distributed Network emulator, based on Mininet
MIT License
17 stars 16 forks source link

Issues when running example #69

Open cse578group29 opened 2 years ago

cse578group29 commented 2 years ago

Hello, when running the example in the tutorial on VirtualBox with VMs, I got the errors as shown in the picture. Do you have any suggestions on solving it? Thank you!

image

Giuseppe1992 commented 2 years ago

hello @cse578group29, It is possible that the space added after the comma between 192.168.56.104 and 192.168.56.103 is causing this issue.

can you try if again without the spaces in the --workers parameter?

cse578group29 commented 2 years ago

Hello, @Giuseppe1992 It has the same error after deleting the space. Any other suggestions? Thanks!

Giuseppe1992 commented 2 years ago

Can you run from your master:

ansible all -u root -m raw -a "lxc image ls"

and while you are running the experiment, when you receive the error from the master open another terminal and run:

ansible all -u root -m raw -a "lxc ls"

cse578group29 commented 2 years ago

Here is the output in master VM, the ssh connection tests are successful. image

Giuseppe1992 commented 2 years ago

Can you try to clean the environment before starting a new experiment? it may be the issue.

create a clean.sh file on your master i.e.

vim /tmp/clean.sh and paste the following script:

lxc ls | grep "PER" | awk '{print "lxc delete ", $2 ,"--force"}' > $$; sh $$; rm $$; ip link delete vNone; ip link | grep "MUL" | grep -v "ens5" | tr -d ":" | tr "@" " " | awk '{print "ip link delete ",$2}' > $$ ; sh $$; rm $$

then move the script in all the nodes

ansible all -m copy -a "src=/tmp/clean.sh dest=/root/clean.sh"

and run

ansible all -a "sh clean.sh"

If you run: ansible all -u root -m raw -a "lxc ls"

Everything should be clean