← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1534516] [NEW] ML2: L2POP delete unbond port get AttributeError

 

Public bug reported:

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

** Affects: neutron
     Importance: Undecided
     Assignee: LIU Yulong (dragon889)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => LIU Yulong (dragon889)

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

Title:
  ML2: L2POP delete unbond port get AttributeError

Status in neutron:
  New

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

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