Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- madhu@kilo-server:/opt/stack/tempest$
- madhu@kilo-server:/opt/stack/tempest$ nosetests -sv ~/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer[gate,smoke] ... ok
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_incorrect_attribute[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_invalid_tenant_id[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_invalid_vip_subnet_id[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_missing_field[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_delete_load_balancer[gate,smoke] ... ERROR
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_get_load_balancer[gate,smoke] ... ok
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_list_load_balancers[gate,smoke] ... ok
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_list_load_balancers_two[gate,smoke] ... ok
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer[gate,smoke] ... ok
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_incorrect_attribute[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_invalid_admin_state_up[gate,smoke] ... FAIL
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_invalid_tenant_id[gate,smoke] ... FAIL
- ERROR
- ======================================================================
- ERROR: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_delete_load_balancer[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:07,607 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_delete_load_balancer): 201 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.765s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236"}}
- Response - Headers: {'status': '201', 'content-length': '421', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-51664869-18fc-42cf-8c33-14d5c121fa87'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "PENDING_CREATE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "OFFLINE", "name": ""}}
- 2015-03-03 19:21:07,678 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_delete_load_balancer): 200 GET http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.070s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '200', 'content-length': '412', 'content-location': 'http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d9e9c6b8-bc74-4cad-915e-f68a395f361c'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "ACTIVE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "ONLINE", "name": ""}}
- 2015-03-03 19:21:07,752 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_delete_load_balancer): 200 GET http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.073s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '200', 'content-length': '412', 'content-location': 'http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-daebf760-28bf-4b7d-b0e1-e959359523ed'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "ACTIVE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "ONLINE", "name": ""}}
- 2015-03-03 19:21:08,066 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_delete_load_balancer): 204 DELETE http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.312s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'date': 'Wed, 04 Mar 2015 03:21:08 GMT', 'status': '204', 'connection': 'close', 'content-length': '0', 'x-openstack-request-id': 'req-9e729ef1-5885-4b52-a400-a32c486090c6'}
- Body:
- 2015-03-03 19:21:08,066 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_delete_load_balancer
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 174, in test_delete_load_balancer
- self.assertRaises(exceptions.NotFound,
- AttributeError: 'module' object has no attribute 'NotFound'
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_delete_load_balancer
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_delete_load_balancer): 201 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.765s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236"}}
- Response - Headers: {'status': '201', 'content-length': '421', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-51664869-18fc-42cf-8c33-14d5c121fa87'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "PENDING_CREATE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "OFFLINE", "name": ""}}
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_delete_load_balancer): 200 GET http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.070s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '200', 'content-length': '412', 'content-location': 'http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-d9e9c6b8-bc74-4cad-915e-f68a395f361c'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "ACTIVE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "ONLINE", "name": ""}}
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_delete_load_balancer): 200 GET http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.073s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '200', 'content-length': '412', 'content-location': 'http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:07 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-daebf760-28bf-4b7d-b0e1-e959359523ed'}
- Body: {"loadbalancer": {"description": "", "admin_state_up": true, "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "provisioning_status": "ACTIVE", "listeners": [], "vip_address": "10.100.0.4", "vip_port_id": "ed414907-3662-4a3b-bf35-69a24ba28e1b", "provider": "haproxy", "vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "id": "f2f350ff-b760-4a15-ba0b-dbc5b5f772a9", "operating_status": "ONLINE", "name": ""}}
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_delete_load_balancer): 204 DELETE http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/f2f350ff-b760-4a15-ba0b-dbc5b5f772a9 0.312s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'date': 'Wed, 04 Mar 2015 03:21:08 GMT', 'status': '204', 'connection': 'close', 'content-length': '0', 'x-openstack-request-id': 'req-9e729ef1-5885-4b52-a400-a32c486090c6'}
- Body:
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_delete_load_balancer
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test suite for <class 'neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON'>
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
- self.tearDown()
- File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 350, in tearDown
- self.teardownContext(ancestor)
- File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 366, in teardownContext
- try_run(context, names)
- File "/usr/lib/python2.7/dist-packages/nose/util.py", line 471, in try_run
- return func()
- File "/opt/stack/tempest/tempest/test.py", line 287, in tearDownClass
- teardown()
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/base.py", line 66, in resource_cleanup
- except exceptions.NotFound:
- AttributeError: 'module' object has no attribute 'NotFound'
- -------------------- >> begin captured logging << --------------------
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:tearDownClass): 404 GET http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d/statuses 0.034s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '404', 'content-length': '141', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-afdbac19-e881-4899-b8f7-c3775bf5938d'}
- Body: {"NeutronError": {"message": "loadbalancer 15a6ab5f-aa0c-4678-af54-6642f2448a0d could not be found", "type": "EntityNotFound", "detail": ""}}
- tempest.test: INFO: tearDownClass of resources failed: 'module' object has no attribute 'NotFound'
- tempest.common.isolated_creds: DEBUG: Clearing network: None, subnet: None, router: None
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:tearDownClass): 204 DELETE http://192.168.141.145:35357/v2.0/users/5a61a95230654f7ca663684bb76e6bd3 0.181s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '204', 'content-length': '0', 'vary': 'X-Auth-Token', 'server': 'Apache/2.4.7 (Ubuntu)', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'x-openstack-request-id': 'req-a5db559e-ee5a-430b-a996-4a1d903bdcf3'}
- Body:
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:tearDownClass): 200 GET http://192.168.141.145:9696/v2.0/security-groups?tenant_id=490ee2edc3eb4690a9fd5ef674c00236&name=default 0.482s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '200', 'content-length': '1550', 'content-location': 'http://192.168.141.145:9696/v2.0/security-groups?tenant_id=490ee2edc3eb4690a9fd5ef674c00236&name=default', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:11 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-67881df0-b034-4b14-95bb-804228410451'}
- Body: {"security_groups": [{"tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "description": "Default security group", "id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da", "security_group_rules": [{"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "port_range_max": null, "port_range_min": null, "id": "42854f20-3670-4cf3-b7ed-242cd4731c76", "security_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da"}, {"remote_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv6", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "port_range_max": null, "port_range_min": null, "id": "46ccdf43-fff1-44e5-829a-8943a74a4801", "security_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da"}, {"remote_group_id": null, "direction": "egress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "port_range_max": null, "port_range_min": null, "id": "8e24dc81-db84-40ba-80ac-02544a921210", "security_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da"}, {"remote_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da", "direction": "ingress", "remote_ip_prefix": null, "protocol": null, "ethertype": "IPv4", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "port_range_max": null, "port_range_min": null, "id": "b5d07a69-fc10-4764-a840-94a0e4575cd3", "security_group_id": "fc2ecf85-8864-4a46-8271-3ad38b96e3da"}], "name": "default"}]}
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:tearDownClass): 204 DELETE http://192.168.141.145:9696/v2.0/security-groups/fc2ecf85-8864-4a46-8271-3ad38b96e3da 0.123s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'date': 'Wed, 04 Mar 2015 03:21:11 GMT', 'status': '204', 'connection': 'close', 'content-length': '0', 'x-openstack-request-id': 'req-a6da9ffd-9fa4-4146-ab63-68c9f668f0b8'}
- Body:
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:tearDownClass): 204 DELETE http://192.168.141.145:35357/v2.0/tenants/490ee2edc3eb4690a9fd5ef674c00236 0.164s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: None
- Response - Headers: {'status': '204', 'content-length': '0', 'vary': 'X-Auth-Token', 'server': 'Apache/2.4.7 (Ubuntu)', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:11 GMT', 'x-openstack-request-id': 'req-21ad3fda-1347-40ca-a809-c3444daf745c'}
- Body:
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_incorrect_attribute[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:06,704 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_create_load_balancer_incorrect_attribute): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.054s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "protocol_port": 80}}
- Response - Headers: {'status': '400', 'content-length': '114', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-9fe832ea-a6a8-449e-827e-d8f3aff037ff'}
- Body: {"NeutronError": {"message": "Unrecognized attribute(s) 'protocol_port'", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:06,707 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_create_load_balancer_incorrect_attribute
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 124, in test_create_load_balancer_incorrect_attribute
- protocol_port=80)
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 50, in create_load_balancer
- resp, body = self.post('v2.0/lbaas/loadbalancers', post_body)
- File "/usr/local/lib/python2.7/dist-packages/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 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Unrecognized attribute(s) 'protocol_port'", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_create_load_balancer_incorrect_attribute
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_create_load_balancer_incorrect_attribute): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.054s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "c89c2c62-1886-4b27-8209-ef0041f12790", "tenant_id": "490ee2edc3eb4690a9fd5ef674c00236", "protocol_port": 80}}
- Response - Headers: {'status': '400', 'content-length': '114', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-9fe832ea-a6a8-449e-827e-d8f3aff037ff'}
- Body: {"NeutronError": {"message": "Unrecognized attribute(s) 'protocol_port'", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_create_load_balancer_incorrect_attribute
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_invalid_tenant_id[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:06,739 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_create_load_balancer_invalid_tenant_id): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.017s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "&^%123"}}
- Response - Headers: {'status': '400', 'content-length': '164', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-de5077c0-643f-4d6a-9f2d-59e4eeebd50b'}
- Body: {"NeutronError": {"message": "Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:06,740 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_create_load_balancer_invalid_tenant_id
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 115, in test_create_load_balancer_invalid_tenant_id
- tenant_id="&^%123")
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 50, in create_load_balancer
- resp, body = self.post('v2.0/lbaas/loadbalancers', post_body)
- File "/usr/local/lib/python2.7/dist-packages/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 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_create_load_balancer_invalid_tenant_id
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_create_load_balancer_invalid_tenant_id): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.017s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "&^%123"}}
- Response - Headers: {'status': '400', 'content-length': '164', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-de5077c0-643f-4d6a-9f2d-59e4eeebd50b'}
- Body: {"NeutronError": {"message": "Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_create_load_balancer_invalid_tenant_id
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_invalid_vip_subnet_id[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:06,782 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_create_load_balancer_invalid_vip_subnet_id): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.026s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "abc123"}}
- Response - Headers: {'status': '400', 'content-length': '143', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-50c6f551-0c0b-4fa8-a319-e8ec4b528968'}
- Body: {"NeutronError": {"message": "Invalid input for vip_subnet_id. Reason: 'abc123' is not a valid UUID.", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:06,784 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_create_load_balancer_invalid_vip_subnet_id
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 108, in test_create_load_balancer_invalid_vip_subnet_id
- vip_subnet_id="abc123")
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 50, in create_load_balancer
- resp, body = self.post('v2.0/lbaas/loadbalancers', post_body)
- File "/usr/local/lib/python2.7/dist-packages/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 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Invalid input for vip_subnet_id. Reason: 'abc123' is not a valid UUID.", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_create_load_balancer_invalid_vip_subnet_id
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_create_load_balancer_invalid_vip_subnet_id): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.026s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"vip_subnet_id": "abc123"}}
- Response - Headers: {'status': '400', 'content-length': '143', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-50c6f551-0c0b-4fa8-a319-e8ec4b528968'}
- Body: {"NeutronError": {"message": "Invalid input for vip_subnet_id. Reason: 'abc123' is not a valid UUID.", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_create_load_balancer_invalid_vip_subnet_id
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_create_load_balancer_missing_field[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:06,823 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_create_load_balancer_missing_field): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.029s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "490ee2edc3eb4690a9fd5ef674c00236"}}
- Response - Headers: {'status': '400', 'content-length': '146', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-76e1fd1d-843a-4945-99f8-1e40a6bfd151'}
- Body: {"NeutronError": {"message": "Failed to parse request. Required attribute 'vip_subnet_id' not specified", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:06,825 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_create_load_balancer_missing_field
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 101, in test_create_load_balancer_missing_field
- tenant_id=self.subnet['tenant_id'])
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 50, in create_load_balancer
- resp, body = self.post('v2.0/lbaas/loadbalancers', post_body)
- File "/usr/local/lib/python2.7/dist-packages/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 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Failed to parse request. Required attribute 'vip_subnet_id' not specified", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_create_load_balancer_missing_field
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_create_load_balancer_missing_field): 400 POST http://192.168.141.145:9696/v2.0/lbaas/loadbalancers 0.029s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "490ee2edc3eb4690a9fd5ef674c00236"}}
- Response - Headers: {'status': '400', 'content-length': '146', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:06 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-76e1fd1d-843a-4945-99f8-1e40a6bfd151'}
- Body: {"NeutronError": {"message": "Failed to parse request. Required attribute 'vip_subnet_id' not specified", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_create_load_balancer_missing_field
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_incorrect_attribute[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:10,746 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_update_load_balancer_incorrect_attribute): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.013s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"description": "lb_name_description", "port": 80, "name": "lb_name", "admin_state_up": true}}
- Response - Headers: {'status': '400', 'content-length': '105', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-e1bc003f-d455-48ed-af74-3c8ab03ea220'}
- Body: {"NeutronError": {"message": "Unrecognized attribute(s) 'port'", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:10,747 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_update_load_balancer_incorrect_attribute
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 161, in test_update_load_balancer_incorrect_attribute
- port=80)
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 59, in update_load_balancer
- .format(load_balancer_id), put_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 181, in put
- return self.request('PUT', url, extra_headers, headers, body)
- File "/opt/stack/tempest/tempest/common/service_client.py", line 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Unrecognized attribute(s) 'port'", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_update_load_balancer_incorrect_attribute
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_update_load_balancer_incorrect_attribute): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.013s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"description": "lb_name_description", "port": 80, "name": "lb_name", "admin_state_up": true}}
- Response - Headers: {'status': '400', 'content-length': '105', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-e1bc003f-d455-48ed-af74-3c8ab03ea220'}
- Body: {"NeutronError": {"message": "Unrecognized attribute(s) 'port'", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_update_load_balancer_incorrect_attribute
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_invalid_admin_state_up[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:10,771 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_update_load_balancer_invalid_admin_state_up): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.021s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"admin_state_up": "abc123"}}
- Response - Headers: {'status': '400', 'content-length': '140', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-5d00ee44-165e-4a03-aaa3-875145562a1b'}
- Body: {"NeutronError": {"message": "Invalid input for operation: 'abc123' cannot be converted to boolean.", "type": "InvalidInput", "detail": ""}}
- 2015-03-03 19:21:10,772 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_update_load_balancer_invalid_admin_state_up
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 142, in test_update_load_balancer_invalid_admin_state_up
- admin_state_up="abc123")
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 59, in update_load_balancer
- .format(load_balancer_id), put_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 181, in put
- return self.request('PUT', url, extra_headers, headers, body)
- File "/opt/stack/tempest/tempest/common/service_client.py", line 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Invalid input for operation: 'abc123' cannot be converted to boolean.", u'type': u'InvalidInput', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_update_load_balancer_invalid_admin_state_up
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_update_load_balancer_invalid_admin_state_up): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.021s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"admin_state_up": "abc123"}}
- Response - Headers: {'status': '400', 'content-length': '140', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-5d00ee44-165e-4a03-aaa3-875145562a1b'}
- Body: {"NeutronError": {"message": "Invalid input for operation: 'abc123' cannot be converted to boolean.", "type": "InvalidInput", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_update_load_balancer_invalid_admin_state_up
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- FAIL: neutron_lbaas.tests.tempest.v2.api.test_load_balancers.LoadBalancersTestJSON.test_update_load_balancer_invalid_tenant_id[gate,smoke]
- ----------------------------------------------------------------------
- _StringException: pythonlogging:'': {{{
- 2015-03-03 19:21:10,798 61652 DEBUG [tempest_lib.common.rest_client] Request (LoadBalancersTestJSON:test_update_load_balancer_invalid_tenant_id): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.022s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "&^%123"}}
- Response - Headers: {'status': '400', 'content-length': '164', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-8bf077a2-4462-47df-bb4a-9975ac3b9dfc'}
- Body: {"NeutronError": {"message": "Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", "type": "HTTPBadRequest", "detail": ""}}
- 2015-03-03 19:21:10,800 61652 INFO [neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON] Finished: test_update_load_balancer_invalid_tenant_id
- }}}
- Traceback (most recent call last):
- File "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/api/test_load_balancers.py", line 150, in test_update_load_balancer_invalid_tenant_id
- tenant_id="&^%123")
- 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 "/home/madhu/neutron-lbaas/neutron_lbaas/tests/tempest/v2/clients/load_balancers_client.py", line 59, in update_load_balancer
- .format(load_balancer_id), put_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 181, in put
- return self.request('PUT', url, extra_headers, headers, body)
- File "/opt/stack/tempest/tempest/common/service_client.py", line 60, in request
- headers=headers, body=body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 388, in request
- resp, resp_body)
- File "/usr/local/lib/python2.7/dist-packages/tempest_lib/common/rest_client.py", line 439, in _error_checker
- raise exceptions.BadRequest(resp_body)
- BadRequest: Bad request
- Details: {u'message': u"Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", u'type': u'HTTPBadRequest', u'detail': u''}
- -------------------- >> begin captured logging << --------------------
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Starting: test_update_load_balancer_invalid_tenant_id
- tempest_lib.common.rest_client: DEBUG: Request (LoadBalancersTestJSON:test_update_load_balancer_invalid_tenant_id): 400 PUT http://192.168.141.145:9696/v2.0/lbaas/loadbalancers/15a6ab5f-aa0c-4678-af54-6642f2448a0d 0.022s
- Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
- Body: {"loadbalancer": {"tenant_id": "&^%123"}}
- Response - Headers: {'status': '400', 'content-length': '164', 'connection': 'close', 'date': 'Wed, 04 Mar 2015 03:21:10 GMT', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-8bf077a2-4462-47df-bb4a-9975ac3b9dfc'}
- Body: {"NeutronError": {"message": "Specifying 'tenant_id' other than authenticated tenant in request requires admin privileges", "type": "HTTPBadRequest", "detail": ""}}
- neutron_lbaas.tests.tempest.v2.api.test_load_balancers:LoadBalancersTestJSON: INFO: Finished: test_update_load_balancer_invalid_tenant_id
- --------------------- >> end captured logging << ---------------------
- ----------------------------------------------------------------------
- Ran 13 tests in 10.627s
- FAILED (errors=2, failures=7)
- madhu@kilo-server:/opt/stack/tempest$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement