[openstack-dev] [Networking] [openstack-qa] Functional Testing with Namespaces (netns)

Nachi Ueno nachi at ntti3.com
Fri May 24 00:48:43 UTC 2013


Hi Maru

+1
My intention for writing quantum-debug command is for that purpose.

Yamahata has proposed similar framework which is called fakevm (this
one supports emulation of VM migrations)
https://review.openstack.org/#/c/20617/ (currently it looks stopped though)

One possible another idea is let nova support this fakevm mode for
quick integration tests.
On this plan, we can use same integration test code for quick test and
real test.

Best
Nachi



2013/5/23 Maru Newby <marun at redhat.com>:
> Recently, I've been working with netns quite a bit.  This exposure has convinced me that we should be doing functional testing for OpenStack Networking without hypervisor VM's.  In many use cases, the VM is just a container for a network device, and a namespace could easily substitute for a VM.  Much of the project's functionality - security groups, bridge configuration (port, vlans and tunneling), physical network integration, software filtering and routing, load balancing - could be (mostly) tested without a VM in the mix.  Even better, most of the infrastructure for such testing could be isolated in network namespaces and cleanly built up and torn down.  This would allow tests to run with minimal risk of test artifacts building up - ideal for enabling a developer to run the tests early and often in their dev environment.
>
> Currently, if testing exists for the functionality I'm talking about, it is either at the unit level (with system interaction mocked out), or at the integration/scenario level (with VM's) via Tempest.  Neither approach is appropriate for the kind of functional testing we need.  To that end, I'd like to propose that we add a functional testing path to Quantum - quantum.tests.functional - and that tests under that path use neither mocks nor VM's.
>
> To be clear, this effort would in no way replace scenario and api testing in Tempest.  We need that too.  But if we are to continue to iterate rapidly while limiting regressions, we need to minimize the overhead of creating, running, and maintaining our tests.  With this in mind, I'd like to see us write functional tests at as low a level as possible.
>
> Thoughts?
>
>
> m.
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list