← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1642209] [NEW] bad ha mitaka back-port

 

*** This bug is a duplicate of bug 1640701 ***
    https://bugs.launchpad.net/bugs/1640701

Public bug reported:

ever since [1] merged the logs are filled with this:

2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager [req-7d805d97-18c7-42c9-9057-8d5e4695289b admin -] Error during notification for neutron.db.l3_hascheduler_db._notify_l3_agent_ha_port_update port, after_update
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager Traceback (most recent call last):
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/callbacks/manager.py", line 146, in _notify_loop
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     callback(resource, event, trigger, **kwargs)
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/l3_hascheduler_db.py", line 97, in _notify_l3_agent_ha_port_update
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     new_port = core_plugin._make_port_dict(port_db)
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/db_base_plugin_common.py", line 189, in _make_port_dict
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     attributes.PORTS, res, port)
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/common_db_mixin.py", line 290, in _apply_dict_extend_functions
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     func(*args)
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/allowedaddresspairs_db.py", line 78, in _extend_port_dict_allowed_address_pairs
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     address_pair in port_db.allowed_address_pairs]
2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager AttributeError: 'dict' object has no attribute 'allowed_address_pairs'


It looks like we emit mixed types for the 'port' value in AFTER_UPDATE.

** Affects: neutron
     Importance: High
     Assignee: Kevin Benton (kevinbenton)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

** Changed in: neutron
   Importance: Undecided => High

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

Title:
  bad ha mitaka back-port

Status in neutron:
  New

Bug description:
  ever since [1] merged the logs are filled with this:

  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager [req-7d805d97-18c7-42c9-9057-8d5e4695289b admin -] Error during notification for neutron.db.l3_hascheduler_db._notify_l3_agent_ha_port_update port, after_update
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager Traceback (most recent call last):
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/callbacks/manager.py", line 146, in _notify_loop
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     callback(resource, event, trigger, **kwargs)
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/l3_hascheduler_db.py", line 97, in _notify_l3_agent_ha_port_update
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     new_port = core_plugin._make_port_dict(port_db)
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/db_base_plugin_common.py", line 189, in _make_port_dict
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     attributes.PORTS, res, port)
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/common_db_mixin.py", line 290, in _apply_dict_extend_functions
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     func(*args)
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager   File "/opt/stack/new/neutron/neutron/db/allowedaddresspairs_db.py", line 78, in _extend_port_dict_allowed_address_pairs
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager     address_pair in port_db.allowed_address_pairs]
  2016-11-16 08:10:49.035 17068 ERROR neutron.callbacks.manager AttributeError: 'dict' object has no attribute 'allowed_address_pairs'


  It looks like we emit mixed types for the 'port' value in
  AFTER_UPDATE.

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