← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1672564] Re: l2pop raising exceptions when host has no tunneling_ip or agent

 

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

commit c7fb24b3cb9cda1cc78e834a0153d219995ce97f
Author: Kevin Benton <kevin@xxxxxxxxxx>
Date:   Mon Mar 13 15:06:22 2017 -0700

    Check for None in _get_agent_fdb for agent
    
    get_agent_by_host can return None in the l2pop
    driver so we need to check for that case before
    we blindly try to decode configuration values on
    the result.
    
    There are a couple of cases that can lead to this.
    * The deployment can be misconfigured and is missing
      either a tunneling_ip option for the agent on a
      host or is missing an L2 agent with that host_id
      entirely.
    * Multiple mech drivers are in use and a port is being
      deleted from an agentless host.
    
    Related-Bug: #1533013
    Closes-Bug: #1672564
    Change-Id: I1e79f600172edad1e31e8231a0a6a2c55f46804c


** 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/1672564

Title:
  l2pop raising exceptions when host has no tunneling_ip or agent

Status in neutron:
  Fix Released

Bug description:
  Similar to https://bugs.launchpad.net/neutron/+bug/1533013, l2pop can
  puke out exceptions when a port is deleted that has a host
  corresponding to either no agent or an agent without a tunneling_ip.

  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers [req-510f740d-06f7-4021-a966-09cee40214b8 3bf25c0ae26d43b3850b456393c12c60 7
  23aab91248340919c7eb815f20a52cc - - -] Mechanism driver 'l2population' failed in delete_port_postcommit
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers Traceback (most recent call last):
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers   File "/openstack/venvs/neutron-14.0.5/lib/python2.7/site-packages/neutron/
  plugins/ml2/managers.py", line 433, in _call_on_drivers
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers     getattr(driver.obj, method_name)(context)
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers   File "/openstack/venvs/neutron-14.0.5/lib/python2.7/site-packages/neutron/
  plugins/ml2/drivers/l2pop/mech_driver.py", line 74, in delete_port_postcommit
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers     port, agent_host)
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers   File "/openstack/venvs/neutron-14.0.5/lib/python2.7/site-packages/neutron/
  plugins/ml2/drivers/l2pop/mech_driver.py", line 312, in _get_agent_fdb
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers     if not self._validate_segment(segment, port['id'], agent):
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers   File "/openstack/venvs/neutron-14.0.5/lib/python2.7/site-packages/neutron/
  plugins/ml2/drivers/l2pop/mech_driver.py", line 190, in _validate_segment
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers     network_types = l2pop_db.get_agent_l2pop_network_types(agent)
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers   File "/openstack/venvs/neutron-14.0.5/lib/python2.7/site-packages/neutron/
  plugins/ml2/drivers/l2pop/db.py", line 52, in get_agent_l2pop_network_types
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers     configuration = jsonutils.loads(agent.configurations)
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers AttributeError: 'NoneType' object has no attribute 'configurations'
  2017-03-09 01:34:17.432 42625 ERROR neutron.plugins.ml2.managers
  2017-03-09 01:34:17.433 42625 ERROR neutron.plugins.ml2.plugin [req-510f740d-06f7-4021-a966-09cee40214b8 3bf25c0ae26d43b3850b456393c12c60 723
  aab91248340919c7eb815f20a52cc - - -] mechanism_manager.delete_port_postcommit failed for port e0c420ee-dd08-4aa8-9743-e1ae18638551
  2017-03-09 01:34:17.455 42625 INFO neutron.wsgi [req-510f740d-06f7-4021-a966-09cee40214b8 3bf25c0ae26d43b3850b456393c12c60 723aab91248340919c7eb815f20a52cc - - -] 10.146.200.46,10 tel:10.146.200.46,10 .146.200.9 - - [09/Mar/2017 01:34:17] "DELETE /v2.0/ports/e0c420ee-dd08-4aa8-9743-e1ae18638551.json HTTP/1.1" 204 168 0.727523
  ```

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


References