← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1230083] Re: OVS sg_rpc test does not load OVS plugin

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1230083

Title:
  OVS sg_rpc test does not load OVS plugin

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  When I ran

      OS_DEBUG=1 python setup.py testr --testr-
  args='neutron.tests.unit.openvswitch.test_ovs_security_group'

  I got the following result in testrepository log:
  http://paste.openstack.org/show/47468/

  According to the log,
  neutron.tests.unit.test_extension_security_group.SecurityGroupTestPlugin
  is loaded instead of OVS plugin. This means OVS plugin is not well
  tested and DB plugin with security group is tested again.

  This comes from the behavior of Python multiple inheritance.
  If a class (C1) inherits multiple classes (P1, P2) which have a common parent class (GP),
  for example, C1.setUp() calls super(), P1.setUp is called first, then P2.setUp is called and finally GP.setUp is called.
  The behavior is tricky and such usage should be avoided.

  In Neutron tests multiple inheritance is used in many places.
  I am afraid OVS plugin security group rcp test case is just one of them.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1230083/+subscriptions