Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi at all,

a) Account settings "admin" that starts "runserver" are:

root@server1:/home/localadmin/creds# nova-manage user exports novaadmin <cr> export EC2_ACCESS_KEY=5d5d3414-9502-41a7-80e4-40af37e72abc export EC2_SECRET_KEY=cc6819c9-e723-4d84-9ff1-e0f743f40259

root@server1:/home/localadmin/creds# cat novarc <cr> NOVA_KEY_DIR=$(pushd $(dirname $BASH_SOURCE)>/dev/null; pwd; popd>/dev/null) export EC2_ACCESS_KEY="5d5d3414-9502-41a7-80e4-40af37e72abc:projet1" export EC2_SECRET_KEY="cc6819c9-e723-4d84-9ff1-e0f743f40259" export EC2_URL="http://10.10.10.2:8773/services/Cloud" export S3_URL="http://10.10.10.2:3333" export EC2_USER_ID=42 # nova does not use user id, but bundling requires it export EC2_PRIVATE_KEY=${NOVA_KEY_DIR}/pk.pem export EC2_CERT=${NOVA_KEY_DIR}/cert.pem export NOVA_CERT=${NOVA_KEY_DIR}/cacert.pem export EUCALYPTUS_CERT=${NOVA_CERT} # euca-bundle-image seems to require this set alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user 42 --ec2cert ${NOVA_CERT}" alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${NOVA_CERT}" export NOVA_API_KEY="5d5d3414-9502-41a7-80e4-40af37e72abc" export NOVA_USERNAME="novaadmin" export NOVA_URL="http://10.10.10.2:8774/v1.0/" root@server1:/home/localadmin/creds#

b) Local settings "django" are :

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.server1.pcop.dyndns.org' EMAIL_PORT = 25 EMAIL_HOST_USER = 'support' EMAIL_HOST_PASSWORD = 'CloudOMC'

NOVA_DEFAULT_ENDPOINT = 'http://localhost:8773/services/Cloud' NOVA_DEFAULT_REGION = 'nova' NOVA_ACCESS_KEY = '5d5d3414-9502-41a7-80e4-40af37e72abc:projet1' NOVA_SECRET_KEY = 'cc6819c9-e723-4d84-9ff1-e0f743f40259' NOVA_ADMIN_USER = 'novaadmin' NOVA_PROJECT = 'projet1'

Thank you for your help.

Regards,