← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1543012] Re: Routres: attaching a router to a external network without a subnet leads to exceptions

 

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

commit 31aed09c1b4540b3f9ab26473a1b39ea1d144698
Author: Gary Kotton <gkotton@xxxxxxxxxx>
Date:   Mon Feb 8 00:03:51 2016 -0800

    L3: enable plugin to decide if subnet is mandatory
    
    Commit 07077bebb69da29994257d061d3a8d7ea9598c3d removed
    enforcing that a subnet should be defined on a network. In
    the case of IPv6 this is cool, but for V4 it is problematic.
    
    The patch adds in a callback that enables the plugin to
    determine validation policy.
    
    The callback will be invoked prior to creating the gateway
    port.
    
    Closes-bug: #1543012
    
    Change-Id: Idb7eeb5e0071aa5a2f302fba083504c4582edc1a


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

Title:
  Routres: attaching a router to a external network without a subnet
  leads to exceptions

Status in neutron:
  Fix Released
Status in vmware-nsx:
  In Progress

Bug description:
  2016-01-29 06:45:03.920 18776 ERROR neutron.api.v2.resource [req-c2074082-a6d0-4e5a-8657-41fecb82dacc ] add_router_interface failed
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 83, in resource
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource result = method(request=request, **args)
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 207, in _handle_action
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource return getattr(self._plugin, name)(*arg_list, **kwargs)
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v.py", line 1672, in add_router_interface
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource context, router_id, interface_info)
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_drivers/shared_router_driver.py", line 723, in add_router_interface
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource context, router_id, router_db.admin_state_up)
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_drivers/shared_router_driver.py", line 468, in _bind_router_on_available_edge
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource self._get_available_and_conflicting_ids(context, router_id))
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_drivers/shared_router_driver.py", line 273, in _get_available_and_conflicting_ids
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource gwp['fixed_ips'][0]['subnet_id'])
  2016-01-29 06:45:03.920 18776 TRACE neutron.api.v2.resource IndexError: list index out of range

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


References