Ask Your Question
0

ImportError using api-paste.ini configuration example

asked 2012-04-19 09:05:48 -0500

marco-consonni gravatar image

Hello,

I recently installed nova following the instructions given here http://docs.openstack.org/trunk/openstack-compute/install/content/ (http://docs.openstack.org/trunk/opens...) .

At a certain stage, the instructions say to modify api-paste.ini described here http://docs.openstack.org/trunk/openstack-compute/install/content/api-paste-ini-file.html (http://docs.openstack.org/trunk/opens...) .

I tried but nova-api fails as described in this documentation bug I opened https://bugs.launchpad.net/bugs/985019

Not receiving a satisfactory answer (the bug was set to fixed but the fix doesn't seem to be related), I downloaded the api-paste.ini from the Essex's stable release https://github.com/openstack/nova/blob/stable/essex/etc/nova/api-paste.ini (https://github.com/openstack/nova/blo...)

I changed the keystone credentials and restarted nova-api. It seems to work properly.

Did I do the right thing?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2012-07-19 09:11:27 -0500

markmc gravatar image

Mark McLoughlin suggests this article as an answer to your question: FAQ #2004: “Malformed request url (HTTP 400)”.

edit flag offensive delete link more
0

answered 2012-04-19 14:34:08 -0500

marco-consonni gravatar image

I'm adding some information.

After the configuration described in my previous post, I restarted nova-api and it runs: the "ImportError" problem, that caused the service crash, disappeared.

However, after configuring the nova-api URL in keystone as described here http://docs.openstack.org/trunk/openstack-compute/install/content/keystone-service-endpoint-create.html (http://docs.openstack.org/trunk/opens...) , I submitted command

nova list

just to verify that nova-api was fine.

Actually, the request is received by the nova-api server (in fact I can see some log messages in the nova-api.log file) but at console I get the following response:

ERROR: Malformed request url (HTTP 400)

The log file messages do not help me much understand what happened.

Can anybody help me understand what's going on?

To recap:

1) I configured api.paste.ini as per the manual 2) It caused nova-api service crash 3) I changed api.paste.ini using the one released with Essex stable release 4) I configured nova endpoint URLs as defined in the manual 5) I submitted "nova list" command 5) I noted that requests reach nova-api but I don't get results, just errors

What is wrong? Maybe api.paste.ini is not really correct? It is consistent in the sense that all the mentioned pieces are there but it is not correct because the pieces do not support what nova command sends to nova-api?

Thanks for your help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-04-19 09:05:48 -0500

Seen: 53 times

Last updated: Jul 19 '12