← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220931] Re: nvp test_routers test suite fail due to KeyError 'distributed'

 

** Changed in: neutron
       Status: Fix Committed => 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/1220931

Title:
  nvp test_routers test suite fail due to KeyError 'distributed'

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  We use nvp 2.2, python 2.6, Oracle Linux 6.3, if it matters.

  The tempest fail when executing any of 3 tests defined in test_routers suite.
    1. test_add_remove_router_interface_with_port_id
    2. test_add_remove_router_interface_with_subnet_id
    3. test_create_show_list_update_delete_router

   The tempest fail with following error:
   Details: {"NeutronError": "Request Failed: internal server error while processing your request."}

      The neutron.log says:
      2013-09-03 18:45:43,004 (neutron.api.v2.resource): ERROR resource resource create failed
      Traceback (most recent call last):
          File ".../python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
              result = method(request=request, **args)
          File ".../python2.6/site-packages/neutron/api/v2/base.py", line 405, in create
              obj = obj_creator(request.context, **kwargs)
          File ".../python2.6/site-packages/neutron/plugins/nicira/NeutronPlugin.py", line 1641, in create_router
              r['distributed'] = lrouter['distributed']
          KeyError: 'distributed'

  We have not defined default_router_type in our config files. I'd
  presume, it use centralized router type, by default. In such case,
  possibly the lrouter doesn't have 'distribtued' key defined. We should
  possibly check if key exist, before accessing it.

  OTOH, if it's not supposed to work with nvp 2.2, let me know a
  workaround to fix tempest execute these test cases.

  In case you need more info, let me know.

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