ML2: L2POP delete unbond port get AttributeError

Bug #1534516 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
In Progress
Undecided
LIU Yulong

Bug Description

Env: devstack
neutron master branch source code install

VXLAN with l2pop

yulong@controller:/opt/openstack/neutron$ neutron port-create admin
Created a new port:
+-----------------------+--------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+--------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| dns_assignment | {"hostname": "host-192-168-10-9", "ip_address": "192.168.10.9", "fqdn": "host-192-168-10-9.openstacklocal."} |
| dns_name | |
| fixed_ips | {"subnet_id": "eb4ae4dd-9ea3-4dbd-bf39-1cedf98aaeb2", "ip_address": "192.168.10.9"} |
| id | 1aa78747-7490-4f36-8dcf-e0389d7b86f9 |
| mac_address | fa:16:3e:82:c9:ba |
| name | |
| network_id | 5cc94919-c25d-413b-ae72-ad7a45530aef |
| port_security_enabled | True |
| security_groups | 1b1030b6-6c60-4429-866e-7693e133a0ce |
| status | DOWN |
| tenant_id | 91a6fdb6f9064fdda314579832a7ccbc |
+-----------------------+--------------------------------------------------------------------------------------------------------------+
yulong@controller:/opt/openstack/neutron$ neutron port-delete 1aa78747-7490-4f36-8dcf-e0389d7b86f9
Deleted port: 1aa78747-7490-4f36-8dcf-e0389d7b86f9

Exception LOG:

2016-01-15 17:16:41.028 ERROR neutron.plugins.ml2.managers [req-0aa22238-347d-4c9d-8a51-03ce6eaa1152 admin 91a6fdb6f9064fdda314579832a7ccbc] Mechanism driver 'l2population' failed in delete_port_postcommit
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers Traceback (most recent call last):
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers File "/opt/openstack/neutron/neutron/plugins/ml2/managers.py", line 401, in _call_on_drivers
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers getattr(driver.obj, method_name)(context)
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers File "/opt/openstack/neutron/neutron/plugins/ml2/drivers/l2pop/mech_driver.py", line 53, in delete_port_postcommit
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers fdb_entries = self._get_agent_fdb(context, port, agent_host)
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers File "/opt/openstack/neutron/neutron/plugins/ml2/drivers/l2pop/mech_driver.py", line 259, in _get_agent_fdb
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers agent_ip = self.get_agent_ip(agent)
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers File "/opt/openstack/neutron/neutron/plugins/ml2/drivers/l2pop/db.py", line 33, in get_agent_ip
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers configuration = jsonutils.loads(agent.configurations)
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers AttributeError: 'NoneType' object has no attribute 'configurations'
2016-01-15 17:16:41.028 TRACE neutron.plugins.ml2.managers
2016-01-15 17:16:41.029 ERROR neutron.plugins.ml2.plugin [req-0aa22238-347d-4c9d-8a51-03ce6eaa1152 admin 91a6fdb6f9064fdda314579832a7ccbc] mechanism_manager.delete_port_postcommit failed for port 1aa78747-7490-4f36-8dcf-e0389d7b86f9

LIU Yulong (dragon889)
Changed in neutron:
assignee: nobody → LIU Yulong (dragon889)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/268050

Changed in neutron:
status: New → In Progress
Revision history for this message
Hong Hui Xiao (xiaohhui) wrote :

I think this bug is duplicated with bug 1533013

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by LIU Yulong (<email address hidden>) on branch: master
Review: https://review.openstack.org/268050
Reason: patch https://review.openstack.org/#/c/266114/ handle the AttributeError , and the function remove_fdb_entries already handle the empty fdb_entries.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.