To install the dashboard components
- Install the packages:
# yum install openstack-dashboard httpd mod_wsgi memcached python-memcached
To configure the dashboard
- Edit the
/etc/openstack-dashboard/local_settings
file and complete the following actions:
- Configure the dashboard to use OpenStack services on the
controller
node:
1OPENSTACK_HOST
=
"controller"
- Allow all hosts to access the dashboard:
1ALLOWED_HOSTS
=
'*'
- Configure the memcached session
storage service:
123456CACHES
=
{
'default'
: {
'BACKEND'
:
'django.core.cache.backends.memcached.MemcachedCache'
,
'LOCATION'
:
'127.0.0.1:11211'
,
}
}
Note Comment out any other session storage configuration. - Configure
user
as the default role for users that you create via the dashboard:
1OPENSTACK_KEYSTONE_DEFAULT_ROLE
=
"user"
- Optionally, configure the time zone:
1TIME_ZONE
=
"TIME_ZONE"
TIME_ZONE
with an appropriate time zone identifier. For more information, see the list of time zones.
- Configure the dashboard to use OpenStack services on the
To finalize installation
- On RHEL and CentOS, configure SELinux to permit the web server
to connect to OpenStack services:
# setsebool -P httpd_can_network_connect on
- Due to a packaging bug, the dashboard CSS fails to load properly.
Run the following command to resolve this issue:
# chown -R apache:apache /usr/share/openstack-dashboard/static
For more information, see the bug report. - Start the web server and session storage service and configure
them to start when the system boots:
# systemctl enable httpd.service memcached.service # systemctl start httpd.service memcached.service
# service httpd restart
if any problem when restarting, check :
# systemctl status httpd.service -l
Access the dashboard using a web browser:
http://controller/dashboard
No comments:
Post a Comment