<div dir="ltr"><div class="markdown-here-wrapper" id="markdown-here-wrapper-128786" style><p style="margin:1.2em 0px!important">Hello folks;</p>
<p style="margin:1.2em 0px!important">I have problem with dashboard. I enter login and password, page is loading for a while (about 10s) and then I receive an Server Error.<br>I managed to log in once just after dashboard installation, after that I have been doing some admin stuff with Nova only and from that moment dashboard does not work properly.</p>


<p style="margin:1.2em 0px!important">Logs below:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="language-code" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial">[root@openstack182 ~]<span class="comment" style="color:rgb(153,153,136);font-style:italic"># tail /var/log/httpd/access_log </span>

<span class="number" style="color:rgb(0,153,153)">10.132</span><span class="number" style="color:rgb(0,153,153)">.28</span><span class="number" style="color:rgb(0,153,153)">.31</span> - - [<span class="number" style="color:rgb(0,153,153)">26</span><span class="regexp" style="color:rgb(0,153,38)">/Aug/2013:20:15:58 +0200] "GET /dashboard HTTP/1.1" 302 20 "<a href="http://10.133.31.136/dashboard">http://10.133.31.136/dashboard</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:15:58 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard/admin/ HTTP/1.1" 500 750 "<a href="http://10.133.31.136/dashboard">http://10.133.31.136/dashboard</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:19:05 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard/ HTTP/1.1" 200 747 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:19:07 +0200] "</span>POST <span class="regexp" style="color:rgb(0,153,38)">/dashboard/auth/login/ HTTP/1.1" 302 20 "<a href="http://10.133.31.136/dashboard/">http://10.133.31.136/dashboard/</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:19:08 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard HTTP/1.1" 302 20 "<a href="http://10.133.31.136/dashboard/">http://10.133.31.136/dashboard/</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:19:08 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard/admin/ HTTP/1.1" 500 750 "<a href="http://10.133.31.136/dashboard/">http://10.133.31.136/dashboard/</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:26:10 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard HTTP/1.1" 200 746 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:26:13 +0200] "</span>POST <span class="regexp" style="color:rgb(0,153,38)">/dashboard/auth/login/ HTTP/1.1" 302 20 "<a href="http://10.133.31.136/dashboard">http://10.133.31.136/dashboard</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:26:13 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard HTTP/1.1" 302 20 "<a href="http://10.133.31.136/dashboard">http://10.133.31.136/dashboard</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"
10.132.28.31 - - [26/Aug/2013:20:26:13 +0200] "</span>GET <span class="regexp" style="color:rgb(0,153,38)">/dashboard/admin/ HTTP/1.1" 500 750 "<a href="http://10.133.31.136/dashboard">http://10.133.31.136/dashboard</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/</span><span class="number" style="color:rgb(0,153,153)">23.0</span><span class="string" style="color:rgb(221,17,68)">"</span></code></pre>


<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="language-code" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial">[root@openstack182 ~]# tail /var/log/httpd/error_log 
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">14</span>:<span class="number" style="color:rgb(0,153,153)">11</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Digest: generating secret <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> digest authentication ...
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">14</span>:<span class="number" style="color:rgb(0,153,153)">11</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Digest: done
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">14</span>:<span class="number" style="color:rgb(0,153,153)">11</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Apache/<span class="number" style="color:rgb(0,153,153)">2.2</span><span class="number" style="color:rgb(0,153,153)">.15</span> (Unix) DAV/<span class="number" style="color:rgb(0,153,153)">2</span> mod_ssl/<span class="number" style="color:rgb(0,153,153)">2.2</span><span class="number" style="color:rgb(0,153,153)">.15</span> OpenSSL/<span class="number" style="color:rgb(0,153,153)">1.0</span><span class="number" style="color:rgb(0,153,153)">.0</span>-fips mod_wsgi/<span class="number" style="color:rgb(0,153,153)">3.2</span> Python/<span class="number" style="color:rgb(0,153,153)">2.6</span><span class="number" style="color:rgb(0,153,153)">.6</span> configured <span class="comment" style="color:rgb(153,153,136);font-style:italic">-- resuming normal operations</span>
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">47</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [error] DeprecationWarning: The SECRET_KEY setting must <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">not</span> be empty.DeprecationWarning: Translations <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">in</span> the project directory aren<span class="attribute" style="color:rgb(0,128,128)">'t</span> supported anymore. <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">Use</span> the LOCALE_PATHS setting instead.DeprecationWarning: The syntax <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> the url template tag <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">is</span> changing. Load the `url` tag from the `future` tag <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">library</span> <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">to</span> start using the <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">new</span> behavior.DeprecationWarning: Authentication backends without a `supports_inactive_user` <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">attribute</span> are deprecated. Please define it <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">in</span> <class <span class="attribute" style="color:rgb(0,128,128)">'openstack_auth</span>.backend.KeystoneBackend'>.
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">47</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] caught SIGTERM, shutting down
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">48</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] SELinux policy enabled; httpd running as <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">context</span> unconfined_u:system_r:httpd_t:s0
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">48</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">48</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Digest: generating secret <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> digest authentication ...
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">48</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Digest: done
[Mon Aug <span class="number" style="color:rgb(0,153,153)">26</span> <span class="number" style="color:rgb(0,153,153)">20</span>:<span class="number" style="color:rgb(0,153,153)">18</span>:<span class="number" style="color:rgb(0,153,153)">48</span> <span class="number" style="color:rgb(0,153,153)">2013</span>] [notice] Apache/<span class="number" style="color:rgb(0,153,153)">2.2</span><span class="number" style="color:rgb(0,153,153)">.15</span> (Unix) DAV/<span class="number" style="color:rgb(0,153,153)">2</span> mod_ssl/<span class="number" style="color:rgb(0,153,153)">2.2</span><span class="number" style="color:rgb(0,153,153)">.15</span> OpenSSL/<span class="number" style="color:rgb(0,153,153)">1.0</span><span class="number" style="color:rgb(0,153,153)">.0</span>-fips mod_wsgi/<span class="number" style="color:rgb(0,153,153)">3.2</span> Python/<span class="number" style="color:rgb(0,153,153)">2.6</span><span class="number" style="color:rgb(0,153,153)">.6</span> configured <span class="comment" style="color:rgb(153,153,136);font-style:italic">-- resuming normal operations</span></code></pre>


<p style="margin:1.2em 0px!important">Keystone log does not shows any authentication problem.</p>
<p style="margin:1.2em 0px!important">Conf files:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="language-code" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial">[root@openstack182 ~]# cat /etc/openstack-dashboard/local_settings
import os

from django.utils.translation import ugettext_lazy as _

from openstack_dashboard import exceptions

DEBUG = False
TEMPLATE_DEBUG = DEBUG

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Set SSL proxy settings:</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># For Django 1.4+ pass this header from the proxy after terminating the SSL,</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># and don't forget to strip it from the client's request.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># For more information see:</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># <a href="https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header">https://docs.djangoproject.com/en/1.4/ref/settings/#secure-proxy-ssl-header</a></span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># If Horizon is being served through SSL, then uncomment the following two</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># settings to better secure the cookies from security exploits</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#CSRF_COOKIE_SECURE = True</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#SESSION_COOKIE_SECURE = True</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Default OpenStack Dashboard configuration.</span>
HORIZON_CONFIG = {
    <span class="string" style="color:rgb(221,17,68)">'dashboards'</span>: (<span class="string" style="color:rgb(221,17,68)">'project'</span>, <span class="string" style="color:rgb(221,17,68)">'admin'</span>, <span class="string" style="color:rgb(221,17,68)">'settings'</span>,),
    <span class="string" style="color:rgb(221,17,68)">'default_dashboard'</span>: <span class="string" style="color:rgb(221,17,68)">'project'</span>,
    <span class="string" style="color:rgb(221,17,68)">'user_home'</span>: <span class="string" style="color:rgb(221,17,68)">'openstack_dashboard.views.get_user_home'</span>,
    <span class="string" style="color:rgb(221,17,68)">'ajax_queue_limit'</span>: <span class="number" style="color:rgb(0,153,153)">10</span>,
    <span class="string" style="color:rgb(221,17,68)">'auto_fade_alerts'</span>: {
        <span class="string" style="color:rgb(221,17,68)">'delay'</span>: <span class="number" style="color:rgb(0,153,153)">3000</span>,
        <span class="string" style="color:rgb(221,17,68)">'fade_duration'</span>: <span class="number" style="color:rgb(0,153,153)">1500</span>,
        <span class="string" style="color:rgb(221,17,68)">'types'</span>: [<span class="string" style="color:rgb(221,17,68)">'alert-success'</span>, <span class="string" style="color:rgb(221,17,68)">'alert-info'</span>]
    },
    <span class="string" style="color:rgb(221,17,68)">'help_url'</span>: <span class="string" style="color:rgb(221,17,68)">"<a href="http://docs.openstack.org">http://docs.openstack.org</a>"</span>,
    <span class="string" style="color:rgb(221,17,68)">'exceptions'</span>: {<span class="string" style="color:rgb(221,17,68)">'recoverable'</span>: exceptions.RECOVERABLE,
                   <span class="string" style="color:rgb(221,17,68)">'not_found'</span>: exceptions.NOT_FOUND,
                   <span class="string" style="color:rgb(221,17,68)">'unauthorized'</span>: exceptions.UNAUTHORIZED},
}

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Specify a regular expression to validate user passwords.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># HORIZON_CONFIG["password_validator"] = {</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#     "regex": '.*',</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#     "help_text": _("Your password does not meet the requirements.")</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># }</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Disable simplified floating IP address management for deployments with</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># multiple floating IP pools or complex network requirements.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># HORIZON_CONFIG["simple_ip_management"] = False</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Turn off browser autocompletion for the login form if so desired.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># HORIZON_CONFIG["password_autocomplete"] = "off"</span>

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

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Set custom secret key:</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># You can either set it to a specific value or you can let horizion generate a</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># default secret key that is unique on this machine, e.i. regardless of the</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># may be situations where you would want to set this explicitly, e.g. when</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># multiple dashboard instances are distributed on different machines (usually</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># behind a load-balancer). Either you have to make sure that a session gets all</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># requests routed to the same dashboard instance or you set the same SECRET_KEY</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># for all of them.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># from horizon.utils import secret_key</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># We recommend you use memcached for development; otherwise after every reload</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># of the django development server, you will have to login again. To use</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># memcached set CACHES to something like</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># CACHES = {</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#    'default': {</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#        'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache'</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#        #'LOCATION' : '<a href="http://127.0.0.1:11211">127.0.0.1:11211</a>',</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#    }</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#}</span>

CACHES = {
    <span class="string" style="color:rgb(221,17,68)">'default'</span>: {
        <span class="string" style="color:rgb(221,17,68)">'BACKEND'</span> : <span class="string" style="color:rgb(221,17,68)">'django.core.cache.backends.locmem.LocMemCache'</span>,
        <span class="string" style="color:rgb(221,17,68)">'LOCATION'</span> : <span class="string" style="color:rgb(221,17,68)">'<a href="http://192.168.0.1:11211">192.168.0.1:11211</a>'</span>
    }
}

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Send email to the console by default</span>
EMAIL_BACKEND = <span class="string" style="color:rgb(221,17,68)">'django.core.mail.backends.console.EmailBackend'</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Or send them to /dev/null</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Configure these for your outgoing email host</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># EMAIL_HOST = '<a href="http://smtp.my-company.com">smtp.my-company.com</a>'</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># EMAIL_PORT = 25</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># EMAIL_HOST_USER = 'djangomail'</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># EMAIL_HOST_PASSWORD = 'top-secret!'</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># For multiple regions uncomment this configuration, and add (endpoint, title).</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># AVAILABLE_REGIONS = [</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#     ('<a href="http://cluster1.example.com:5000/v2.0">http://cluster1.example.com:5000/v2.0</a>', 'cluster1'),</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#     ('<a href="http://cluster2.example.com:5000/v2.0">http://cluster2.example.com:5000/v2.0</a>', 'cluster2'),</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># ]</span>

OPENSTACK_HOST = <span class="string" style="color:rgb(221,17,68)">"192.168.0.1"</span>
OPENSTACK_KEYSTONE_URL = <span class="string" style="color:rgb(221,17,68)">"http://%s:5000/v2.0"</span> % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = <span class="string" style="color:rgb(221,17,68)">"Member"</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># Disable SSL certificate checks (useful for self-signed certificates):</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># OPENSTACK_SSL_NO_VERIFY = True</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># capabilities of the auth backend for Keystone.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># If Keystone has been configured to use LDAP as the auth backend then set</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># can_edit_user to False and name to 'ldap'.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># TODO(tres): Remove these once Keystone has an API to identify auth backend.</span>
OPENSTACK_KEYSTONE_BACKEND = {
    <span class="string" style="color:rgb(221,17,68)">'name'</span>: <span class="string" style="color:rgb(221,17,68)">'native'</span>,
    <span class="string" style="color:rgb(221,17,68)">'can_edit_user'</span>: True,
    <span class="string" style="color:rgb(221,17,68)">'can_edit_project'</span>: True
}

OPENSTACK_HYPERVISOR_FEATURES = {
    <span class="string" style="color:rgb(221,17,68)">'can_set_mount_point'</span>: False,

    # NOTE: as of Grizzly <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">this</span> is not yet supported in Nova so enabling <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">this</span>
    # setting will not <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">do</span> anything useful
    <span class="string" style="color:rgb(221,17,68)">'can_encrypt_volumes'</span>: False
}

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># The OPENSTACK_QUANTUM_NETWORK settings can be used to enable optional</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># services provided by quantum.  Currently only the load balancer service</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># is available.</span>
OPENSTACK_QUANTUM_NETWORK = {
    <span class="string" style="color:rgb(221,17,68)">'enable_lb'</span>: False
}

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># in the Keystone service catalog. Use this setting when Horizon is running</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># external to the OpenStack environment. The default is 'internalURL'.</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold">#OPENSTACK_ENDPOINT_TYPE = "publicURL"</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># The number of objects (Swift containers/objects or images) to display</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># on a single page before providing a paging element (a "more" link)</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># to paginate results.</span>
API_RESULT_LIMIT = <span class="number" style="color:rgb(0,153,153)">1000</span>
API_RESULT_PAGE_SIZE = <span class="number" style="color:rgb(0,153,153)">20</span>

<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># The timezone of the server. This should correspond with the timezone</span>
<span class="preprocessor" style="color:rgb(153,153,153);font-weight:bold"># of your entire OpenStack installation, and hopefully be in UTC.</span>
TIME_ZONE = <span class="string" style="color:rgb(221,17,68)">"UTC"</span>

LOGGING = {
    <span class="string" style="color:rgb(221,17,68)">'version'</span>: <span class="number" style="color:rgb(0,153,153)">1</span>,
    # When <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">set</span> to True <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">this</span> will disable all logging except
    # <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> loggers specified in <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">this</span> configuration dictionary. Note that
    # if nothing is specified here and disable_existing_loggers is True,
    # django.db.backends will still log unless it is disabled explicitly.
    <span class="string" style="color:rgb(221,17,68)">'disable_existing_loggers'</span>: False,
    <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: {
        <span class="string" style="color:rgb(221,17,68)">'null'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'level'</span>: <span class="string" style="color:rgb(221,17,68)">'DEBUG'</span>,
            <span class="string" style="color:rgb(221,17,68)">'class'</span>: <span class="string" style="color:rgb(221,17,68)">'django.utils.log.NullHandler'</span>,
        },
        <span class="string" style="color:rgb(221,17,68)">'console'</span>: {
            # Set the level to <span class="string" style="color:rgb(221,17,68)">"DEBUG"</span> <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">for</span> verbose output logging.
            <span class="string" style="color:rgb(221,17,68)">'level'</span>: <span class="string" style="color:rgb(221,17,68)">'INFO'</span>,
            <span class="string" style="color:rgb(221,17,68)">'class'</span>: <span class="string" style="color:rgb(221,17,68)">'logging.StreamHandler'</span>,
        },
    },
    <span class="string" style="color:rgb(221,17,68)">'loggers'</span>: {
        # Logging from django.db.backends is<span class="constant"> VERY </span>verbose, send to <span class="literal">null</span>
        # by <span class="keyword" style="color:rgb(51,51,51);font-weight:bold">default</span>.
        <span class="string" style="color:rgb(221,17,68)">'django.db.backends'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'null'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'requests'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'null'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'horizon'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'openstack_dashboard'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'novaclient'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'keystoneclient'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'glanceclient'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        },
        <span class="string" style="color:rgb(221,17,68)">'nose.plugins.manager'</span>: {
            <span class="string" style="color:rgb(221,17,68)">'handlers'</span>: [<span class="string" style="color:rgb(221,17,68)">'console'</span>],
            <span class="string" style="color:rgb(221,17,68)">'propagate'</span>: False,
        }
    }
}</code></pre>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="language-code" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline;white-space:pre;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block;padding:0.5em;color:rgb(51,51,51);background-color:rgb(248,248,255);background-repeat:initial initial">[root@openstack182 ~]<span class="comment" style="color:rgb(153,153,136);font-style:italic"># cat /etc/sysconfig/memcached </span>
PORT=<span class="string" style="color:rgb(221,17,68)">"11211"</span>
<span class="keyword" style="color:rgb(51,51,51);font-weight:bold">USER</span>=<span class="string" style="color:rgb(221,17,68)">"memcached"</span>
MAXCONN=<span class="string" style="color:rgb(221,17,68)">"1024"</span>
CACHESIZE=<span class="string" style="color:rgb(221,17,68)">"64"</span>
<span class="keyword" style="color:rgb(51,51,51);font-weight:bold">OPTIONS</span>=<span class="string" style="color:rgb(221,17,68)">"-l 192.168.0.1"</span></code></pre>
<p style="margin:1.2em 0px!important">Thanks for replies.</p>
<p style="margin:1.2em 0px!important">Regards.</p>
<p style="margin:1.2em 0px!important">Piotr.</p>
</div></div>