OpenStack Stein : Configure Horizon2019/04/11 |
Configure OpenStack Dashboard Service (Horizon).
It's possible to control OpenStack on Web GUI to set Dashboard. |
|
[1] | Install Horizon. |
root@dlp ~(keystone)# apt -y install openstack-dashboard
|
[2] | Configure Horizon. |
root@dlp ~(keystone)#
vi /etc/openstack-dashboard/local_settings.py # line 40 uncomment and add own hostname ALLOWED_HOSTS = [' dlp.srv.world', 'localhost' ]
# line 66: uncomment and change like follows
OPENSTACK_API_VERSIONS = {
# "data-processing": 1.1,
"identity": 3,
"image": 2,
"volume": 3,
"compute": 2,
}
# line 77: uncomment and change OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
# line 99: uncomment OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default' # line 170: change to your own Memcache server
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '10.0.0.30:11211',
},
}
# line203: change to your own Host OPENSTACK_HOST = " 10.0.0.30 "OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_" systemctl restart apache2 memcached
|
[3] |
Access to the URL below with web browser.
After accessing, following screen is displayed, then you can login with a user in Keystone. ⇒ http://(server's hostname or IP address)/horizon/ It's possible to use all features if you login with admin user when you set it on keystone bootstrap. If you login with a common user, it's possible to use or manage own instances. |
[4] | If it's OK to login normally, following screen is displayed (with common user). You can control Openstack on this Dashboard. |
[5] | To access an instance, Click [Instances] on the left menu. Then, instances' list is shown on the right, next Click the name of instance you'd like to access. |
[6] | The description of instance is shown, next, Click [Console] tab. |
[7] | The console of instance is shown. You can operate instances on here. |
Sponsored Link |
|