ERROR: n/a (HTTP 400) too, but in trystack

asked 2012-04-26 08:35:28 -0600

Hi, All:

Just got my account, and after setup my python-novaclient, with the env vars, first run of "nova --debug list" shows:

man@RPUBUNTU:~$ nova --debug list DEBUG (shell:425) n/a (HTTP 400) Traceback (most recent call last): File "/home/rogerp/src/python-novaclient/novaclient/", line 422, in main OpenStackComputeShell().main(sys.argv[1:]) File "/home/rogerp/src/python-novaclient/novaclient/", line 367, in main self.cs.authenticate() File "/home/rogerp/src/python-novaclient/novaclient/v1_1/", line 108, in authenticate self.client.authenticate() File "/home/rogerp/src/python-novaclient/novaclient/", line 229, in authenticate auth_url = self._v2_auth(auth_url) File "/home/rogerp/src/python-novaclient/novaclient/", line 284, in _v2_auth self._authenticate(url, body) File "/home/rogerp/src/python-novaclient/novaclient/", line 305, in _authenticate resp, body = self.request(token_url, "POST", body=body) File "/home/rogerp/src/python-novaclient/novaclient/", line 107, in request raise exceptions.from_response(resp, body) BadRequest: n/a (HTTP 400) ERROR: n/a (HTTP 400)


1). in ( , it shows the setting of:

export OS_USERNAME=joecool export OS_PASSWORD=coolword export OS_TENANT_NAME=coolu export OS_AUTH_URL= export NOVA_VERSION=1.1

while in my trystack api page it shows:

export NOVA_USERNAME=facebookxxxxx export NOVA_API_KEY=xxxx export NOVA_PROJECT_ID=facebookxxxxx export NOVA_URL= export NOVA_VERSION=1.1

so I need both ? ... or which one to pick for my nova client ? ...

2). There's a similar question asked in ( , similar error but not sure if it apply to trystack - I don't even have those "connect", "send", and post header info at all ....

3). Tried to add more info in to print the url, it shows : ""

Any help will be very appreciated, Thanks !


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-04-27 04:37:57 -0600

Got it solved, after adding this in my env:


and "nova list" is working fine. This setting is not listed in that API page ( ).

I wonder why the get auth token calls is returning keystone endpoint to "" which is not responding at all. But anyway I got it working now ... for those who can't get trystack to work ...

edit flag offensive delete link more

answered 2012-06-27 12:52:16 -0600

hi Perng,

I added the extra env variable u had mentioned, but still getting the same error as "n/a HTTP 400"

By following the instructions in the ( , I was able to get a token using the first cURL command, and while using the token , to get connected (second command in the above website), I am getting the following error:

  • Closing connection #0
  • SSLv3, TLS alert, Client hello (1): {"badRequest": {"message": "Malformed request url", "code": 400}}

Any suggestiins wwould be of great help

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-04-26 08:35:28 -0600

Seen: 206 times

Last updated: Jun 27 '12