← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1570596] [NEW] Neutron-LBaaS v2: 500 error on creating 2 listeners simultaneously

 

Public bug reported:

1. Create LB
2. Create 2 Listener's simultaneously

Result:  500 thrown
Expected: 409 conflict with an informative error message


Log: http://paste.openstack.org/show/494129/

2016-04-14 20:50:00,177 10041 INFO     [tempest.lib.common.rest_client] Request (ListenersTestAdmin:test_create_two_listener_simultaneous): 201 POST http://127.0.0.1:9696/v2.0/lbaas/listeners 0.312s
    2016-04-14 20:50:00,177 10041 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
            Body: {"listener": {"tenant_id": "deffb4d7c0584e89a8ec99551565713c", "loadbalancer_id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "protocol": "HTTP", "protocol_port": 9080}}
        Response - Headers: {'content-type': 'application/json', 'x-openstack-request-id': 'req-b9ec3d6d-6159-4102-bb28-874e7b3943bb', 'date': 'Thu, 14 Apr 2016 20:50:00 GMT', 'content-length': '384', 'status': '201', 'connection': 'close'}
            Body: {"listener": {"protocol_port": 9080, "protocol": "HTTP", "description": "", "default_tls_container_ref": null, "admin_state_up": true, "loadbalancers": [{"id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271"}], "tenant_id": "deffb4d7c0584e89a8ec99551565713c", "sni_container_refs": [], "connection_limit": -1, "default_pool_id": null, "id": "6b9dfdc4-2299-45a7-a832-e6ce7531bc69", "name": ""}}
    2016-04-14 20:50:00,211 10041 INFO     [tempest.lib.common.rest_client] Request (ListenersTestAdmin:test_create_two_listener_simultaneous): 500 POST http://127.0.0.1:9696/v2.0/lbaas/listeners 0.033s
    2016-04-14 20:50:00,212 10041 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
            Body: {"listener": {"tenant_id": "deffb4d7c0584e89a8ec99551565713c", "loadbalancer_id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "protocol": "HTTP", "protocol_port": 9081}}
        Response - Headers: {'content-type': 'application/json', 'x-openstack-request-id': 'req-5d101dbb-42d4-4a26-86e0-df1dc97067a3', 'date': 'Thu, 14 Apr 2016 20:50:00 GMT', 'content-length': '161', 'status': '500', 'connection': 'close'}
            Body: {"NeutronError": {"message": "Invalid state PENDING_UPDATE of loadbalancer resource 7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "type": "StateInvalid", "detail": ""}}
    2016-04-14 20:50:00,213 10041 INFO     [neutron_lbaas.tests.tempest.v2.api.test_listeners_admin:ListenersTestAdmin] Finished: test_create_two_listener_simultaneous

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: 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/1570596

Title:
  Neutron-LBaaS v2: 500 error on creating 2 listeners simultaneously

Status in neutron:
  New

Bug description:
  1. Create LB
  2. Create 2 Listener's simultaneously

  Result:  500 thrown
  Expected: 409 conflict with an informative error message

  
  Log: http://paste.openstack.org/show/494129/

  2016-04-14 20:50:00,177 10041 INFO     [tempest.lib.common.rest_client] Request (ListenersTestAdmin:test_create_two_listener_simultaneous): 201 POST http://127.0.0.1:9696/v2.0/lbaas/listeners 0.312s
      2016-04-14 20:50:00,177 10041 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
              Body: {"listener": {"tenant_id": "deffb4d7c0584e89a8ec99551565713c", "loadbalancer_id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "protocol": "HTTP", "protocol_port": 9080}}
          Response - Headers: {'content-type': 'application/json', 'x-openstack-request-id': 'req-b9ec3d6d-6159-4102-bb28-874e7b3943bb', 'date': 'Thu, 14 Apr 2016 20:50:00 GMT', 'content-length': '384', 'status': '201', 'connection': 'close'}
              Body: {"listener": {"protocol_port": 9080, "protocol": "HTTP", "description": "", "default_tls_container_ref": null, "admin_state_up": true, "loadbalancers": [{"id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271"}], "tenant_id": "deffb4d7c0584e89a8ec99551565713c", "sni_container_refs": [], "connection_limit": -1, "default_pool_id": null, "id": "6b9dfdc4-2299-45a7-a832-e6ce7531bc69", "name": ""}}
      2016-04-14 20:50:00,211 10041 INFO     [tempest.lib.common.rest_client] Request (ListenersTestAdmin:test_create_two_listener_simultaneous): 500 POST http://127.0.0.1:9696/v2.0/lbaas/listeners 0.033s
      2016-04-14 20:50:00,212 10041 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
              Body: {"listener": {"tenant_id": "deffb4d7c0584e89a8ec99551565713c", "loadbalancer_id": "7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "protocol": "HTTP", "protocol_port": 9081}}
          Response - Headers: {'content-type': 'application/json', 'x-openstack-request-id': 'req-5d101dbb-42d4-4a26-86e0-df1dc97067a3', 'date': 'Thu, 14 Apr 2016 20:50:00 GMT', 'content-length': '161', 'status': '500', 'connection': 'close'}
              Body: {"NeutronError": {"message": "Invalid state PENDING_UPDATE of loadbalancer resource 7e0cbab9-e7d3-4ddf-86a5-86362b9fc271", "type": "StateInvalid", "detail": ""}}
      2016-04-14 20:50:00,213 10041 INFO     [neutron_lbaas.tests.tempest.v2.api.test_listeners_admin:ListenersTestAdmin] Finished: test_create_two_listener_simultaneous

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


Follow ups