Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Horizon

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. Install Horizon on the controller node.

  1. Install the software package.
    yum install openstack-dashboard
  2. Modify the /etc/openstack-dashboard/local_settings file.
    1. Open the file.
      vi /etc/openstack-dashboard/local_settings
    2. Press i to enter the insert mode, and modify the file as follows:
      OPENSTACK_HOST = "controller" 
      ALLOWED_HOSTS = ['*', ] 
      SESSION_ENGINE = 'django.contrib.sessions.backends.cache' 
       
      CACHES = { 
      'default': { 
           'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 
           'LOCATION': 'controller:11211', 
          } 
      } 
       
      OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST 
      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True 
      OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default" 
      OPENSTACK_KEYSTONE_DEFAULT_ROLE = "member" 
      WEBROOT = '/dashboard'
      POLICY_FILES_PATH = "/etc/openstack-dashboard"
      
      OPENSTACK_API_VERSIONS = { 
          "identity": 3, 
          "image": 2, 
          "volume": 3, 
      }
    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  3. Restart the httpd service.
    systemctl restart httpd.service memcached.service
  4. Check whether Horizon is successfully installed. Open a browser, type http://controller_ip/dashboard in the address box, and press Enter to log in to Horizon. If the login is successful, Horizon is successfully installed.
    • controller_ip indicates the IP address of the controller node.
    • The default domain for logging in to Horizon is default, the default user name is admin, and the default user password is ADMIN_PASSWORD set in 6.