Comment 1 for bug 1042975

Revision history for this message
Mark Gius (markgius) wrote :

In [43]: nova_client.servers.list()ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (81, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (12, 0))

---------------------------------------------------------------------------
BadRequest Traceback (most recent call last)

/home/mgius/src/maestro/tests/integration/<ipython console> in <module>()

/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.pyc in list(self, detailed, search_opts)
    277 if detailed:
    278 detail = "/detail"
--> 279 return self._list("/servers%s%s" % (detail, query_string), "servers")
    280
    281 def add_fixed_ip(self, server, network_id):

/usr/lib/python2.7/dist-packages/novaclient/base.pyc in _list(self, url, response_key, obj_class, body)
     69 resp, body = self.api.client.post(url, body=body)
     70 else:
---> 71 resp, body = self.api.client.get(url)
     72
     73 if obj_class is None:

/usr/lib/python2.7/dist-packages/novaclient/client.pyc in get(self, url, **kwargs)
    134
    135 def get(self, url, **kwargs):
--> 136 return self._cs_request(url, 'GET', **kwargs)
    137
    138 def post(self, url, **kwargs):

/usr/lib/python2.7/dist-packages/novaclient/client.pyc in _cs_request(self, url, method, **kwargs)
    122
    123 resp, body = self.request(self.management_url + url, method,
--> 124 **kwargs)
    125 return resp, body
    126 except exceptions.Unauthorized, ex:

/usr/lib/python2.7/dist-packages/novaclient/client.pyc in request(self, *args, **kwargs)
    105
    106 if resp.status in (400, 401, 403, 404, 408, 409, 413, 500, 501):
--> 107 raise exceptions.from_response(resp, body)
    108
    109 return resp, body

BadRequest: n/a (HTTP 400)