yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #54977
[Bug 1612186] [NEW] failed to create flavor router
Public bug reported:
[gongysh@fedora23 devstack]$ neutron router-create --flavor-id=5c4016b6-c5ef-4b70-891d-741d376fa96f testrouter2
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-a1da952c-e4f6-4b09-883d-12a894f6a8d1']
the exception on log is:
on.services.l3_router.service_providers.driver_controller.DriverController._set_router_provider router, precommit_create
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager Traceback (most recent call last):
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/callbacks/manager.py", line 148, in _notify_loop
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager callback(resource, event, trigger, **kwargs)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 81, in _set_router_provider
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager drv = self._get_provider_for_create(context, router)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 160, in _get_provider_for_create
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager return self._get_l3_driver_by_flavor(context, router['flavor_id'])
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 164, in _get_l3_driver_by_flavor
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager flavor = self._flavor_plugin.get_flavor(context, flavor_id)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 68, in _flavor_plugin
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager constants.FLAVORS]
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager AttributeError: can't set attribute
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource [req-a1da952c-e4f6-4b09-883d-12a894f6a8d1 e5fd88d4cebf44baa9547e45d17248cd 3b9307233b4844c0850bd6625ab8f0e3 - - -] create failed: No details.
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 397, in create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 74, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource traceback.format_exc())
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 69, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 510, in _create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource obj = do_create(body)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 492, in do_create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource request.context, reservation.reservation_id)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 485, in do_create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 472, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self).create_router(context, router)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 1727, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource router)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 272, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource transaction=False)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/common_db_mixin.py", line 66, in safe_creation
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource obj = create_fn()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_dvr_db.py", line 78, in _create_router_db
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource context, router, tenant_id)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 253, in _create_router_db
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource router_id=router['id'], router_db=router_db)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/callbacks/registry.py", line 44, in notify
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource _get_callback_manager().notify(resource, event, trigger, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 89, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource raise db_exc.RetryRequest(e)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 84, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/callbacks/manager.py", line 130, in notify
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource raise exceptions.CallbackFailure(errors=errors)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource CallbackFailure: Callback neutron.services.l3_router.service_providers.driver_controller.DriverController._set_router_provider failed with "can't set attribute"
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource
solution:
https://github.com/openstack/neutron/blob/master/neutron/services/l3_router/service_providers/driver_controller.py#L67
it should be: self._flavor_plugin_ref
** Affects: neutron
Importance: Undecided
Assignee: yong sheng gong (gongysh)
Status: In Progress
** Changed in: neutron
Assignee: (unassigned) => yong sheng gong (gongysh)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1612186
Title:
failed to create flavor router
Status in neutron:
In Progress
Bug description:
[gongysh@fedora23 devstack]$ neutron router-create --flavor-id=5c4016b6-c5ef-4b70-891d-741d376fa96f testrouter2
Request Failed: internal server error while processing your request.
Neutron server returns request_ids: ['req-a1da952c-e4f6-4b09-883d-12a894f6a8d1']
the exception on log is:
on.services.l3_router.service_providers.driver_controller.DriverController._set_router_provider router, precommit_create
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager Traceback (most recent call last):
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/callbacks/manager.py", line 148, in _notify_loop
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager callback(resource, event, trigger, **kwargs)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 81, in _set_router_provider
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager drv = self._get_provider_for_create(context, router)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 160, in _get_provider_for_create
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager return self._get_l3_driver_by_flavor(context, router['flavor_id'])
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 164, in _get_l3_driver_by_flavor
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager flavor = self._flavor_plugin.get_flavor(context, flavor_id)
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager File "/mnt/data3/opt/stack/neutron/neutron/services/l3_router/service_providers/driver_controller.py", line 68, in _flavor_plugin
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager constants.FLAVORS]
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager AttributeError: can't set attribute
2016-08-11 18:48:34.282 2901 ERROR neutron.callbacks.manager
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource [req-a1da952c-e4f6-4b09-883d-12a894f6a8d1 e5fd88d4cebf44baa9547e45d17248cd 3b9307233b4844c0850bd6625ab8f0e3 - - -] create failed: No details.
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource Traceback (most recent call last):
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/resource.py", line 79, in resource
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource result = method(request=request, **args)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 397, in create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return self._create(request, body, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 151, in wrapper
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource ectxt.value = e.inner_exc
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 139, in wrapper
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 74, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource traceback.format_exc())
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 69, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 510, in _create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource obj = do_create(body)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 492, in do_create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource request.context, reservation.reservation_id)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/api/v2/base.py", line 485, in do_create
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return obj_creator(request.context, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_hamode_db.py", line 472, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self).create_router(context, router)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 1727, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource router)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 272, in create_router
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource transaction=False)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/common_db_mixin.py", line 66, in safe_creation
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource obj = create_fn()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_dvr_db.py", line 78, in _create_router_db
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource context, router, tenant_id)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/l3_db.py", line 253, in _create_router_db
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource router_id=router['id'], router_db=router_db)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/callbacks/registry.py", line 44, in notify
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource _get_callback_manager().notify(resource, event, trigger, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 89, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource raise db_exc.RetryRequest(e)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource self.force_reraise()
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource six.reraise(self.type_, self.value, self.tb)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/db/api.py", line 84, in wrapped
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource return f(*args, **kwargs)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource File "/mnt/data3/opt/stack/neutron/neutron/callbacks/manager.py", line 130, in notify
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource raise exceptions.CallbackFailure(errors=errors)
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource CallbackFailure: Callback neutron.services.l3_router.service_providers.driver_controller.DriverController._set_router_provider failed with "can't set attribute"
2016-08-11 18:48:34.300 2901 ERROR neutron.api.v2.resource
solution:
https://github.com/openstack/neutron/blob/master/neutron/services/l3_router/service_providers/driver_controller.py#L67
it should be: self._flavor_plugin_ref
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1612186/+subscriptions
Follow ups