Ask Your Question
0

Howto setup dashboard for Swift

asked 2011-10-10 08:06:46 -0500

linyouqing7 gravatar image

My environment is a Virtual Machine : ubuntu-11.04-server-i386 installed newest swift+keystone+dashboard all in one

I'm follow the tutorial Swift Integration - Quick Start install keystone for swift

root@swift-proxy:~# keystone Starting the RAX-KEY extension Starting the Legacy Authentication component Service API listening on 0.0.0.0:5000 Admin API listening on 0.0.0.0:35357

cd ~/keystone/bin && ./sampledata ...... SUCCESS: Created EndpointTemplates for swift pointing to http://127.0.0.1:8888/v1/AUTH_%25tenant_id%25 (http://127.0.0.1:8888/v1/AUTH_%tenant...) . SUCCESS: Created EndpointTemplates for nova_compat pointing to http://nova.publicinternets.com/v1.0/ . SUCCESS: Created EndpointTemplates for nova pointing to http://nova.publicinternets.com/v1.1/ . SUCCESS: Created EndpointTemplates for glance pointing to http://glance.publicinternets.com/v1.1/%25tenant_id%25 (http://glance.publicinternets.com/v1....) . SUCCESS: Created EndpointTemplates for cdn pointing to http://cdn.publicinternets.com/v1.1/%25tenant_id%25 (http://cdn.publicinternets.com/v1.1/%...) . SUCCESS: Created EndpointTemplates for swift pointing to http://127.0.0.1:8888/v1/AUTH_%25tenant_id%25 (http://127.0.0.1:8888/v1/AUTH_%tenant...) . SUCCESS: Created EndpointTemplates for nova pointing to http://nova.publicinternets.com/v1.0/ . SUCCESS: Created EndpointTemplates for nova_compat pointing to http://nova.publicinternets.com/v1.1/ . SUCCESS: Created EndpointTemplates for glance pointing to http://glance.publicinternets.com/v1.1/%25tenant_id%25 (http://glance.publicinternets.com/v1....) . SUCCESS: Created EndpointTemplates for cdn pointing to http://cdn.publicinternets.com/v1.1/%25tenant_id%25 (http://cdn.publicinternets.com/v1.1/%...) . SUCCESS: Created EndpointTemplates for identity pointing to http://keystone.publicinternets.com/v2.0 . ......

root@swift-proxy:/usr/src# swift -A http://127.0.0.1:5000/v1.0 -U joeuser -K secrete stat -v StorageURL: http://127.0.0.1:8888/v1/AUTH_1 Auth Token: 887665443383838 Account: AUTH_1 Containers: 2 Objects: 24 Bytes: 179853 Accept-Ranges: bytes X-Trans-Id: txb3cef26bdc98483782d7f18a25f5a34b return is OK!

after successful login as 'joeuser' at dashboard , but 'click' the button 'Manage Object Store - Containers' then meets follow errors:

ResponseError at /dash/1/containers/ 302: Found Request Method: GET Request URL: http://192.168.1.58:8000/dash/1/containers/ (http://192.168.1.58:8000/dash/1/conta...) Django Version: 1.3 Exception Type: ResponseError Exception Value: 302: Found Exception Location: /root/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/cloudfiles/connection.py in list_containers_info, line 386 Python Executable: /root/openstack-dashboard/openstack-dashboard/.dashboard-venv/bin/python

at the console for tools/with_venv.sh dashboard/manage.py runserver 0.0.0.0:8000 ruturn follow informations

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" = d159ef1a15bfc54ba222f79bf5c1c8d6 AND "django_session"."expire_date" > 2011-10-09 09:23:18.310410 ); args=('d159ef1a15bfc54ba222f79bf5c1c8d6', u'2011-10-09 09:23:18.310410') DEBUG:django_openstack.api:object store connection created using token "887665443383838" and url "http://127.0.0.1:8080/v1/AUTH_1" CRITICAL:openstack_dashboard:Unhandled Exception in of type "<class 'cloudfiles.errors.responseerror'="">" in dashboard. Traceback (most recent call last): File "/root/openstack-dashboard/openstack-dashboard/.dashboard-venv/local/lib/python2.7/site-packages/django/core/handlers ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-06-27 07:02:14 -0500

None of the given links working

edit flag offensive delete link more
0

answered 2011-10-11 07:02:46 -0500

linyouqing7 gravatar image

I solved this problem , it's only config problem such as /etc/swift/proxy-server.conf /root/keystone/keystone/test/sampledata.py can refer to https://github.com/4P/devstack/blob/master/swift-configs/proxy-server.conf.keystone (https://github.com/4P/devstack/blob/m...) https://github.com/4P/devstack/blob/master/files/keystone_data.sh (https://github.com/4P/devstack/blob/m...) https://github.com/4P/devstack/blob/master/files/dash_settings.py (https://github.com/4P/devstack/blob/m...)

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-10-10 08:06:46 -0500

Seen: 113 times

Last updated: Jun 27 '12