Ask Your Question
0

OpenStack-Dashboard problems

asked 2011-06-22 10:14:52 -0500

laurent-borensky gravatar image

Hello,

I am continuing my work to upload OpenStack, but I still have two problems with OpenStack-Dashboard:

1) Why when I launch a VM, the public address is not displayed. Must perform the operation on the back end with the commands "eucalyptus-associate & allocate" to make it appear?

2) Under the admin dashboard, it is impossible to create users. See the tracks below.

DEBUG:boto:Host: None DEBUG:boto:establishing HTTP connection DEBUG:boto:<describeprojectsresponse xmlns="http://ec2.amazonaws.com/doc/nova/"><requestid>9Y14M7AZC9BLULG0F44T</requestid><projectset><item><projectname>projet1</projectname><projectmanagerid>novaadmin</projectmanagerid><description>projet1</description></item></projectset></describeprojectsresponse> [22/Jun/2011 11:01:51] "GET /admin/project/ HTTP/1.1" 200 3104 DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = f88a9a6ab1a61304292c36b8c6395eba AND "django_session"."expire_date" > 2011-06-22 11:01:51.451525 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:01:51.451525') [22/Jun/2011 11:01:51] "GET /stylesheets/extra_admin.css HTTP/1.1" 404 3459 DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = f88a9a6ab1a61304292c36b8c6395eba AND "django_session"."expire_date" > 2011-06-22 11:01:54.188554 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:01:54.188554') DEBUG:django.db.backends:(0.002) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 1 ; args=(1,) DEBUG:django.db.backends:(0.000) SELECT "django_admin_log"."id", "django_admin_log"."action_time", "django_admin_log"."user_id", "django_admin_log"."content_type_id", "django_admin_log"."object_id", "django_admin_log"."object_repr", "django_admin_log"."action_flag", "django_admin_log"."change_message", "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model" FROM "django_admin_log" INNER JOIN "auth_user" ON ("django_admin_log"."user_id" = "auth_user"."id") LEFT OUTER JOIN "django_content_type" ON ("django_admin_log"."content_type_id" = "django_content_type"."id") WHERE "django_admin_log"."user_id" = 1 ORDER BY "django_admin_log"."action_time" DESC LIMIT 10; args=(1,) [22/Jun/2011 11:01:54] "GET /admin/ HTTP/1.1" 200 5156 DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = f88a9a6ab1a61304292c36b8c6395eba AND "django_session"."expire_date" > 2011-06-22 11:01:58.368763 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:01:58.368763') DEBUG:django.db.backends:(0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 1 ; args=(1,) DEBUG:django.db.backends:(0.000) SELECT "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."model" = user AND "django_content_type"."app_label" = auth ); args=('user', 'auth') [22/Jun/2011 11:01:58] "GET /admin/auth/user/add/ HTTP/1.1" 200 4865 DEBUG:django.db.backends:(0.001) SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = f88a9a6ab1a61304292c36b8c6395eba AND "django_session"."expire_date" > 2011-06-22 11:01:58.469901 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:01:58.469901') DEBUG:django.db.backends:(0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email ... (more)

edit retag flag offensive close merge delete

12 answers

Sort by ยป oldest newest most voted
0

answered 2011-06-24 18:46:13 -0500

laurent-borensky gravatar image

Hi at all,

The problem is here (file: /osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/nova_adminclient/client.py)

--- nova_adminclient/client.py.orig 2011-06-15 12:12:58.000000000 +0000 +++ nova_adminclient/client.py 2011-06-15 12:13:04.000000000 +0000 @@ -343,7 +343,7 @@ {'Name': name}, UserInfo) except boto.exception.BotoServerError, e: - if e.status == 400 and e.error_code == 'UserNotFound': + if e.status == 400 and e.error_code == 'NotFound': return None raise

I patch this file and this is good.

Bye.

edit flag offensive delete link more
0

answered 2011-06-27 23:17:43 -0500

Hi Laurent, if you use nova-adminclient 0.1.6 it will work for you. After 0.1.7 this change was introduced to match the error message returned by Nova. My guess is that you're using a slightly older version of nova with the latest nova-adminclient.

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: 2011-06-22 10:14:52 -0500

Seen: 295 times

Last updated: Jun 27 '11