openstack-dashboard.conf in openstack-dashboard package for RHEL/CentOS does not contain WSGIApplicationGroup configuration which is required to make the dashboard work correctly. Change-Id: Ic62fa29015ec153eada9d5e1ba5c06dab3a5eeca Closes-Bug: #1741354
4.7 KiB
Install and configure for Red Hat Enterprise Linux and CentOS
This section describes how to install and configure the dashboard on the controller node.
The only core service required by the dashboard is the Identity service. You can use the dashboard in combination with other services, such as Image service, Compute, and Networking. You can also use the dashboard in environments with stand-alone services such as Object Storage.
Note
This section assumes proper installation, configuration, and operation of the Identity service using the Apache HTTP server and Memcached service.
Install and configure components
Install the packages:
# yum install openstack-dashboardEdit the
/etc/openstack-dashboard/local_settingsfile and complete the following actions:Configure the dashboard to use OpenStack services on the
controllernode:OPENSTACK_HOST = "controller"Allow your hosts to access the dashboard:
ALLOWED_HOSTS = ['one.example.com', 'two.example.com']Note
ALLOWED_HOSTS can also be ['*'] to accept all hosts. This may be useful for development work, but is potentially insecure and should not be used in production. See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts for further information.
Configure the
memcachedsession storage service:SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller:11211', } }Note
Comment out any other session storage configuration.
Enable the Identity API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOSTEnable support for domains:
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = TrueConfigure API versions:
OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, }Configure
Defaultas the default domain for users that you create via the dashboard:OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"Configure
useras the default role for users that you create via the dashboard:OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"If you chose networking option 1, disable support for layer-3 networking services:
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, }Optionally, configure the time zone:
TIME_ZONE = "TIME_ZONE"Replace
TIME_ZONEwith an appropriate time zone identifier. For more information, see the list of time zones.
Add the following line to
/etc/httpd/conf.d/openstack-dashboard.confif not included.WSGIApplicationGroup %{GLOBAL}
Finalize installation
Restart the web server and session storage service:
# systemctl restart httpd.service memcached.serviceNote
The
systemctl restartcommand starts each service if not currently running.