© 2014 vmware inc. all rights reserved. ovs kernel testing joe stringer, andy zhou...
TRANSCRIPT
![Page 1: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/1.jpg)
1© 2014 VMware Inc. All rights reserved.
OVS Kernel testingJoe Stringer, Andy Zhou
{joe,azhou}@ovn.org
OVScon 2015-11-17
Dive in, Try it out!# $EDITOR tests/system-traffic.at
# make check-kernel
![Page 2: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/2.jpg)
2
User space unit testing
• Current unit testing framework– Based on AutoTest 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
![Page 3: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/3.jpg)
3
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
![Page 4: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/4.jpg)
4
OVS kernel test topology
OVScon 2015-11-17
Kernel
OVSNetworkNamespace
NetworkNamespace
veth pair
veth pair
Virt
ual M
achi
ne
![Page 5: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/5.jpg)
5
Connection Tracking Example
OVScon 2015-11-17
Kernel
OVS + Conntrack
Flows
WgetHTTP/FTP
Client
tests/test-l7.pyHTTP/FTP
Server
![Page 6: © 2014 VMware Inc. All rights reserved. OVS Kernel testing Joe Stringer, Andy Zhou {joe,azhou}@ovn.org OVScon 2015-11-171 Dive in, Try it out! # $EDITOR](https://reader036.vdocuments.mx/reader036/viewer/2022081816/5697c01c1a28abf838cd0189/html5/thumbnails/6.jpg)
6
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