Installing and Configuring Components
Horizon provides a web-based interface for interacting with internal service components. For example, IP addresses are assigned to plugin VM instances and access control is configured through this interface.
Perform the following operations on the controller node.
- Install the software package.
1yum -y install openstack-dashboard
- Modify the /etc/openstack-dashboard/local_settings configuration file.
- Open the file.
1vi /etc/openstack-dashboard/local_settings - Press i to enter the insert mode and perform the following configurations.
- Configure the dashboard to use the OpenStack service on the controller node.
1OPENSTACK_HOST = "controller"
- Allow access from all hosts. Note that there is a space after the comma.
1ALLOWED_HOSTS = ['*', ]

- Configure the Memcached session storage service. Comment out other session storage configuration. Pay attention to the format.
1 2 3 4 5 6 7
SESSION_ENGINE = 'django.contrib.sessions.backends.file' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller:11211', } }

- Enable Identity API version 3.
1OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
- Enable domain support.
1OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
- Configure the API version. Ensure the format is correct.
1 2 3 4 5
OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 3, }

- Set the Default domain as the default domain for the user created using the dashboard.
1OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
- Set the user role as the default role for the user created using the dashboard.
1OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
- Disable the support for Layer 3 network services.
1 2 3 4 5 6 7 8 9 10
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, }

- Optional: Configure the time zone, for example, Shanghai.
1TIME_ZONE = "Asia/Shanghai"

- Configure the dashboard to use the OpenStack service on the controller node.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/httpd/conf.d/openstack-dashboard.conf file.
- Open the file.
1vi /etc/httpd/conf.d/openstack-dashboard.conf - Press i to enter the insert mode and add the following content to the file:
1WSGIApplicationGroup %{GLOBAL}

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Set the ownership and group of the /usr/share/openstack-dashboard/ directory and its subdirectories and files to apache:apache.
1chown -R apache:apache /usr/share/openstack-dashboard/
- Restart the web server and session storage service.
1systemctl restart httpd.service memcached.service
Parent topic: Installing, Configuring, and Verifying Horizon