# Pastebin ByMGX5r3 neutron_lbaas.tests.unit.db.loadbalancer.test_proxy_plugin.LbaasListenerTests.test_create_listener_loadbalancer_id_does_not_exist --------------------------------------------------------------------------------------------------------------------------------- Captured pythonlogging: ~~~~~~~~~~~~~~~~~~~~~~~ ERROR [neutron.api.extensions] Extension path 'neutron/tests/unit/extensions' doesn't exist! Captured traceback: ~~~~~~~~~~~~~~~~~~~ Traceback (most recent call last): File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/resource.py", line 79, in resource result = method(request=request, **args) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/base.py", line 436, in create return self._create(request, body, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/db/api.py", line 93, in wrapped setattr(e, '_RETRY_EXCEEDED', True) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/six.py", line 686, in reraise raise value File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/db/api.py", line 89, in wrapped return f(*args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 151, in wrapper ectxt.value = e.inner_exc File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/six.py", line 686, in reraise raise value File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py", line 139, in wrapper return f(*args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/db/api.py", line 129, in wrapped traceback.format_exc()) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/six.py", line 686, in reraise raise value File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/db/api.py", line 124, in wrapped return f(*dup_args, **dup_kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/base.py", line 549, in _create obj = do_create(body) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/base.py", line 531, in do_create request.context, reservation.reservation_id) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 220, in __exit__ self.force_reraise() File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py", line 196, in force_reraise six.reraise(self.type_, self.value, self.tb) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/six.py", line 686, in reraise raise value File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/base.py", line 524, in do_create return obj_creator(request.context, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/neutron_lbaas/services/loadbalancer/proxy_plugin.py", line 236, in create_listener return self._create_resource(LISTENER, context, listener) File "/Users/germ0640/Project/neutron-lbaas/neutron_lbaas/services/loadbalancer/proxy_plugin.py", line 175, in _create_resource context.auth_token, {resource_: r}) File "/Users/germ0640/Project/neutron-lbaas/neutron_lbaas/services/loadbalancer/proxy_plugin.py", line 132, in request raise e neutron_lib.exceptions.NotFound: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/tests/base.py", line 116, in func return f(self, *args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/requests_mock/mocker.py", line 219, in inner return func(*args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/neutron_lbaas/tests/unit/db/loadbalancer/test_proxy_plugin.py", line 402, in test_create_listener_loadbalancer_id_does_not_exist expected_res_status=str(404)) File "/Users/germ0640/Project/neutron-lbaas/neutron_lbaas/tests/unit/db/loadbalancer/util.py", line 141, in _create_listener listener_res = listener_req.get_response(self.ext_api) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/request.py", line 1299, in send application, catch_exc_info=False) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/request.py", line 1263, in call_application app_iter = application(self.environ, start_response) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/dec.py", line 144, in __call__ return resp(environ, start_response) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/routes/middleware.py", line 141, in __call__ response = self.app(environ, start_response) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/dec.py", line 144, in __call__ return resp(environ, start_response) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/dec.py", line 130, in __call__ resp = self.call_func(req, *args, **self.kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/webob/dec.py", line 195, in call_func return self.func(req, *args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/v2/resource.py", line 82, in resource language) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/api/api_common.py", line 383, in convert_exception_to_http_exc {'NeutronError': get_exception_data(e)}) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/wsgi.py", line 299, in serialize return self.dispatch(data, action=action) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/wsgi.py", line 289, in dispatch return action_method(*args, **kwargs) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/wsgi.py", line 311, in default return encode_body(jsonutils.dumps(data, default=sanitizer)) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/lib/python3.5/site-packages/oslo_serialization/jsonutils.py", line 190, in dumps return json.dumps(obj, default=default, **kwargs) File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py", line 237, in dumps **kw).encode(obj) File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/encoder.py", line 198, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/encoder.py", line 256, in iterencode return _iterencode(o, 0) File "/Users/germ0640/Project/neutron-lbaas/.tox/py35/src/neutron/neutron/wsgi.py", line 310, in sanitizer return six.text_type(obj) TypeError: __str__ returned non-string (type bytes)