Ask Your Question

'project_id' error after logging into Dashboard

asked 2013-07-22 01:21:56 -0500

rhatol gravatar image

updated 2013-07-22 01:40:26 -0500

Jobin gravatar image

__init__() got an unexpected keyword argument 'project_id'

Finally got devstack to install up to the end w/out errors (I think) and I got 21 screen sessions (screen -x stack). Am using Ubuntu 12.04 LTS + devstack all-in-one hardware.

From the horizon debug (screen2) it seems get a successful login but just can't get pass this error...

TypeError at /project/
__init__() got an unexpected keyword argument 'project_id'Request Method: GET 
Request URL: <a href=""></a> 
Django Version: 1.5.1 
Exception Type: TypeError 
Exception Value: __init__() got an unexpected keyword argument 'project_id' 
Exception Location: /opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/ in novaclient, line 351 
Python Executable: /usr/bin/python 
Python Version: 2.7.3 
Python Path: ['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
Server time: Fri, 19 Jul 2013 09:24:46 +0000

This is the exception line and looks like request.user.tenant_id is missing...

>     c = nova_client.Client(request.user.username,
>                  ,
>                            project_id=request.user.tenant_id,
>                            auth_url=url_for(request, 'compute'),
>                            insecure=insecure,
>                            http_log_debug=settings.DEBUG)

How do I troubleshoot this pls?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-07-22 04:36:53 -0500

jpichon gravatar image

Hello, this is due to the following bug, which is now fixed:

To fix this in your devstack environment, you should update python-novaclient to the latest and restart apache. Something like this:

$ cd /opt/stack/python-novaclient
$ git pull master
$ sudo service apache2 restart
edit flag offensive delete link more

answered 2013-07-26 01:34:29 -0500

rhatol gravatar image

updated 2013-07-26 01:35:14 -0500

Thanks jpichon!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-22 01:21:56 -0500

Seen: 648 times

Last updated: Jul 26 '13