yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17498
[Bug 1346902] [NEW] update router failure
Public bug reported:
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
** Affects: neutron
Importance: Undecided
Assignee: Zang MingJie (zealot0630)
Status: In Progress
** Description changed:
- If update a router created before dvr patch, following exception occurs
-
+ 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
--
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
Status in OpenStack Neutron (virtual network service):
In Progress
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
Follow ups
References