第一步:部署horizon环境:
安装部署memcache
安装软件包
yum
install
memcached python-memcached
启动memcache并且设置开机自启动
systemctl
enable
memcached.service
systemctl start memcached.service
安装部署rabbitmq
安装rabbitmq的软件包
yum
install
rabbitmq-server
启动rabbitmq并设置开机自启
systemctl
enable
rabbitmq-server.service
systemctl start rabbitmq-server.service
添加openstack用户并设置密码:123
rabbitmqctl add_user openstack 123
为openstack用户配置权限
rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions
for
user
"openstack"
in
vhost
"/"
...
第二步:部署horizon
安装软件包:
yum
install
openstack-dashboard
配置/etc/openstack-dashboard/local_settings
配置仪表板使用OpenStack服务控制器节点: OPENSTACK_HOST = "127.0.0.1" 配置允许所有主机访问仪表板: ALLOWED_HOSTS = ['*', ] 配置缓存会话存储服务: SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211', } } 启用认证服务,keystone的版本3 OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST 启用域的支持: OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True 配置API的各个版本: OPENSTACK_API_VERSIONS = { "identity": 3, #keystone认证版本 "image": 2, #镜像服务版本 "volume": 2, # } 通过仪表板创建的用户设置为默认域: OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default" 将通过仪表板创建的用户的默认角色: OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user" 重新启动Web服务http和会话服务memcahe: systemctl restart httpd.service memcached.service