i get the dashboard's source from github, but can not successfully run it,

Asked by zhangjunfeng

I try to install openstack-dashboard, but always have problems. Try a couple of days still no solution.
1, how to configure local_setting.py? How to understand OPENSTACK_ADMIN_TOKEN and OPENSTACK_KEYSTONE_URL.
2, tools / with_venv.sh dashboard / manage.py syncdb error: no fixtures fonud.
3, no running before setting the user name password, but access http://192.168.1.252:8000, but requires a user name and password, do not know how to do?

Here are my steps:

I use the operating system is ubuntu10.04.
According to this description of the page succeeded 20 days ago:
http://wiki.openstack.org/OpenStackDashboard
But now, $ bzr branch lp: openstack-dashboard trunk, does not get the source code as before.
Then,
My steps are as follows:
$ Git clone https://github.com/4P/openstack-dashboard.git
$ Python tools / install_venv.py

Configuration local_settings.py, local_setting.py content on the back. I tried two different configurations, without success

$ Tools / with_venv.sh dashboard / manage.py syncdb
This step is done, and did not let me enter a user name and password.
This step operation error is as follows:
Installing indexes ...
DEBUG: django.db.backends: (0.007) CREATE INDEX "django_session_c25c2c28" ON "django_session" ("expire_date");; args = ()
DEBUG: django.db.backends: (0.004) CREATE INDEX "django_comments_e4470c6e" ON "django_comments" ("content_type_id");; args = ()
DEBUG: django.db.backends: (0.005) CREATE INDEX "django_comments_6223029" ON "django_comments" ("site_id");; args = ()
DEBUG: django.db.backends: (0.004) CREATE INDEX "django_comments_fbfc09f1" ON "django_comments" ("user_id");; args = ()
DEBUG: django.db.backends: (0.007) CREATE INDEX "django_comment_flags_fbfc09f1" ON "django_comment_flags" ("user_id");; args = ()
DEBUG: django.db.backends: (0.005) CREATE INDEX "django_comment_flags_9b3dc754" ON "django_comment_flags" ("comment_id");; args = ()
DEBUG: django.db.backends: (0.004) CREATE INDEX "django_comment_flags_111c90f9" ON "django_comment_flags" ("flag");; args = ()
No fixtures found.
$ Tools / with_venv.sh dashboard / manage.py runserver 192.168.1.252:8000

Visit the page for a user name and password.

With ==============================================
First configuration:
local_setting.py as follows:
import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False

LOCAL_PATH = os.path.dirname (os.path.abspath (file))
DATABASES = {
'Default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join (LOCAL_PATH, 'dashboard_openstack.sqlite3'),
}
}

CACHE_BACKEND = 'dummy: / /'
Configure these for your outgoing email host
EMAIL_HOST = 'smtp.my-company.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'djangomail'
EMAIL_HOST_PASSWORD = 'top-secret!'

NOVA_DEFAULT_ENDPOINT = 'http://192.168.1.101:8773/services/Cloud'
NOVA_DEFAULT_REGION = 'nova'
NOVA_ACCESS_KEY = '4 fd029bf-74d8-49a7-98f1-216dc765332c: dubproject '
NOVA_SECRET_KEY = '8783ba53-ad5d-43fc-a5b4-9f72c438e0d0 '
NOVA_ADMIN_USER = 'dub'
NOVA_PROJECT = 'dubproject'
Configure these for your outgoing email host
EMAIL_HOST = 'smtp.my-company.com'
EMAIL_PORT = 25
# EMAIL_HOST_USER = 'djangomail'
# EMAIL_HOST_PASSWORD = 'top-secret!'

Second configuration:

import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False

LOCAL_PATH = os.path.dirname (os.path.abspath (file))
DATABASES = {
'Default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join (LOCAL_PATH, 'dashboard_openstack.sqlite3'),
}
}

CACHE_BACKEND = 'dummy: / /'
Configure these for your outgoing email host
EMAIL_HOST = 'smtp.my-company.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'djangomail'
EMAIL_HOST_PASSWORD = 'top-secret!'

OPENSTACK_ADMIN_TOKEN = "a8fbae0d97edd1f014ac60ce020d08b620df7861"
OPENSTACK_KEYSTONE_URL = "http://192.168.1.101:8774/v1.0/"
If you have external monitoring links
EXTERNAL_MONITORING = [
['Nagios', 'http://foo.com'],
['Ganglia', 'http://bar.com'],

#]
If you do not have external monitoring links
EXTERNAL_MONITORING = []
Uncomment the following segment to silence most logging
Django.db and boto DEBUG logging is extremely verbose.
LOGGING = {
'Version': 1,
# Set to True will disable all logging except that specified, unless
# Nothing is specified except that django.db.backends will still log,
# Even when set to True, so disable explicitly
'Disable_existing_loggers': False,
'Handlers': {
'Null': {
'Level': 'DEBUG',
'Class': 'django.utils.log.NullHandler',

#}
'Console': {
'Level': 'DEBUG',
'Class': 'logging.StreamHandler',

#}
#}
'Loggers': {
# Comment or Uncomment these to turn on / off logging output
'Django.db.backends': {
'Handlers': ['null'],
'Propagate': False,

#}
'Boto': {
'Handlers': ['null'],
'Propagate': False,

#}
'Django_openstack': {
'Handlers': ['null'],
'Propagate': False,

#}
#}
#}

TOTAL_CLOUD_RAM_GB = 10

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
zhangjunfeng
Solved:
Last query:
Last reply:
Revision history for this message
zhangjunfeng (zjfhappy) said :
#1

my option like this:
mkdir openstack-dashboard
$ cd openstack-dashboard
$ bzr init-repo .
$ bzr branch lp:openstack-dashboard
$ bzr revert -r 46

then,
$ cd trunk/openstack-dashboard/local
$ cp local_settings.py.example local_settings.py
$ vi local_settings.py (Here I use the above-mentioned first configuration file)
$ apt-get install -y python-setuptools
$ cd ..
$ sudo easy_install virtualenv
$ python tools/install_venv.py
$ tools/with_venv.sh dashboard/manage.py syncdb
$ tools/with_venv.sh dashboard/manage.py runserver 0.0.0.0:8000

here, I get the expected results

but i am still have problem about the latest openstack-dashboard deployment . this theme has been to meet my requirements, so set the state to be solved.