Public bug reported:

1.  Create a lb.
2.  Create a listener.
3.  Update the listener with a large connection limit, e.g. 9999999999

Result: 500 from the server is returned
Expected: Should return with 400 HTTPBadRequest similar to when specifying a 
connection limit less than -1
(ex: "NeutronError": {"message": "Invalid input for connection_limit. Reason: 
'-100' is not a valid value, because it cannot be less than -1.", "type": 
"HTTPBadRequest", "detail": ""}})


Logs:

neutron_lbaas.tests.tempest.v2.api.test_listeners_admin.ListenersTestAdmin.test_update_listener_connection_limit[smoke]
-----------------------------------------------------------------------------------------------------------------------

Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2016-04-14 20:20:24,757 32411 INFO     [tempest.lib.common.rest_client] 
Request (ListenersTestAdmin:test_update_listener_connection_limit): 500 PUT 
http://127.0.0.1:9696/v2.0/lbaas/listeners/2676ca98-1ce0-41cc-a23d-ce5d6f96f991 
0.632s
    2016-04-14 20:20:24,758 32411 DEBUG    [tempest.lib.common.rest_client] 
Request - Headers: {'Content-Type': 'application/json', 'Accept': 
'application/json', 'X-Auth-Token': '<omitted>'}
            Body: {"listener": {"connection_limit": 9999999999}}
        Response - Headers: {'date': 'Thu, 14 Apr 2016 20:20:24 GMT', 
'content-type': 'application/json', 'x-openstack-request-id': 
'req-5e0a6948-0242-41ab-9ef4-71ab0866841f', 'status': '500', 'connection': 
'close', 'content-length': '150'}
            Body: {"NeutronError": {"message": "Request Failed: internal server 
error while processing your request.", "type": "HTTPInternalServerError", 
"detail": ""}}
    2016-04-14 20:20:24,760 32411 INFO     
[neutron_lbaas.tests.tempest.v2.api.test_listeners_admin:ListenersTestAdmin] 
Finished: test_update_listener_connection_limit


Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron_lbaas/tests/tempest/v2/api/test_listeners_admin.py", line 
170, in test_update_listener_connection_limit
        self._check_status_tree(load_balancer_id=self.load_balancer_id,
      File "neutron_lbaas/tests/tempest/v2/api/base.py", line 228, in 
_update_listener
        listener_id, **listener_kwargs)
      File "neutron_lbaas/tests/tempest/v2/clients/listeners_client.py", line 
57, in update_listener
        .format(listener_id), put_body)
      File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 322, in put
        return self.request('PUT', url, extra_headers, headers, body)
      File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 642, in request
        resp, resp_body)
      File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 761, in _error_checker
        message=message)
    tempest.lib.exceptions.ServerFault: Got server fault
    Details: Request Failed: internal server error while processing your 
request.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: neutron-lbaasv2

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

Title:
  Neutron-LBaaS v2: Specifying a large connection limit throws 500 on
  update listener

Status in neutron:
  New

Bug description:
  1.  Create a lb.
  2.  Create a listener.
  3.  Update the listener with a large connection limit, e.g. 9999999999

  Result: 500 from the server is returned
  Expected: Should return with 400 HTTPBadRequest similar to when specifying a 
connection limit less than -1
  (ex: "NeutronError": {"message": "Invalid input for connection_limit. Reason: 
'-100' is not a valid value, because it cannot be less than -1.", "type": 
"HTTPBadRequest", "detail": ""}})

  
  Logs:

  
neutron_lbaas.tests.tempest.v2.api.test_listeners_admin.ListenersTestAdmin.test_update_listener_connection_limit[smoke]
  
-----------------------------------------------------------------------------------------------------------------------

  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2016-04-14 20:20:24,757 32411 INFO     [tempest.lib.common.rest_client] 
Request (ListenersTestAdmin:test_update_listener_connection_limit): 500 PUT 
http://127.0.0.1:9696/v2.0/lbaas/listeners/2676ca98-1ce0-41cc-a23d-ce5d6f96f991 
0.632s
      2016-04-14 20:20:24,758 32411 DEBUG    [tempest.lib.common.rest_client] 
Request - Headers: {'Content-Type': 'application/json', 'Accept': 
'application/json', 'X-Auth-Token': '<omitted>'}
              Body: {"listener": {"connection_limit": 9999999999}}
          Response - Headers: {'date': 'Thu, 14 Apr 2016 20:20:24 GMT', 
'content-type': 'application/json', 'x-openstack-request-id': 
'req-5e0a6948-0242-41ab-9ef4-71ab0866841f', 'status': '500', 'connection': 
'close', 'content-length': '150'}
              Body: {"NeutronError": {"message": "Request Failed: internal 
server error while processing your request.", "type": 
"HTTPInternalServerError", "detail": ""}}
      2016-04-14 20:20:24,760 32411 INFO     
[neutron_lbaas.tests.tempest.v2.api.test_listeners_admin:ListenersTestAdmin] 
Finished: test_update_listener_connection_limit


  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "neutron_lbaas/tests/tempest/v2/api/test_listeners_admin.py", line 
170, in test_update_listener_connection_limit
          self._check_status_tree(load_balancer_id=self.load_balancer_id,
        File "neutron_lbaas/tests/tempest/v2/api/base.py", line 228, in 
_update_listener
          listener_id, **listener_kwargs)
        File "neutron_lbaas/tests/tempest/v2/clients/listeners_client.py", line 
57, in update_listener
          .format(listener_id), put_body)
        File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 322, in put
          return self.request('PUT', url, extra_headers, headers, body)
        File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 642, in request
          resp, resp_body)
        File 
"/opt/stack/neutron-lbaas/.tox/apiv2/local/lib/python2.7/site-packages/tempest/lib/common/rest_client.py",
 line 761, in _error_checker
          message=message)
      tempest.lib.exceptions.ServerFault: Got server fault
      Details: Request Failed: internal server error while processing your 
request.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to