Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error 500 when loading OpenStack Dashboard

We are configuring Icehouse On SLES 11 SP3 3 Node Architecture 1Node = Controller 1Node = Compute 1Node = Dashboard

All hosts can reach one another as well my machine on a different network.

/var/log/apache2/openstack_dashboard_error.log:

[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__ [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] mod = importlib.import_module(self.SETTINGS_MODULE) [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] __import__(name) [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module> [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] from local.local_settings import * # noqa [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108 [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] 'LOCATION' : '127.0.0.1:11211' [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] ^ [Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152] SyntaxError: invalid syntax [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] mod_wsgi (pid=7356): Exception occurred processing WSGI script '/srv/www/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] Traceback (most recent call last): [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__ [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] self.load_middleware() [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py", line 46, in load_middleware [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] for middleware_path in settings.MIDDLEWARE_CLASSES: [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__ [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] self._setup(name) [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] self._wrapped = Settings(settings_module) [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__ [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] mod = importlib.import_module(self.SETTINGS_MODULE) [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] __import__(name) [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module> [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] from local.local_settings import * # noqa [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108 [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] 'LOCATION' : '127.0.0.1:11211' [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] ^ [Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] SyntaxError: invalid syntax [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] mod_wsgi (pid=7357): Exception occurred processing WSGI script '/srv/www/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] Traceback (most recent call last): [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__ [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] self.load_middleware() [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py", line 46, in load_middleware [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] for middleware_path in settings.MIDDLEWARE_CLASSES: [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__ [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] self._setup(name) [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] self._wrapped = Settings(settings_module) [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__ [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] mod = importlib.import_module(self.SETTINGS_MODULE) [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] __import__(name) [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module> [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] from local.local_settings import * # noqa [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108 [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] 'LOCATION' : '127.0.0.1:11211' [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] ^ [Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] SyntaxError: invalid syntax

In /srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py:

DEBUG = True TEMPLATE_DEBUG = DEBUG

Required for Django 1.5.

If horizon is running in production (DEBUG is False), set this

with the list of host/domain names that the application can serve.

For more information see:

https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts

ALLOWED_HOSTS = ['localhost','.example.com.','.example.com.','.example.com.'] #These are set to an actual name in my config file#

Set SSL proxy settings:

For Django 1.4+ pass this header from the proxy after terminating the SSL,

and don't forget to strip it from the client's request.

For more information see:

https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')

If Horizon is being served through SSL, then uncomment the following two

settings to better secure the cookies from security exploits

CSRF_COOKIE_SECURE = True

SESSION_COOKIE_SECURE = True

Overrides for OpenStack API versions. Use this setting to force the

OpenStack dashboard to use a specific API version for a given service API.

NOTE: The version should be formatted as it appears in the URL for the

service API. For example, The identity service APIs have inconsistent

use of the decimal point, so valid options would be "2.0" or "3".

OPENSTACK_API_VERSIONS = {

"identity": 3,

"volume": 2

}

Set this to True if running on multi-domain model. When this is enabled, it

will require user to enter the Domain name in addition to username for login.

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False

Overrides the default domain used when running on single-domain model

with Keystone V3. All entities will be created in the default domain.

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'

Set Console type:

valid options would be "AUTO", "VNC", "SPICE" or "RDP"

CONSOLE_TYPE = "AUTO"

Default OpenStack Dashboard configuration.

HORIZON_CONFIG = { 'dashboards': ('project', 'admin', 'settings',), 'default_dashboard': 'project', 'user_home': 'openstack_dashboard.views.get_user_home', 'ajax_queue_limit': 10, 'auto_fade_alerts': { 'delay': 3000, 'fade_duration': 1500, 'types': ['alert-success', 'alert-info'] }, 'help_url': "http://docs.openstack.org", 'exceptions': {'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED}, }

Specify a regular expression to validate user passwords.

HORIZON_CONFIG["password_validator"] = {

"regex": '.*',

"help_text": _("Your password does not meet the requirements.")

}

Disable simplified floating IP address management for deployments with

multiple floating IP pools or complex network requirements.

HORIZON_CONFIG["simple_ip_management"] = False

Turn off browser autocompletion for the login form if so desired.

HORIZON_CONFIG["password_autocomplete"] = "off"

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))

Set custom secret key:

You can either set it to a specific value or you can let horizion generate a

default secret key that is unique on this machine, e.i. regardless of the

amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there

may be situations where you would want to set this explicitly, e.g. when

multiple dashboard instances are distributed on different machines (usually

behind a load-balancer). Either you have to make sure that a session gets all

requests routed to the same dashboard instance or you set the same SECRET_KEY

for all of them.

from horizon.utils import secret_key SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))

We recommend you use memcached for development; otherwise after every reload

of the django development server, you will have to login again. To use

memcached set CACHES to something like

CACHES = {

'default': {

'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',

'LOCATION' : '127.0.0.1:11211',

}

}

CACHES = { 'default': { 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' 'LOCATION' : '127.0.0.1:11211' } }

Send email to the console by default

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

Or send them to /dev/null

EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

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!'

For multiple regions uncomment this configuration, and add (endpoint, title).

AVAILABLE_REGIONS = [

('http://cluster1.example.com:5000/v2.0', 'cluster1'),

('http://cluster2.example.com:5000/v2.0', 'cluster2'),

]

OPENSTACK_HOST = "153.64.33.20" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"

Disable SSL certificate checks (useful for self-signed certificates):

OPENSTACK_SSL_NO_VERIFY = True

#

TODO(tres): Remove these once Keystone has an API to identify auth backend.

OPENSTACK_KEYSTONE_BACKEND = { 'name': 'native', 'can_edit_user': True, 'can_edit_group': True, 'can_edit_project': True, 'can_edit_domain': True, 'can_edit_role': True }

Setting this to True, will add a new "Retrieve Password" action on instance,

allowing Admin session password retrieval/decryption.

OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False

The Xen Hypervisor has the ability to set the mount point for volumes

attached to instances (other Hypervisors currently do not). Setting

can_set_mount_point to True will add the option to set the mount point

from the UI.

OPENSTACK_HYPERVISOR_FEATURES = { 'can_set_mount_point': False, 'can_set_password': False, }

The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional

services provided by neutron. Options currently available are load

balancer service, security groups, quotas, VPN service.

OPENSTACK_NEUTRON_NETWORK = { 'enable_lb': False, 'enable_firewall': False, 'enable_quotas': True, 'enable_vpn': False, # The profile_support option is used to detect if an external router can be # configured via the dashboard. When using specific plugins the # profile_support can be turned on if needed. 'profile_support': None, #'profile_support': 'cisco', }

The OPENSTACK_IMAGE_BACKEND settings can be used to customize features

in the OpenStack Dashboard related to the Image service, such as the list

of supported image formats.

OPENSTACK_IMAGE_BACKEND = {

'image_formats': [

('', ''),

('aki', _('AKI - Amazon Kernel Image')),

('ami', _('AMI - Amazon Machine Image')),

('ari', _('ARI - Amazon Ramdisk Image')),

('iso', _('ISO - Optical Disk Image')),

('qcow2', _('QCOW2 - QEMU Emulator')),

('raw', _('Raw')),

('vdi', _('VDI')),

('vhd', _('VHD')),

('vmdk', _('VMDK'))

]

}

The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for

image custom property attributes that appear on image detail pages.

IMAGE_CUSTOM_PROPERTY_TITLES = { "architecture": _("Architecture"), "kernel_id": _("Kernel ID"), "ramdisk_id": _("Ramdisk ID"), "image_state": _("Euca2ools state"), "project_id": _("Project ID"), "image_type": _("Image Type") } .... yada yada

Can anyone please assist? Im losing my mind.

Error 500 when loading OpenStack Dashboard

We are configuring Icehouse On SLES 11 SP3 3 Node Architecture 1Node = Controller 1Node = Compute 1Node = Dashboard

All hosts can reach one another as well my machine on a different network.

/var/log/apache2/openstack_dashboard_error.log:

[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]     __import__(name)
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module>
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]     from local.local_settings import *  # noqa
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]      'LOCATION' : '127.0.0.1:11211'
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]                 ^
[Fri Apr 25 15:02:53 2014] [error] [client 153.64.146.152]  SyntaxError: invalid syntax
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] mod_wsgi (pid=7356): Exception occurred processing WSGI script '/srv/www/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152] Traceback (most recent call last):
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     self.load_middleware()
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py", line 46, in load_middleware
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     self._setup(name)
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     self._wrapped = Settings(settings_module)
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     __import__(name)
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module>
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]     from local.local_settings import *  # noqa
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]      'LOCATION' : '127.0.0.1:11211'
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]                 ^
[Fri Apr 25 15:04:19 2014] [error] [client 153.64.146.152]  SyntaxError: invalid syntax
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] mod_wsgi (pid=7357): Exception occurred processing WSGI script '/srv/www/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152] Traceback (most recent call last):
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     self.load_middleware()
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py", line 46, in load_middleware
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     self._setup(name)
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     self._wrapped = Settings(settings_module)
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/conf/__init__.py", line 128, in __init__
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     __import__(name)
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 219, in <module>
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]     from local.local_settings import *  # noqa
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]   File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 108
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]      'LOCATION' : '127.0.0.1:11211'
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]                 ^
[Fri Apr 25 15:04:22 2014] [error] [client 153.64.146.152]  SyntaxError: invalid syntax

syntax

In /srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py:

DEBUG = True
TEMPLATE_DEBUG = DEBUG

DEBUG # Required for Django 1.5.

1.5. # If horizon is running in production (DEBUG is False), set this

this # with the list of host/domain names that the application can serve.

serve. # For more information see:

https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts

see: # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['localhost','.example.com.','.example.com.','.example.com.'] #These are set to an actual name in my config file#

file# # Set SSL proxy settings:

settings: # For Django 1.4+ pass this header from the proxy after terminating the SSL,

SSL, # and don't forget to strip it from the client's request.

request. # For more information see:

https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header

see: # https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header # SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')

'https') # If Horizon is being served through SSL, then uncomment the following two

two # settings to better secure the cookies from security exploits

CSRF_COOKIE_SECURE = True

SESSION_COOKIE_SECURE = True

exploits #CSRF_COOKIE_SECURE = True #SESSION_COOKIE_SECURE = True # Overrides for OpenStack API versions. Use this setting to force the

the # OpenStack dashboard to use a specific API version for a given service API.

API. # NOTE: The version should be formatted as it appears in the URL for the

the # service API. For example, The identity service APIs have inconsistent

inconsistent # use of the decimal point, so valid options would be "2.0" or "3".

"3". # OPENSTACK_API_VERSIONS = {

{ # "identity": 3,

3, # "volume": 2

}

2 # } # Set this to True if running on multi-domain model. When this is enabled, it

it # will require user to enter the Domain name in addition to username for login.

login. # OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False

False # Overrides the default domain used when running on single-domain model

model # with Keystone V3. All entities will be created in the default domain.

domain. # OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'

'Default' # Set Console type:

type: # valid options would be "AUTO", "VNC", "SPICE" or "RDP"

"RDP" # CONSOLE_TYPE = "AUTO"

"AUTO" # Default OpenStack Dashboard configuration.

configuration. HORIZON_CONFIG = { 'dashboards': ('project', 'admin', 'settings',), 'default_dashboard': 'project', 'user_home': 'openstack_dashboard.views.get_user_home', 'ajax_queue_limit': 10, 'auto_fade_alerts': { 'delay': 3000, 'fade_duration': 1500, 'types': ['alert-success', 'alert-info'] }, 'help_url': "http://docs.openstack.org", 'exceptions': {'recoverable': exceptions.RECOVERABLE, 'not_found': exceptions.NOT_FOUND, 'unauthorized': exceptions.UNAUTHORIZED}, }

} # Specify a regular expression to validate user passwords.

passwords. # HORIZON_CONFIG["password_validator"] = {

{ # "regex": '.*',

'.*', # "help_text": _("Your password does not meet the requirements.")

}

requirements.") # } # Disable simplified floating IP address management for deployments with

with # multiple floating IP pools or complex network requirements.

requirements. # HORIZON_CONFIG["simple_ip_management"] = False

False # Turn off browser autocompletion for the login form if so desired.

desired. # HORIZON_CONFIG["password_autocomplete"] = "off"

"off" LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))

os.path.dirname(os.path.abspath(__file__)) # Set custom secret key:

key: # You can either set it to a specific value or you can let horizion generate a

a # default secret key that is unique on this machine, e.i. regardless of the

the # amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there

there # may be situations where you would want to set this explicitly, e.g. when

when # multiple dashboard instances are distributed on different machines (usually

(usually # behind a load-balancer). Either you have to make sure that a session gets all

all # requests routed to the same dashboard instance or you set the same SECRET_KEY

SECRET_KEY # for all of them.

them. from horizon.utils import secret_key SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))

'.secret_key_store')) # We recommend you use memcached for development; otherwise after every reload

reload # of the django development server, you will have to login again. To use

use # memcached set CACHES to something like

like # CACHES = {

{ # 'default': {

{ # 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',

'django.core.cache.backends.memcached.MemcachedCache', # 'LOCATION' : '127.0.0.1:11211',

}

}

'127.0.0.1:11211', # } #} CACHES = { 'default': { 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' 'LOCATION' : '127.0.0.1:11211' } }

} # Send email to the console by default

default EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

'django.core.mail.backends.console.EmailBackend' # Or send them to /dev/null

EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'

/dev/null #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' # Configure these for your outgoing email host

host # EMAIL_HOST = 'smtp.my-company.com'

'smtp.my-company.com' # EMAIL_PORT = 25

25 # EMAIL_HOST_USER = 'djangomail'

'djangomail' # EMAIL_HOST_PASSWORD = 'top-secret!'

'top-secret!' # For multiple regions uncomment this configuration, and add (endpoint, title).

title). # AVAILABLE_REGIONS = [

[ # ('http://cluster1.example.com:5000/v2.0', 'cluster1'),

'cluster1'), # ('http://cluster2.example.com:5000/v2.0', 'cluster2'),

]

'cluster2'), # ] OPENSTACK_HOST = "153.64.33.20" OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"

"admin" # Disable SSL certificate checks (useful for self-signed certificates):

certificates): # OPENSTACK_SSL_NO_VERIFY = True

#

True # # TODO(tres): Remove these once Keystone has an API to identify auth backend.

backend. OPENSTACK_KEYSTONE_BACKEND = { 'name': 'native', 'can_edit_user': True, 'can_edit_group': True, 'can_edit_project': True, 'can_edit_domain': True, 'can_edit_role': True }

Setting } #Setting this to True, will add a new "Retrieve Password" action on instance,

allowing instance, #allowing Admin session password retrieval/decryption.

OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False

retrieval/decryption. #OPENSTACK_ENABLE_PASSWORD_RETRIEVE = False # The Xen Hypervisor has the ability to set the mount point for volumes

volumes # attached to instances (other Hypervisors currently do not). Setting

Setting # can_set_mount_point to True will add the option to set the mount point

point # from the UI.

UI. OPENSTACK_HYPERVISOR_FEATURES = { 'can_set_mount_point': False, 'can_set_password': False, }

} # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional

optional # services provided by neutron. Options currently available are load

load # balancer service, security groups, quotas, VPN service.

service. OPENSTACK_NEUTRON_NETWORK = { 'enable_lb': False, 'enable_firewall': False, 'enable_quotas': True, 'enable_vpn': False, # The profile_support option is used to detect if an external router can be # configured via the dashboard. When using specific plugins the # profile_support can be turned on if needed. 'profile_support': None, #'profile_support': 'cisco', }

} # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features

features # in the OpenStack Dashboard related to the Image service, such as the list

list # of supported image formats.

formats. # OPENSTACK_IMAGE_BACKEND = {

{ # 'image_formats': [

[ # ('', ''),

''), # ('aki', _('AKI - Amazon Kernel Image')),

Image')), # ('ami', _('AMI - Amazon Machine Image')),

Image')), # ('ari', _('ARI - Amazon Ramdisk Image')),

Image')), # ('iso', _('ISO - Optical Disk Image')),

Image')), # ('qcow2', _('QCOW2 - QEMU Emulator')),

Emulator')), # ('raw', _('Raw')),

_('Raw')), # ('vdi', _('VDI')),

_('VDI')), # ('vhd', _('VHD')),

_('VHD')), # ('vmdk', _('VMDK'))

]

}

_('VMDK')) # ] # } # The IMAGE_CUSTOM_PROPERTY_TITLES settings is used to customize the titles for

for # image custom property attributes that appear on image detail pages.

pages. IMAGE_CUSTOM_PROPERTY_TITLES = { "architecture": _("Architecture"), "kernel_id": _("Kernel ID"), "ramdisk_id": _("Ramdisk ID"), "image_state": _("Euca2ools state"), "project_id": _("Project ID"), "image_type": _("Image Type") } .... yada yada

yada

Can anyone please assist? Im losing my mind.