Ask Your Question
0

HowTO register a user in Dashboard?

asked 2011-04-26 07:55:33 -0600

tonytkdk gravatar image

Is there any approach to add user in Dashboard?

I try to register an existing account in NOVA.

but failed ....

http://pastebin.com/3gR0tF0S

Environment:

Request Method: POST Request URL: http://172.16.4.75:8000/accounts/register/ (http://172.16.4.75:8000/accounts/regi...) Django Version: 1.2.4 Python Version: 2.7.1 Installed Applications: ['dashboard', 'django.contrib.auth', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.comments', 'django.contrib.sites', 'django.contrib.markup', 'django.contrib.syndication', 'django_nose', 'django_nova', 'registration'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware')

Traceback: File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 100. response = callback(request, callback_args, *callback_kwargs) File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/registration/views.py" in register 148. new_user = form.save(profile_callback=profile_callback) File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/registration/forms.py" in save 87. profile_callback=profile_callback) File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/registration/models.py" in create_inactive_user 127. send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [new_user.email]) File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/mail/__init__.py" in send_mail 61. connection=connection).send() File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/mail/message.py" in send 179. return self.get_connection(fail_silently).send_messages([self]) File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py" in send_messages 78. new_conn_created = self.open() File "/home/hugo/src/openstack-dashboard/trunk/openstack-dashboard/.dashboard-venv/lib/python2.7/site-packages/django/core/mail/backends/smtp.py" in open 41. local_hostname=DNS_NAME.get_fqdn()) File "/usr/lib/python2.7/smtplib.py" in __init__ 239. (code, msg) = self.connect(host, port) File "/usr/lib/python2.7/smtplib.py" in connect 295. self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python2.7/smtplib.py" in _get_socket 273. return socket.create_connection((port, host), timeout) File "/usr/lib/python2.7/socket.py" in create_connection 571. raise err

Exception Type: error at /accounts/register/ Exception Value: [Errno 111] Connection refused

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-04-26 08:39:24 -0600

tonytkdk gravatar image

Solve , I have to set admin mail first....

this solve my problem https://answers.launchpad.net/nova/+question/152167 (https://answers.launchpad.net/nova/+q...)

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-04-26 07:55:33 -0600

Seen: 89 times

Last updated: Apr 26 '11