pingall fails with default installation on Ubuntu 20.04
Expected/Desired Behavior:
Calling pingall with default topology succeeds without packet loss.
Actual Behavior:
Emulated hosts cannot reach each other. 100% packet loss.
Detailed Steps to Reproduce the Behavior:
$ sudo mn
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet> pingall
*** Ping: testing ping reachability
h1 -> X
h2 -> X
*** Results: 100% dropped (0/2 received)
Additional Information:
I installed mininet with:
sudo apt install mininet
I also tried running with the --test option and the process hangs at "Waiting for switches to connect":
$ sudo mn --test pingall
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Waiting for switches to connect
@jacobperron - Did you get anywhere with this? I'm hitting the same thing with the package installed from apt. I even tried cloning the repo and using the install script, but I'm hitting a linking error during the make of oflops.
@jlax47 I ended up using the install script. I ran the following commands in a Docker container:
apt install -y git iputils-ping
git clone http://github.com/mininet/mininet.git
cd mininet
util/install.sh -fnv
I didn't notice any linking errors.
Ping @lantz ... this project seems pretty quiet, you were the last committer, so I'm wondering if you have any idea if anyone is working on making sure mininet can work on modern Ubuntu's?
@jlax47 With the changes in #980, I am able to install it from source into Ubuntu 20.04, and your repro case works for me.
My own existing Mininet-based topology still has problems only on 20.04 (still debugging that), but the minimal test you showed at least works.
can this then be closed @jeffallen then?