Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not Completing When Ran in Windows 10 Ubuntu Subsystem #130

Closed
jonatino opened this issue Mar 23, 2018 · 13 comments
Closed

Tests not Completing When Ran in Windows 10 Ubuntu Subsystem #130

jonatino opened this issue Mar 23, 2018 · 13 comments

Comments

@jonatino
Copy link

Setup flent in my Ubuntu subsystem for Windows 10 using Xming server to show the GUI.

When I run the built-in tests they never complete (image below has been stuck at 100% for 20 minutes). Is there any additional logging I can turn on to try and figure this out?

img

@jonatino jonatino changed the title Tests Not Completing Through Windows 10 Subsystem for Linux Tests not Completing When Ran in Windows 10 Ubuntu Subsystem Mar 23, 2018
@tohojo
Copy link
Owner

tohojo commented Mar 23, 2018 via email

@jonatino
Copy link
Author

jonatino commented Mar 23, 2018

@tohojo

Unfortunately, command line did not work either. Ran the test and left it for 30 minutes, here is the output from the log file.

2018-03-23 13:43:23,151 [flent.settings] DEBUG: Executing test environment file /usr/share/flent/flent/tests/rrul_be.conf
2018-03-23 13:43:23,159 [flent.settings] INFO: Started Flent 1.2.0 using Python 3.5.2.
2018-03-23 13:43:23,163 [flent.settings] DEBUG: Executing test environment file /usr/share/flent/flent/tests/rrul_be.conf

https://dl.dropboxusercontent.com/s/l1uwdncftanogh2/debug.log

@tohojo
Copy link
Owner

tohojo commented Mar 23, 2018 via email

@jonatino
Copy link
Author

jonatino commented Mar 24, 2018

@tohojo
Copy link
Owner

tohojo commented Mar 24, 2018

Okay, this is decidedly weird. From the strace output it looks like Flent is writing more stuff to stderr, but it never appears anywhere. But there is also definitely log output missing; looks like only the log lines from the settings module are actually output.

I think I have a windows 10 VM lying around somewhere, so I'll see if I can replicate this. Did you install Flent from the PPA?

@jonatino
Copy link
Author

@tohojo yes. Installed version 1.2.0-1 from https://launchpad.net/~tohojo/+archive/ubuntu/flent

It could very well be a bug/limitation with ubuntu subsystem for Windows 10. But it still would be interesting to find the root cause.

@tohojo
Copy link
Owner

tohojo commented Mar 24, 2018 via email

@tohojo
Copy link
Owner

tohojo commented Mar 27, 2018

OK, so tried this on win10 and could not reproduce the behaviour you are seeing.

The ping binary doesn't work properly on win10, though; could you try to see what happens if you run the tcp_1up_noping test?

@jonatino
Copy link
Author

jonatino commented Mar 27, 2018

@tohojo were you using the Ubuntu subsystem? Now that I think about it, it could totally be that my subsystem is using the wrong NIC by default (I have multiple NICs in my computer). Which still doesn't explain why there was no timeout errors or output for that matter but 🤷‍♂️ .

I will check again when I get home.

@tohojo
Copy link
Owner

tohojo commented Mar 27, 2018

It just occurred to me that the issue might be a hanging hostname lookup. I've added a debug statement before looking up hostnames, so if you could try running the git version with -v, it should be pretty clear if this is what is happening...

@jonatino
Copy link
Author

jonatino commented Mar 28, 2018

@tohojo no luck. The following is the output of hostnames[0]

Executing test environment file /home/jonathan/flent/flent/tests/rrul_be.conf
Looking up hostname1234 '107.191.96.000', '4'.
Found hostname '(2, 1, 6, '', ('107.191.96.000', 0))'.

Which matches the output on my working VirtualBox ubuntu.

Going to continue walking through the code and see why it's not started.

Found where its getting stuck. tc qdisc show dev eth1 is never finishing. In fact, any tc command I do (tc qdisc show for example) is not completing either 😕

@jonatino
Copy link
Author

@tohojo this seems to be an issue with the subsystem in windows.

microsoft/WSL#2026

thanks for your help.

@tohojo
Copy link
Owner

tohojo commented Mar 28, 2018 via email

@tohojo tohojo closed this as completed in 92fa82f Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants