Horizon
Installation Guide
Install and configure for Red Hat Enterprise Linux and CentOS
コンポーネントインストール
code:shell
# yum install openstack-dashboard
/etc/openstack-dashboard/local_settings
code:shell
# diff -u /etc/openstack-dashboard/local_settings.org /etc/openstack-dashboard/local_settings
--- /etc/openstack-dashboard/local_settings.org 2020-08-02 10:08:50.373132516 +0900
+++ /etc/openstack-dashboard/local_settings 2020-08-02 10:20:56.901849659 +0900
@@ -36,7 +36,7 @@
# 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 = 'horizon.example.com', 'localhost'
+ALLOWED_HOSTS = '*'
# Set SSL proxy settings:
# Pass this header from the proxy after terminating the SSL,
@@ -91,17 +91,17 @@
# memcached set CACHES to something like below.
# For more information, see
# https://docs.djangoproject.com/en/1.11/topics/http/sessions/.
-#CACHES = {
-# 'default': {
-# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
-# 'LOCATION': '127.0.0.1:11211',
-# },
-#}
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ 'LOCATION': 'controller:11211',
+ }
+}
# If you use tox -e runserver for developments,then configure
# SESSION_ENGINE to django.contrib.sessions.backends.signed_cookies
# as shown below:
-#SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
+SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
# Send email to the console by default
@@ -115,12 +115,36 @@
#EMAIL_HOST_USER = 'djangomail'
#EMAIL_HOST_PASSWORD = 'top-secret!'
-OPENSTACK_HOST = "127.0.0.1"
+OPENSTACK_HOST = "controller"
OPENSTACK_KEYSTONE_URL = "http://%s/identity/v3" % OPENSTACK_HOST
+OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
+
+OPENSTACK_API_VERSIONS = {
+ "identity": 3,
+ "image": 2,
+ "volume": 3,
+}
+
+OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
+OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
+
+OPENSTACK_NEUTRON_NETWORK = {
+ ...
+ 'enable_router': False,
+ 'enable_quotas': False,
+ 'enable_distributed_router': False,
+ 'enable_ha_router': False,
+ 'enable_lb': False,
+ 'enable_firewall': False,
+ 'enable_vpn': False,
+ 'enable_fip_topology_check': False,
+}
+
+
# The timezone of the server. This should correspond with the timezone
# of your entire OpenStack installation, and hopefully be in UTC.
-TIME_ZONE = "UTC"
+TIME_ZONE = "Asia/Tokyo"
# Change this patch to the appropriate list of tuples containing
# a key, label and static directory containing two files:
/etc/httpd/conf.d/openstack-dashboard.conf に WSGIApplicationGroup %{GLOBAL} を追加
httpd と memcached の再起動
code:shell
# systemctl restart httpd.service memcached.service
動作確認
http://controller/dashboard
code:error_log
Sun Aug 02 10:38:28.842817 2020 wsgi:error pid 558009:tid 139918712166144 WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle.
Sun Aug 02 10:38:29.876338 2020 wsgi:error pid 558009:tid 139918712166144 /usr/lib64/python3.6/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
Sun Aug 02 10:38:29.876373 2020 wsgi:error pid 558009:tid 139918712166144 argspec = inspect.getargspec(function)