Comment 1 for bug 1560210

Revision history for this message
Tong Liu (liutong) wrote :

Traceback from tempest failure:
Log:
pythonlogging:'': {{{
        Body: None
    Response - Headers: {'status': '200', 'content-length': '1419', 'content-location': 'http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928', 'x-compute-request-id': 'req-31c912a3-315d-4142-9842-f817041afc04', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1', 'date': 'Fri, 19 Feb 2016 02:25:59 GMT', 'content-type': 'application/json'}
        Body: {"server": {"status": "ACTIVE", "updated": "2016-02-19T02:25:56Z", "hostId": "9c0e68e78ed2414b91351464d02ca6867cf9fb7d01f3d117601e02ab", "addresses": {}, "links": [{"href": "http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928", "rel": "self"}, {"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928", "rel": "bookmark"}], "key_name": null, "image": {"id": "2482c8aa-ba09-44d1-b848-63d09a233f4d", "links": [{"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/images/2482c8aa-ba09-44d1-b848-63d09a233f4d", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": "deleting", "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2016-02-19T02:25:54.000000", "flavor": {"id": "1", "links": [{"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/flavors/1", "rel": "bookmark"}]}, "id": "e95f572d-3484-47eb-adea-082a1979f928", "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "6b0b64bba0ae477d9c8d2cf33bb74802", "name": "tempest.common.compute-instance-1106858152", "created": "2016-02-19T02:25:31Z", "tenant_id": "5116bfd6f1ff4d35a26d266dd59e6ec9", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}
2016-02-18 18:26:03,501 14392 INFO [tempest_lib.common.rest_client] Request (TestServerAdvancedOps:_run_cleanups): 200 GET http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928 0.305s
2016-02-18 18:26:03,503 14392 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '200', 'content-length': '1424', 'content-location': 'http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928', 'x-compute-request-id': 'req-5572a149-5968-409d-a5a0-053836f9d285', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1', 'date': 'Fri, 19 Feb 2016 02:26:00 GMT', 'content-type': 'application/json'}
        Body: {"server": {"status": "DELETED", "updated": "2016-02-19T02:26:00Z", "hostId": "9c0e68e78ed2414b91351464d02ca6867cf9fb7d01f3d117601e02ab", "addresses": {}, "links": [{"href": "http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928", "rel": "self"}, {"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928", "rel": "bookmark"}], "key_name": null, "image": {"id": "2482c8aa-ba09-44d1-b848-63d09a233f4d", "links": [{"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/images/2482c8aa-ba09-44d1-b848-63d09a233f4d", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "deleted", "OS-SRV-USG:launched_at": "2016-02-19T02:25:54.000000", "flavor": {"id": "1", "links": [{"href": "http://10.144.137.140:8774/5116bfd6f1ff4d35a26d266dd59e6ec9/flavors/1", "rel": "bookmark"}]}, "id": "e95f572d-3484-47eb-adea-082a1979f928", "OS-SRV-USG:terminated_at": "2016-02-19T02:26:00.000000", "OS-EXT-AZ:availability_zone": "nova", "user_id": "6b0b64bba0ae477d9c8d2cf33bb74802", "name": "tempest.common.compute-instance-1106858152", "created": "2016-02-19T02:25:31Z", "tenant_id": "5116bfd6f1ff4d35a26d266dd59e6ec9", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "OS-EXT-STS:power_state": 0, "config_drive": "", "metadata": {}}}
2016-02-18 18:26:04,745 14392 INFO [tempest_lib.common.rest_client] Request (TestServerAdvancedOps:_run_cleanups): 404 GET http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928 0.223s
2016-02-18 18:26:04,746 14392 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '404', 'content-length': '111', 'x-compute-request-id': 'req-fbc4b06b-7680-4451-9a0b-d3e43701ae45', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1', 'date': 'Fri, 19 Feb 2016 02:26:01 GMT', 'content-type': 'application/json; charset=UTF-8'}
        Body: {"itemNotFound": {"message": "Instance e95f572d-3484-47eb-adea-082a1979f928 could not be found.", "code": 404}}
2016-02-18 18:26:04,975 14392 INFO [tempest_lib.common.rest_client] Request (TestServerAdvancedOps:_run_cleanups): 404 GET http://10.144.137.140:8774/v2.1/5116bfd6f1ff4d35a26d266dd59e6ec9/servers/e95f572d-3484-47eb-adea-082a1979f928 0.229s
2016-02-18 18:26:04,976 14392 DEBUG [tempest_lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: None
    Response - Headers: {'status': '404', 'content-length': '111', 'x-compute-request-id': 'req-71e13061-9f89-4a45-abd0-42fb5fd0f073', 'vary': 'X-OpenStack-Nova-API-Version', 'connection': 'close', 'x-openstack-nova-api-version': '2.1', 'date': 'Fri, 19 Feb 2016 02:26:02 GMT', 'content-type': 'application/json; charset=UTF-8'}
        Body: {"itemNotFound": {"message": "Instance e95f572d-3484-47eb-adea-082a1979f928 could not be found.", "code": 404}}
}}}

Traceback (most recent call last):
  File "/root/tempest/tempest/test.py", line 113, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/root/tempest/tempest/scenario/test_server_advanced_ops.py", line 61, in test_resize_server_confirm
    self.servers_client.resize_server(instance_id, resize_flavor)
  File "/root/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/services/compute/servers_client.py", line 231, in resize_server
    return self.action(server_id, 'resize', **kwargs)
  File "/root/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/services/compute/servers_client.py", line 149, in action
    post_body)
  File "/root/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 259, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/root/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 642, in request
    resp, resp_body)
  File "/root/tempest/.venv/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 700, in _error_checker
    raise exceptions.BadRequest(resp_body, resp=resp)
tempest_lib.exceptions.BadRequest: Bad request
Details: {u'message': u'Server disk was unable to be resized because: Resize to zero disk flavor is not allowed.', u'code': 400}