KatharaFramework / Kathara

A lightweight container-based network emulation system.
https://www.kathara.org/
GNU General Public License v3.0
452 stars 63 forks source link

`kathara exec` hangs indefinitely when running ping command #143

Closed giossa94 closed 2 years ago

giossa94 commented 2 years ago

Describe the bug kathara exec hangs indefinitely when running a specific ping command into a device belonging to a lab. I reproduced the issue with a lab generated with VFTGen, but seems to be related to Kathara and not an issue with VFTGen.

To Reproduce

  1. Clone VFTGen repo
  2. Run VFTGen with default config: python3 vftgen.py
  3. Go to the generated lab directory and run kathara lstart
  4. When the previous step is finished, run kathara exec server_2_1_1 -- ping 200.0.0.2 (or any ping between devices of the lab)

Actual behavior The kathara exec command hangs indefinitely and doesn't display the ping output.

Expected behavior Ping output is displayed.

Extra comments

"check" Command Output ``` Current Manager is: Docker (Kathara) Manager version is: 20.10.11 Python version is: 3.9.7 (default, Sep 10 2021, 00:03:59) - [GCC 7.5.0] Kathara version is: 3.2.0 Operating System version is: Linux-5.4.0-91-generic-x86_64 ```

Any ideas on how I can solve this issue? Thank you!

tcaiazzi commented 2 years ago

Hi @giossa94,

We fixed it! Check the develop branch and commit https://github.com/KatharaFramework/Kathara/commit/0df94296b248863107956bce3c7891184311d526.

We will merge the fix in the next release!

Many thanks for your help!

Tommaso.

giossa94 commented 2 years ago

Thank you for the quick fix!

conraddang commented 3 days ago

Hi, somehow i encountered the same problem, while it should be fixed, right? What should i do so that the ping output gets displayed? I’d really appreciate any help with this!

tcaiazzi commented 2 days ago

Dear @conraddang,

Thank you for reaching out!

I just tested it on my PC, and everything is working perfectly on my end.

image

Are you sure you're pinging a reachable IP? If not, the command might get stuck waiting for a timeout.

To assist you further, I’ll need some additional information:

  1. Could you provide a step-by-step guide on how to reproduce the issue?
  2. Which OS are you using?
  3. What version of Kathará are you running?

Thanks!