-
Notifications
You must be signed in to change notification settings - Fork 13
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
kola: provide internet access to qemu VM #167
Conversation
@pothos thanks for the review - comments have been addressed. :) |
@pothos thanks for reviewing again - comments have been addressed. PR is now ready to be fully reviewed :) If it looks good for you, I will rebase my fixups and reword some commits since logic has changed on the road. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also remove the RequiresInternetAccess
flag and PlatformsNoInternet
definitions from kola/register/register.go
. Or keep the RequiresInternetAccess
flag untouched and just remove qemu
from PlatformsNoInternet
.
@pothos I removed
which should be tracked and addressed in another issue. It's better for now to keep this definitions then. |
43cc678
to
4517920
Compare
The failing tests can be excluded with |
|
05176ce
to
6564139
Compare
Looks good, thanks! |
@pothos I added the retry logic: we provide the list of the host networks to the |
generation is based on a seed
this new topology allows QEMU VM to access internet. This allows tests with RequiresInternetAccess flag to now be run. on the implementation PoV: we basically create a virtual ethernet pair generated from a seed (a TCP socket listener in the root namespace) Then we configure routing and firewall to use this pair in order to forward packet until root network namespace
this was preventing internet access from `qemu-unpriv` platform
f5bcbb4
to
5bd5855
Compare
In this PR, we allow QEMU VMs to access Internet - it was preventing some tests to run because of this dependency.
How to use
Run kola against tests requiring Internet access, example:
What's missing
update readme with more informationthe user does not have to perform any manual action. They are done in 3d69f85RequiresInternetAccess
flag and remove this flag