yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #30593
[Bug 1434717] Re: Creating a listener/loadbalancer with name/description field of over 255 characters throws internal server error
*** This bug is a duplicate of bug 1408230 ***
https://bugs.launchpad.net/bugs/1408230
** This bug is no longer a duplicate of bug 1193253
String attributes should limit the length in API
** Changed in: neutron
Assignee: Vikram Hosakote (vhosakot) => (unassigned)
** This bug has been marked a duplicate of bug 1408230
name validate check is necessary for neutron-core
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1434717
Title:
Creating a listener/loadbalancer with name/description field of over
255 characters throws internal server error
Status in OpenStack Neutron (virtual network service):
New
Bug description:
Creating a listener/loadbalancer with name/description field of over 255 characters throws internal server error:
PFB the error logs.
FAIL: neutron_lbaas.tests.tempest.v2.api.test_listeners.ListenersTestJSON.test_create_listener_invalid_name[negative]
----------------------------------------------------------------------
_StringException: pythonlogging:'': {{{
2015-03-19 17:39:25,317 31189 DEBUG [tempest_lib.common.rest_client] Request (ListenersTestJSON:test_create_listener_invalid_name): 500 POST http://10.0.2.15:9696/v2.0/lbaas/listeners 0.108s
Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
Body: {"listener": {"protocol_port": 80, "protocol": "HTTP", "loadbalancer_id": "f4e65b72-6132-41ea-8234-e1af1e37350a", "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}
Response - Headers: {'status': '500', 'content-length': '150', 'connection': 'close', 'date': 'Fri, 20 Mar 2015 00:39:25 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-4fa1c4e3-ea2d-407d-bbae-cf532b0775c9'}
Body: {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}
2015-03-19 17:39:25,318 31189 INFO [neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON] Finished: test_create_listener_invalid_name
}}}
Traceback (most recent call last):
File "/opt/stack/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_listeners.py", line 240, in test_create_listener_invalid_name
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 420, in assertRaises
self.assertThat(our_callable, matcher)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 431, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 481, in _matchHelper
mismatch = matcher.match(matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 412, in match
reraise(*matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 965, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/opt/stack/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/listeners_client.py", line 49, in create_listener
resp, body = self.post('v2.0/lbaas/listeners', post_body)
File "/opt/stack/tempest-lib/tempest_lib/common/rest_client.py", line 169, in post
return self.request('POST', url, extra_headers, headers, body)
File "/opt/stack/tempest/tempest/common/service_client.py", line 83, in request
raise exceptions.ServerFault(ex)
ServerFault: Got server fault
Details: Got server fault
Details: Request Failed: internal server error while processing your request.
-------------------- >> begin captured logging << --------------------
neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON: INFO: Starting: test_create_listener_invalid_name
tempest_lib.common.rest_client: DEBUG: Request (ListenersTestJSON:test_create_listener_invalid_name): 500 POST http://10.0.2.15:9696/v2.0/lbaas/listeners 0.108s
Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
Body: {"listener": {"protocol_port": 80, "protocol": "HTTP", "loadbalancer_id": "f4e65b72-6132-41ea-8234-e1af1e37350a", "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}
Response - Headers: {'status': '500', 'content-length': '150', 'connection': 'close', 'date': 'Fri, 20 Mar 2015 00:39:25 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-4fa1c4e3-ea2d-407d-bbae-cf532b0775c9'}
Body: {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}
neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON: INFO: Finished: test_create_listener_invalid_name
--------------------- >> end captured logging << --------------------
======================================================================
FAIL: neutron_lbaas.tests.tempest.v2.api.test_listeners.ListenersTestJSON.test_create_listener_invalid_description[negative]
----------------------------------------------------------------------
_StringException: pythonlogging:'': {{{
2015-03-19 17:39:24,982 31189 DEBUG [tempest_lib.common.rest_client] Request (ListenersTestJSON:test_create_listener_invalid_description): 500 POST http://10.0.2.15:9696/v2.0/lbaas/listeners 0.107s
Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
Body: {"listener": {"protocol_port": 80, "protocol": "HTTP", "loadbalancer_id": "f4e65b72-6132-41ea-8234-e1af1e37350a", "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}
Response - Headers: {'status': '500', 'content-length': '150', 'connection': 'close', 'date': 'Fri, 20 Mar 2015 00:39:24 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-a5c7344f-3575-41ef-84ba-4faeff74fbf4'}
Body: {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}
2015-03-19 17:39:24,984 31189 INFO [neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON] Finished: test_create_listener_invalid_description
}}}
Traceback (most recent call last):
File "/opt/stack/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_listeners.py", line 259, in test_create_listener_invalid_description
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 420, in assertRaises
self.assertThat(our_callable, matcher)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 431, in assertThat
mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 481, in _matchHelper
mismatch = matcher.match(matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 108, in match
mismatch = self.exception_matcher.match(exc_info)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
mismatch = matcher.match(matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 412, in match
reraise(*matchee)
File "/usr/local/lib/python2.7/dist-packages/testtools/matchers/_exception.py", line 101, in match
result = matchee()
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 965, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/opt/stack/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/listeners_client.py", line 49, in create_listener
resp, body = self.post('v2.0/lbaas/listeners', post_body)
File "/opt/stack/tempest-lib/tempest_lib/common/rest_client.py", line 169, in post
return self.request('POST', url, extra_headers, headers, body)
File "/opt/stack/tempest/tempest/common/service_client.py", line 83, in request
raise exceptions.ServerFault(ex)
ServerFault: Got server fault
Details: Got server fault
Details: Request Failed: internal server error while processing your request.
-------------------- >> begin captured logging << --------------------
neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON: INFO: Starting: test_create_listener_invalid_description
tempest_lib.common.rest_client: DEBUG: Request (ListenersTestJSON:test_create_listener_invalid_description): 500 POST http://10.0.2.15:9696/v2.0/lbaas/listeners 0.107s
Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
Body: {"listener": {"protocol_port": 80, "protocol": "HTTP", "loadbalancer_id": "f4e65b72-6132-41ea-8234-e1af1e37350a", "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}
Response - Headers: {'status': '500', 'content-length': '150', 'connection': 'close', 'date': 'Fri, 20 Mar 2015 00:39:24 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-a5c7344f-3575-41ef-84ba-4faeff74fbf4'}
Body: {"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalServerError", "detail": ""}}
neutron_lbaas.tests.tempest.v2.api.test_listeners:ListenersTestJSON: INFO: Finished: test_create_listener_invalid_description
--------------------- >> end captured logging << ---------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1434717/+subscriptions
References