[Openstack] [Openstack-operators] ERROR: Malformed request url (HTTP 400)

Wilson Lo seaman.lo at gmail.com
Wed Aug 22 08:56:23 UTC 2012


Hi,
    I am having the same problem as the subject. I am just wondering how do
people solve the problem. This is the error message that I got.

 sysadmin at Cloud-director:/usr/lib/python2.7/dist-packages/novaclient/v1_1$
sudo nova --debug --os_username admin --os_password best97in
--os_tenant_name openstackDemo --os_auth_url
http://5.168.2.213:5000/v2.0/image-list
connect: (5.168.2.213, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 5.168.2.213:5000\r\nContent-Length:
111\r\ncontent-type: application/json\r\naccept-encoding: gzip,
deflate\r\naccept: application/json\r\nuser-agent:
python-novaclient\r\n\r\n{"auth": {"tenantName": "openstackDemo",
"passwordCredentials": {"username": "admin", "password": "xxxxx"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Date: Wed, 22 Aug 2012 08:14:38 GMT
header: Transfer-Encoding: chunked
connect: (5.168.2.213, 8774)
send: u'GET /v2/4c1afcfbaad747398d89c2fc7efa8e85/images/detail
HTTP/1.1\r\nHost: 5.168.2.213:8774\r\nx-auth-project-id:
openstackDemo\r\nx-auth-token:
2dfb3f6c74c7489883778843025ba849\r\naccept-encoding: gzip,
deflate\r\naccept: application/json\r\nuser-agent:
python-novaclient\r\n\r\n'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Content-Length: 65
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-55a95046-bd8e-4a9c-a30a-c1a24cac9b25
header: Date: Wed, 22 Aug 2012 08:14:38 GMT
DEBUG (shell:416) Malformed request url (HTTP 400)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in
main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in
main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line
350, in do_image_list
    image_list = cs.images.list()
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line
47, in list
    return self._list("/images/detail", "images")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in
_list
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136,
in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124,
in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107,
in request
    raise exceptions.from_response(resp, body)
BadRequest: Malformed request url (HTTP 400)
ERROR: Malformed request url (HTTP 400)

The keystone service setting for volume service is as following:
{"adminurl": "http://5.168.2.213:8776/v1/%(tenant_id)s", "internalurl": "
http://5.168.2.213:8776/v1/%(tenant_id)s", "publicurl": "
http://5.168.2.213:8776/v1/%(tenant_id)s"}

Any idea how to solve the problem?

Thanks in advance for the help!

Regards,
Wilson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120822/11f7fa88/attachment.html>


More information about the Openstack mailing list