Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenStack-Dashboard problems

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", "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,) [22/Jun/2011 11:01:58] "GET /admin/jsi18n/ HTTP/1.1" 200 2258 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:02:18.466028 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:02:18.466028') 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 "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"."username" = laurent ; args=(u'laurent',) DEBUG:django.db.backends:(0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."username" = laurent LIMIT 1; args=(u'laurent',) [22/Jun/2011 11:02:18] "POST /admin/auth/user/add/ HTTP/1.1" 200 5042 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:02:18.595370 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:02:18.595370') 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,) [22/Jun/2011 11:02:18] "GET /admin/jsi18n/ HTTP/1.1" 200 2258 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:02:41.494353 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:02:41.494353') 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 "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"."username" = laurent ; args=(u'laurent',) DEBUG:django.db.backends:(0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."username" = laurent LIMIT 1; args=(u'laurent',) [22/Jun/2011 11:02:41] "POST /admin/auth/user/add/ HTTP/1.1" 200 5109 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:02:41.592764 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:02:41.592764') 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,) [22/Jun/2011 11:02:41] "GET /admin/jsi18n/ HTTP/1.1" 200 2258 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:02:53.206865 ); args=('f88a9a6ab1a61304292c36b8c6395eba', u'2011-06-22 11:02:53.206865') 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 "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"."username" = laurent ; args=(u'laurent',) DEBUG:django.db.backends:(0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."username" = laurent LIMIT 1; args=(u'laurent',) DEBUG:django.db.backends:(0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (laurent, , , , sha1$ab623$ae1c408827b2502c19fb9bc595192d4d3b55c5a9, False, True, False, 2011-06-22 11:02:53.217206, 2011-06-22 11:02:53.217227); args=(u'laurent', '', '', '', 'sha1$ab623$ae1c408827b2502c19fb9bc595192d4d3b55c5a9', False, True, False, u'2011-06-22 11:02:53.217206', u'2011-06-22 11:02:53.217227') DEBUG:boto:using calc_signature_2 DEBUG:boto:query string: AWSAccessKeyId=5d5d3414-9502-41a7-80e4-40af37e72abc%3Aprojet1&Action=DescribeUser&Name=laurent&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-22T09%3A02%3A53&Version=nova DEBUG:boto:string_to_sign: GET localhost:8773 /services/Admin/ AWSAccessKeyId=5d5d3414-9502-41a7-80e4-40af37e72abc%3Aprojet1&Action=DescribeUser&Name=laurent&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-22T09%3A02%3A53&Version=nova DEBUG:boto:len(b64)=44 DEBUG:boto:base64 encoded digest: OV7/nU6lb6IWo0SmvtTKnj+GM3uAhF8LH3Bvy/ZuU+E= DEBUG:boto:Canonical: GET

Wed, 22 Jun 2011 09:02:53 GMT /services/Admin/services/Admin/ DEBUG:boto:Method: GET DEBUG:boto:Path: /services/Admin/?AWSAccessKeyId=5d5d3414-9502-41a7-80e4-40af37e72abc%3Aprojet1&Action=DescribeUser&Name=laurent&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-06-22T09%3A02%3A53&Version=nova&Signature=OV7/nU6lb6IWo0SmvtTKnj%2BGM3uAhF8LH3Bvy/ZuU%2BE%3D DEBUG:boto:Data: DEBUG:boto:Headers: {'Date': 'Wed, 22 Jun 2011 09:02:53 GMT', 'Content-Length': '0', 'Authorization': 'AWS 5d5d3414-9502-41a7-80e4-40af37e72abc:projet1:zScLjsHG1wdNeAI2LAkDQiQdFZs=', 'User-Agent': 'Boto/1.9b (linux2)'} DEBUG:boto:Host: None DEBUG:boto:establishing HTTP connection DEBUG:boto: <response><errors><error>NotFound<message>No user for id laurent</message></error></errors><requestid>K0W8QAV0KZZSV-6TRVRE</requestid></response> ERROR:boto:400 Bad Request ERROR:boto: <response><errors><error>NotFound<message>No user for id laurent</message></error></errors><requestid>K0W8QAV0KZZSV-6TRVRE</requestid></response> CRITICAL:openstack_dashboard:Unhandled Exception in dashboard. Exception "EC2ResponseError: 400 Bad Request <response><errors><error>NotFound<message>No user for id laurent</message></error></errors><requestid>K0W8QAV0KZZSV-6TRVRE</requestid></response>" Traceback (most recent call last): File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, *callback_kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/contrib/admin/options.py", line 307, in wrapper return self.admin_site.admin_view(view)(args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/views/decorators/cache.py", line 79, in _wrapped_view_func response = view_func(request, args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 197, in inner return view(request, args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 28, in _wrapper return bound_func(args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 24, in bound_func return func(self, args2, *kwargs2) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/db/transaction.py", line 217, in inner res = func(args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/contrib/auth/admin.py", line 103, in add_view return super(UserAdmin, self).add_view(request, form_url, extra_context) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 28, in _wrapper return bound_func(args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/utils/decorators.py", line 24, in bound_func return func(self, args2, *kwargs2) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/db/transaction.py", line 217, in inner res = func(args, *kwargs) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/contrib/admin/options.py", line 882, in add_view self.save_model(request, new_object, form, change=False) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/contrib/admin/options.py", line 665, in save_model obj.save() File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/db/models/base.py", line 460, in save self.save_base(using=using, force_insert=force_insert, force_update=force_update) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/db/models/base.py", line 570, in save_base created=(not record_exists), raw=raw, using=using) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send response = receiver(signal=self, sender=sender, **named) File "/opt/osdb/django-openstack/src/django_openstack/models.py", line 127, in user_post_save if not nova.has_user(instance.username): File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/nova_adminclient/client.py", line 370, in has_user return self.get_user(username) != None File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/nova_adminclient/client.py", line 359, in get_user UserInfo) File "/opt/osdb/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/boto/connection.py", line 631, in get_object raise self.ResponseError(response.status, response.reason, body) EC2ResponseError: EC2ResponseError: 400 Bad Request <response><errors><error>NotFound<message>No user for id laurent</message></error></errors><requestid>K0W8QAV0KZZSV-6TRVRE</requestid></response>

Thank you for your help.