In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The project name of the OpenStack dashboard Dashboard service is Horizon, and the only service it needs is the identity service keystone, and the development language is python's web framework Django.
System requirements
The following requirements are required to install the Train version of Horizon:
1. Language environment
Python 2.7,3.6 or 3.7
Django 1.11,2.0 and 2.2
Django 2.0 and 2.2 support is in the experimental stage in the Train version.
The Ussuri distribution (the next release after the Train release) will use Django 2.2 as the main Django version. Django 2.0 support will be removed.
2. Accessible keystone endpoint
3. Other services are optional.
Starting with the Stein version, Horizon supports the following services:
Cinder: block Stora
Glance: mirror management
Neutron: network
Nova: calculation
Swift: object Stora
If you have configured the endpoint for the service keystone, Horizon will detect it and automatically enable its support.
Horizon also supports many other OpenStack services through plug-ins.
Install the dashboard service horizon on the compute node (C1)
Because apache is required for horizon to run, it is installed on the compute node in order not to affect the apache used by other services such as keystone on the control node. Confirm that the previously installed service starts properly before installation.
Install the package
Yum install openstack-dashboard-y
Edit configuration file
Must be edited directly with vim, and cannot be emptied before copying and pasting.
Vim / etc/openstack-dashboard/local_settings
Line 118, configure the dashboard to use OpenStack services on the controller node:
OPENSTACK_HOST = "ct"
Line 39 to allow host access to the dashboard:
ALLOWED_HOSTS = ['*] # ['*] refers to the acceptance of all hosts.
100 lines to configure the memcached session storage service:
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'LOCATION': 'ct:11211'
}
}
Line 126, enable authentication service API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3"% OPENSTACK_HOST
Line 127, join, enable support for multiple domains:
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
128 lines. Join the configuration API version:
OPENSTACK_API_VERSIONS = {
"identity": 3
"image": 2
"volume": 3
}
Line 133, join, configure Default for the default domain of the user created through the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
Configure the default role of user for users created through the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
Line 139 selects a layer 2 network, and to disable support for layer 3 network services:
OPENSTACK_NEUTRON_NETWORK = {
'enable_auto_allocated_network': False
'enable_distributed_router': False
'enable_ha_router': False
'enable_ipv6': False
'enable_rbac_policy': False
'enable_router': False
'enable_quotas': False
'enable_lb': False
'enable_fip_topology_check': False
'default_dns_nameservers': []
'supported_provider_types': ['*]
'segmentation_id_range': {}
'extra_provider_types': {}
'supported_vnic_types': ['*]
'physical_networks': []
}
False must have its initials capitalized
Configure the time zone (optional):
TIME_ZONE = "Asia/Shanghai"
The following two steps are not found in the official documentation, but need to be performed, otherwise the dashboard will not open or display incorrectly
Rebuild the dashboard configuration file for apache
Cd / usr/share/openstack-dashboard
Python manage.py make_web_conf-- apache > / etc/httpd/conf.d/openstack-dashboard.conf
Establish a soft link to the policy file (policy.json), otherwise login to dashboard will result in permission errors and confused display
Ln-s / etc/openstack-dashboard / usr/share/openstack-dashboard/openstack_dashboard/conf
Restart the apache service on the compute node (C1)
Systemctl enable httpd.service
Systemctl restart httpd.service
Since the operating mechanism of dashboard is to delete all files under the website and then copy them again, it will take some time to restart httpd.
Restart the memcache service on the control node (ct)
Systemctl restart memcached.service
Verification operation
On other computers, use a Web browser to access the dashboard at http://192.168.10.42 (note, unlike previous versions, no dashboard)
Log in using admin with the password ADMIN_PASS
Change the next theme in the upper right corner
You can see the cirros image we uploaded during the installation of glance
Can manage projects, users, groups, and roles
Click on all the modules to see if there is any wrong message.
At this point, horizon is installed.
After the domain name resolution, you can also use the domain name to access dashboard.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.