← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1618343] Re: UT failed for PortsV2 case test_update_port_status_notify_port_event_after_update

 

Reviewed:  https://review.openstack.org/362803
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=ccc20ddcf21da30436f578583aee176d871ebb65
Submitter: Jenkins
Branch:    master

commit ccc20ddcf21da30436f578583aee176d871ebb65
Author: Numan Siddique <nusiddiq@xxxxxxxxxx>
Date:   Tue Aug 30 17:16:55 2016 +0530

    Use plugin obj from neutron manager in the TestMl2PortsV2 unit test
    
    Commit Iedad1ccae45005efaaa74d5571df04197757d07a is recreating
    the plugin for the test
    TestMl2PortsV2.test_update_port_status_notify_port_event_after_update.
    This is failing for the networking-ovn ML2 plugin.
    
    This patch uses the manager.NeutronManager to get the plugin object.
    
    Change-Id: Id48b621eeb9ded5d25c8cbbabbff32d821bd6181
    Closes-bug: #1618343


** Changed in: neutron
       Status: In Progress => 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/1618343

Title:
  UT failed for PortsV2 case
  test_update_port_status_notify_port_event_after_update

Status in networking-ovn:
  Invalid
Status in neutron:
  Fix Released

Bug description:
  http://logs.openstack.org/09/356409/8/check/gate-networking-ovn-python27-ubuntu-xenial/8eee3a5/testr_results.html.gz
  http://logs.openstack.org/01/358501/2/check/gate-networking-ovn-python27-ubuntu-xenial/898e607/testr_results.html.gz
  http://logs.openstack.org/94/362494/1/check/gate-networking-ovn-python27-ubuntu-xenial/658a521/testr_results.html.gz

  the above UT reports failed with
  networking_ovn.tests.unit.ml2.test_mech_driver.TestOVNMechansimDriverPortsV2.test_update_port_status_notify_port_event_after_update.

  Two errors with AttributeError: 'NoneType' object has no attribute 'transaction' on self._nb_ovn in mech_driver:
     ERROR [neutron.callbacks.manager] Error during notification for networking_ovn.ml2.mech_driver.OVNMechanismDriver._process_sg_notification-988068 security_group, after_create
  Traceback (most recent call last):
    File "/tmp/openstack/neutron/neutron/callbacks/manager.py", line 148, in _notify_loop
      callback(resource, event, trigger, **kwargs)
    File "networking_ovn/ml2/mech_driver.py", line 197, in _process_sg_notification
      with self._nb_ovn.transaction(check_error=True) as txn:
  AttributeError: 'NoneType' object has no attribute 'transaction'

     ERROR [neutron.plugins.ml2.managers] Mechanism driver 'ovn' failed in update_port_postcommit
  Traceback (most recent call last):
    File "/tmp/openstack/neutron/neutron/plugins/ml2/managers.py", line 433, in _call_on_drivers
      getattr(driver.obj, method_name)(context)
    File "networking_ovn/ml2/mech_driver.py", line 680, in update_port_postcommit
      self.update_port(port, original_port)
    File "networking_ovn/ml2/mech_driver.py", line 684, in update_port
      original_port=original_port)
    File "networking_ovn/ml2/mech_driver.py", line 593, in get_ovn_port_options
      port, original_port=original_port)
    File "networking_ovn/ml2/mech_driver.py", line 820, in _get_port_dhcpv4_options
      subnet_dhcp_options = self._nb_ovn.get_subnet_dhcp_options(
  AttributeError: 'NoneType' object has no attribute 'get_subnet_dhcp_options'
  }}}

  Patches like https://review.openstack.org/#/c/326964 (http://logs.openstack.org/64/326964/7/check/gate-networking-ovn-python27-ubuntu-xenial/a5800ae/testr_results.html.gz), they passed UT, for 
  they didn't run test_update_port_status_notify_port_event_after_update, they have 125 test cases in networking_ovn.tests.unit.ml2.test_mech_driver.TestOVNMechansimDriverPortsV2.
  But the failed 3 ones have 126 test cases.

To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-ovn/+bug/1618343/+subscriptions