← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1346902] Re: update router failure if router was created before DVR support merge

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

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

Title:
  update router failure if router was created before DVR support merge

Status in OpenStack Neutron (virtual network service):
  Expired

Bug description:
  If update a router created before dvr patch, following exception
  occurs, because router['extra_attributes'] is None

  2014-07-22 20:55:11.682 ERROR neutron.api.v2.resource [req-51908a32-4d89-41f6-ae55-c96d77e55e5c admin 17f0aea3b612493b959ca810fafe13e7] update failed
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/resource.py", line 87, in resource
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/api/v2/base.py", line 529, in update
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/extraroute_db.py", line 74, in update_router
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     context, id, router)
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/l3_db.py", line 173, in update_router
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     router_db = self._update_router_db(context, id, r, gw_info)
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/l3_dvr_db.py", line 94, in _update_router_db
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     self._validate_router_migration(router_db, data)
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource   File "/opt/stack/neutron/neutron/db/l3_dvr_db.py", line 71, in _validate_router_migration
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource     if (router_db.extra_attributes.distributed and
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource AttributeError: 'NoneType' object has no attribute 'distributed'
  2014-07-22 20:55:11.682 TRACE neutron.api.v2.resource

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


References