Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Julie Pichon,

CACHES = { 'default': { 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' } I removed the 'LOCATION' : '127.0.0.1:11211' settings from the stanza (as recommeded by the open source doc.

Then I changed the following ALLOWED_HOSTS = ['*']

The dashboard started working !

Here is my /etc/openstack-dashboard/local_settings

98  # CACHES = {
99  #    'default': {

100 # 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache', 101 # 'LOCATION' : '127.0.0.1:11211', 102 # } 103 #} 104 CACHES = { 105 'default': { 106 'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache' 107 } 108 } 109 # Send email to the console by default 110 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' 111 # Or send them to /dev/null 112 #EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' 113 114 # Configure these for your outgoing email host 115 # EMAIL_HOST = 'smtp.my-company.com' 116 # EMAIL_PORT = 25 117 # EMAIL_HOST_USER = 'djangomail' 118 # EMAIL_HOST_PASSWORD = 'top-secret!' 119 120 # For multiple regions uncomment this configuration, and add (endpoint, title). 121 # AVAILABLE_REGIONS = [ 122 # ('http://cluster1.example.com:5000/v2.0', 'cluster1'), 123 # ('http://cluster2.example.com:5000/v2.0', 'cluster2'), 124 # ] 125 126 #OPENSTACK_HOST = "127.0.0.1" 127 OPENSTACK_HOST = "controller" 128 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST 129 OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member" 130 131 # Disable SSL certificate checks (useful for self-signed certificates): 132 # OPENSTACK_SSL_NO_VERIFY = True 133 134 # The CA certificate to use to verify SSL connections 135 # OPENSTACK_SSL_CACERT = '/path/to/cacert.pem' 136 137 # The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the 138 # capabilities of the auth backend for Keystone. 139 # If Keystone has been configured to use LDAP as the auth backend then set 140 # can_edit_user to False and name to 'ldap'. 141 # 142 # TODO(tres): Remove these once Keystone has an API to identify auth backend. 143 OPENSTACK_KEYSTONE_BACKEND = { 144 'name': 'native', 145 'can_edit_user': True, 146 'can_edit_group': True, 147 'can_edit_project': True, 148 'can_edit_domain': True, 149 'can_edit_role': True 150 } 151 152 OPENSTACK_HYPERVISOR_FEATURES = { 153 'can_set_mount_point': False, 154 155 # NOTE: as of Grizzly this is not yet supported in Nova so enabling this 156 # setting will not do anything useful 157 'can_encrypt_volumes': False 158 } 159 160 # The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional 161 # services provided by neutron. Options currenly available are load 162 # balancer service, security groups, quotas, VPN service. 163 OPENSTACK_NEUTRON_NETWORK = { 164 'enable_lb': False, 165 'enable_firewall': False, 166 'enable_quotas': True, 167 'enable_vpn': False, 168 # The profile_support option is used to detect if an external router can be 169 # configured via the dashboard. When using specific plugins the 170 # profile_support can be turned on if needed. 171 'profile_support': None, 172 #'profile_support': 'cisco', 173 } 174 175 # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features 176 # in the OpenStack Dashboard related to the Image service, such as the list 177 # of supported image formats. 178 # OPENSTACK_IMAGE_BACKEND = { 179 # 'image_formats': [ 180 # ('', ''), 181 # ('aki', _('AKI - Amazon Kernel Image')), 182 # ('ami', _('AMI - Amazon Machine Image')), 183 # ('ari', _('ARI - Amazon Ramdisk Image')), 184 # ('iso', _('ISO - Optical Disk Image')), 185 # ('qcow2', _('QCOW2 - QEMU Emulator')), 186 # ('raw', _('Raw')), 187 # ('vdi', _('VDI')), 188 # ('vhd', _('VHD')), 189 # ('vmdk', _('VMDK')) 190 # ] 191 # } 192 193 # OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints 194 # in the Keystone service catalog. Use this setting when Horizon is running 195 # external to the OpenStack environment. The default is 'publicURL'. 196 #OPENSTACK_ENDPOINT_TYPE = "publicURL" 197 198 # SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the 199 # case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints 200 # in the Keystone service catalog. Use this setting when Horizon is running 201 # external to the OpenStack environment. The default is None. This 202 # value should differ from OPENSTACK_ENDPOINT_TYPE if used. 203 #SECONDARY_ENDPOINT_TYPE = "publicURL" 204 205 # The number of objects (Swift containers/objects or images) to display 206 # on a single page before providing a paging element (a "more" link) 207 # to paginate results. 208 API_RESULT_LIMIT = 1000 209 API_RESULT_PAGE_SIZE = 20 210 211 # The timezone of the server. This should correspond with the timezone 212 # of your entire OpenStack installation, and hopefully be in UTC. 213 TIME_ZONE = "UTC" 214 215 # When launching an instance, the menu of available flavors is 216 # sorted by RAM usage, ascending. Provide a callback method here 217 # (and/or a flag for reverse sort) for the sorted() method if you'd 218 # like a different behaviour. For more info, see 219 # http://docs.python.org/2/library/functions.html#sorted 220 # CREATE_INSTANCE_FLAVOR_SORT = { 221 # 'key': my_awesome_callback_method, 222 # 'reverse': False, 223 # } 224 225 # The Horizon Policy Enforcement engine uses these values to load per service 226 # policy rule files. The content of these files should match the files the 227 # OpenStack services are using to determine role based access control in the 228 # target installation. 229 230 # Path to directory containing policy.json files 231 # POLICY_FILES_PATH = os.path.join(ROOT_PATH, "conf") 232 POLICY_FILES_PATH = '/etc/openstack-dashboard' 233 # Map of local copy of service policy files 234 POLICY_FILES = { 235 'identity': 'keystone_policy.json', 236 'compute': 'nova_policy.json' 237 } 238 239 # Trove user and database extension support. By default support for 240 # creating users and databases on database instances is turned on. 241 # To disable these extensions set the permission here to something 242 # unusable such as ["!"]. 243 # TROVE_ADD_USER_PERMS = [] 244 # TROVE_ADD_DATABASE_PERMS = [] 245 246 LOGGING = { 247 'version': 1, 248 # When set to True this will disable all logging except 249 # for loggers specified in this configuration dictionary. Note that 250 # if nothing is specified here and disable_existing_loggers is True, 251 # django.db.backends will still log unless it is disabled explicitly. 252 'disable_existing_loggers': False, 253 'handlers': { 254 'null': { 255 'level': 'DEBUG', 256 'class': 'django.utils.log.NullHandler', 257 }, 258 'console': { 259 # Set the level to "DEBUG" for verbose output logging. 260 'level': 'INFO', 262 }, 263 }, 264 'loggers': { 265 # Logging from django.db.backends is VERY verbose, send to null 266 # by default. 267 'django.db.backends': { 268 'handlers': ['null'], 269 'propagate': False, 270 }, 271 'requests': { 272 'handlers': ['null'], 273 'propagate': False, 274 }, 275 'horizon': { 276 'handlers': ['console'], 277 'level': 'DEBUG', 278 'propagate': False, 279 }, 280 'openstack_dashboard': { 281 'handlers': ['console'], 282 'level': 'DEBUG', 283 'propagate': False, 284 }, 285 'novaclient': { 286 'handlers': ['console'], 287 'level': 'DEBUG', 288 'propagate': False, 289 }, 290 'cinderclient': { 291 'handlers': ['console'], 292 'level': 'DEBUG', 293 'propagate': False, 294 }, 295 'keystoneclient': { 296 'handlers': ['console'], 297 'level': 'DEBUG', 298 'propagate': False, 299 }, 300 'glanceclient': { 301 'handlers': ['console'], 302 'level': 'DEBUG', 303 'propagate': False, 304 }, 305 'neutronclient': { 306 'handlers': ['console'], 307 'level': 'DEBUG', 308 'propagate': False, 309 }, 310 'heatclient': { 311 'handlers': ['console'], 312 'level': 'DEBUG', ....