← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1699496] [NEW] during get_auto_allocated_topology no extension attributes are send during router-create

 

Public bug reported:

At
https://github.com/openstack/neutron/blob/master/neutron/services/auto_allocate/db.py#L307:

**********************************************************************
router_args = {
    'name': 'auto_allocated_router',
    l3.EXTERNAL_GW_INFO: {'network_id': default_external_network},
    'tenant_id': tenant_id,
    'admin_state_up': True
}
router = None
attached_subnets = []
try:
    router = self.l3_plugin.create_router(
        context, {'router': router_args})
**********************************************************************

The router_args send to the l3 plugin are missing extension attributes if router extensions exist. 
The fix is to add these before calling .create_router:

**********************************************************************
from neutron.plugins.common import utils as plugin_utils

router_args = plugin_utils._fixup_res_dict(context,
                                           'routers',
                                           router_args)
router = self.l3_plugin.create_router(
    context, {'router': router_args})
**********************************************************************

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  during get_auto_allocated_topology no extension attributes are send
  during router-create

Status in neutron:
  New

Bug description:
  At
  https://github.com/openstack/neutron/blob/master/neutron/services/auto_allocate/db.py#L307:

  **********************************************************************
  router_args = {
      'name': 'auto_allocated_router',
      l3.EXTERNAL_GW_INFO: {'network_id': default_external_network},
      'tenant_id': tenant_id,
      'admin_state_up': True
  }
  router = None
  attached_subnets = []
  try:
      router = self.l3_plugin.create_router(
          context, {'router': router_args})
  **********************************************************************

  The router_args send to the l3 plugin are missing extension attributes if router extensions exist. 
  The fix is to add these before calling .create_router:

  **********************************************************************
  from neutron.plugins.common import utils as plugin_utils

  router_args = plugin_utils._fixup_res_dict(context,
                                             'routers',
                                             router_args)
  router = self.l3_plugin.create_router(
      context, {'router': router_args})
  **********************************************************************

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