Ask Your Question
1

'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="http://10.19.1.151/project/">http://10.19.1.151/project/</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/nova.py in novaclient, line 351 
Python Executable: /usr/bin/python 
Python Version: 2.7.3 
Python Path: ['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
 '/opt/stack/pbr',
 '/opt/stack/python-glanceclient',
 '/opt/stack/python-cinderclient',
 '/opt/stack/python-novaclient',
 '/opt/stack/python-swiftclient',
 '/opt/stack/python-neutronclient',
 '/opt/stack/python-openstackclient',
 '/opt/stack/keystone',
 '/opt/stack/glance',
 '/opt/stack/cinder',
 '/opt/stack/neutron',
 '/opt/stack/nova',
 '/opt/stack/horizon',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/pymodules/python2.7',
 '/opt/stack/horizon/openstack_dashboard'] 
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,
>                            request.user.token.id,
>                            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
3

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

jpichon gravatar image

Hello, this is due to the following bug, which is now fixed: https://bugs.launchpad.net/horizon/+bug/1203001

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
0

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

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: 2013-07-22 01:21:56 -0500

Seen: 587 times

Last updated: Jul 26 '13