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

lxc python api test failed on KVM hosts #2

Closed
Cypresslin opened this issue Apr 17, 2018 · 2 comments · Fixed by #13
Closed

lxc python api test failed on KVM hosts #2

Cypresslin opened this issue Apr 17, 2018 · 2 comments · Fixed by #13

Comments

@Cypresslin
Copy link
Contributor

With a KVM node running with the Xenial KVM kernel (4.4.0-1021-kvm), the python API test in lxc test will failed with interface assertion:

assert(set(container.get_interfaces()) == set(('lo', 'eth0')))

The actual container.get_interfaces() output on this instance is:

('eth0', 'lo', 'sit0')

The extra sit0 cause the problem here.

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux-kvm/+bug/1764618

@brauner
Copy link
Member

brauner commented Apr 17, 2018 via email

@vicamo
Copy link
Contributor

vicamo commented Sep 18, 2019

Now an additional interface tunl0 appears inside the container as well when kernel module ipip is inserted in the host side. I think we should include such checks in the api_test.py.

vicamo added a commit to vicamo/python3-lxc that referenced this issue Sep 18, 2019
When the host has kernel module sit or ipip inserted, additional network
interfaces sit0 and/or tunl0 would appear inside the container by
default as well, which fails the api_test.

This change append sit0/tunl0 to expected interfaces when applicable.

Closes: lxc#2
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants