OVS Kernel testing Joe Stringer Andy Zhou joe

  • Slides: 6
Download presentation
OVS Kernel testing Joe Stringer, Andy Zhou {joe, azhou}@ovn. org Dive in, Try it

OVS Kernel testing Joe Stringer, Andy Zhou {joe, azhou}@ovn. org Dive in, Try it out! # $EDITOR tests/system-traffic. at # make check-kernel OVScon 2015 -11 -17 1 © 2014 VMware Inc. All rights reserved.

User space unit testing • Current unit testing framework – Based on Auto. Test

User space unit testing • Current unit testing framework – Based on Auto. Test framework – Currently has ~1718 tests – Good coverage for OVS user space features – Experience of a good test framework • Fast • Repeatable • Easy to write and troubleshoot OVScon 2015 -11 -17 2

Expanding datapath testing • Until recently, OVS testing has been userspace-only – Pretend user/kernel

Expanding datapath testing • Until recently, OVS testing has been userspace-only – Pretend user/kernel datapaths are the same – Rely on out of band datapath testing • So, we started building out a kernel datapath testsuite – Kernel datapath is getting more complex – Philosophy: Any testing is better than no testing – First major user: Connection tracking OVScon 2015 -11 -17 3

Network Namespace veth pair OVS Kernel OVScon 2015 -11 -17 veth pair Network Namespace

Network Namespace veth pair OVS Kernel OVScon 2015 -11 -17 veth pair Network Namespace Virtual Machine OVS kernel test topology 4

Connection Tracking Example Wget HTTP/FTP Client OVS + Conntrack Flows tests/test-l 7. py HTTP/FTP

Connection Tracking Example Wget HTTP/FTP Client OVS + Conntrack Flows tests/test-l 7. py HTTP/FTP Server Kernel OVScon 2015 -11 -17 5

Suggestions? Patches? Improve testing infrastructure • • Vagrant boxes for testing Kernel compatibility Dealing

Suggestions? Patches? Improve testing infrastructure • • Vagrant boxes for testing Kernel compatibility Dealing with kernel crashes Integration with CI tools Expanding to system tests • • Interactions between features DPDK datapath testing Performance testing Scale testing OVScon 2015 -11 -17 6