Comment 3 for bug 1072841

Revision history for this message
Jay Pipes (jaypipes) wrote :

OK, this is really weird...

Running against devstack, I'm getting errors after changing to expect a 200 OK with empty list returned:

======================================================================
ERROR: Return an empty list when a numeric value for status is specified
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jpipes/repos/tempest/tempest/tests/compute/servers/test_list_servers_negative.py", line 145, in test_list_servers_pass_numeric_status
    resp, body = self.client.list_servers(dict(status=non_existing_status))
  File "/home/jpipes/repos/tempest/tempest/services/compute/json/servers_client.py", line 131, in list_servers
    resp, body = self.get(url)
  File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line 166, in get
    return self.request('GET', url, headers)
  File "/home/jpipes/repos/tempest/tempest/common/rest_client.py", line 211, in request
    raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: Bad request
Details: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://127.0.0.1:8774/v2/e070e2b43ff94c32aa69a441c0a6e653/servers?status=1&
tempest.common.rest_client: ERROR: Request Body: None
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Mon, 29 Oct 2012 21:24:05 GMT', 'status': '400', 'content-length': '68', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-aa2833c4-f9e5-47b9-a196-da5006689dfc'}
tempest.common.rest_client: ERROR: Response Body: {u'badRequest': {u'message': u'Invalid server status: 1', u'code': 400}}

jpipes@uberbox:~/repos/devstack$ ./tools/info.sh |grep nova
git|nova|master[b961bd4]
git|python-novaclient|master[247b530]
pip|https://github.com/openstack/nova.git|b961bd4c2916559bca856bc8b142d9df7494ef13
pip|https://github.com/openstack/python-novaclient.git|247b53022bced6d831e9ad10fb64fe520d00660b