← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1404823] [NEW] router-interface-add port succeed but does not add corresponding flows

 

Public bug reported:

neutron router-interface-add port succeed but does not add corresponding flows, operation  defined as follow:
dvr-controller:/etc/init.d # neutron port-create db8431b9-4e9e-48a1-96c7-deeca52217de --name port-test
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          |                                                                                     |
| fixed_ips             | {"subnet_id": "089b9033-1de1-486c-a4ca-b2b1d0e979d9", "ip_address": "172.16.20.87"} |
| id                    | 59f2e155-5076-4ac3-a4e0-2cf8161c0f80                                                |
| mac_address           | fa:16:3e:23:95:bf                                                                   |
| name                  | port-test                                                                           |
| network_id            | db8431b9-4e9e-48a1-96c7-deeca52217de                                                |
| security_groups       | dadc55f6-f2a8-42ea-b263-5c1e9ca8782f                                                |
| status                | DOWN                                                                                |
| tenant_id             | db1921917d8543b1ba7ff9b1f1df6081                                                    |
+-----------------------+-------------------------------------------------------------------------------------+
dvr-controller:/etc/init.d # neutron router-interface-add dvr port=59f2e155-5076-4ac3-a4e0-2cf8161c0f80
Added interface 59f2e155-5076-4ac3-a4e0-2cf8161c0f80 to router dvr.
 
wrong log:
2014-12-22 03:50:55.302 9595 ERROR neutron.db.dvr_mac_db [req-7932fee8-651c-4496-82c3-dec846e23e5d None] Could not retrieve gateway port for subnet {'name': u'vxlan-subnet2', 'enable_dhcp': True, 'network_id': u'db8431b9-4e9e-48a1-96c7-deeca52217de', 'tenant_id': u'db1921917d8543b1ba7ff9b1f1df6081', 'dns_nameservers': [], 'gateway_ip': u'172.16.20.1', 'ipv6_ra_mode': None, 'allocation_pools': [{'start': u'172.16.20.2', 'end': u'172.16.20.250'}], 'host_routes': [], 'shared': False, 'ip_version': 4L, 'ipv6_address_mode': None, 'cidr': u'172.16.20.0/24', 'id': u'089b9033-1de1-486c-a4ca-b2b1d0e979d9'}
 
We can find that if we add port to router as gw interface, it can not retrieve gateway port because filter by the gateway ip.

** Affects: neutron
     Importance: Undecided
     Assignee: Xurong Yang (idopra)
         Status: New


** Tags: dvr

** Changed in: neutron
     Assignee: (unassigned) => Xurong Yang (idopra)

** Tags added: dvr

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

Title:
  router-interface-add port succeed but does not add corresponding flows

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  neutron router-interface-add port succeed but does not add corresponding flows, operation  defined as follow:
  dvr-controller:/etc/init.d # neutron port-create db8431b9-4e9e-48a1-96c7-deeca52217de --name port-test
  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          |                                                                                     |
  | fixed_ips             | {"subnet_id": "089b9033-1de1-486c-a4ca-b2b1d0e979d9", "ip_address": "172.16.20.87"} |
  | id                    | 59f2e155-5076-4ac3-a4e0-2cf8161c0f80                                                |
  | mac_address           | fa:16:3e:23:95:bf                                                                   |
  | name                  | port-test                                                                           |
  | network_id            | db8431b9-4e9e-48a1-96c7-deeca52217de                                                |
  | security_groups       | dadc55f6-f2a8-42ea-b263-5c1e9ca8782f                                                |
  | status                | DOWN                                                                                |
  | tenant_id             | db1921917d8543b1ba7ff9b1f1df6081                                                    |
  +-----------------------+-------------------------------------------------------------------------------------+
  dvr-controller:/etc/init.d # neutron router-interface-add dvr port=59f2e155-5076-4ac3-a4e0-2cf8161c0f80
  Added interface 59f2e155-5076-4ac3-a4e0-2cf8161c0f80 to router dvr.
   
  wrong log:
  2014-12-22 03:50:55.302 9595 ERROR neutron.db.dvr_mac_db [req-7932fee8-651c-4496-82c3-dec846e23e5d None] Could not retrieve gateway port for subnet {'name': u'vxlan-subnet2', 'enable_dhcp': True, 'network_id': u'db8431b9-4e9e-48a1-96c7-deeca52217de', 'tenant_id': u'db1921917d8543b1ba7ff9b1f1df6081', 'dns_nameservers': [], 'gateway_ip': u'172.16.20.1', 'ipv6_ra_mode': None, 'allocation_pools': [{'start': u'172.16.20.2', 'end': u'172.16.20.250'}], 'host_routes': [], 'shared': False, 'ip_version': 4L, 'ipv6_address_mode': None, 'cidr': u'172.16.20.0/24', 'id': u'089b9033-1de1-486c-a4ca-b2b1d0e979d9'}
   
  We can find that if we add port to router as gw interface, it can not retrieve gateway port because filter by the gateway ip.

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


Follow ups

References