安装dashboard在控制节点

1、安装包

编辑/etc/openstack-dashboard/local_settings完成以下设置:

[root@localhost ~]# yum -y install openstack-dashboard

配置dashboardcontroller主机上使用openstack服务

[root@localhost /]# vim /etc/openstack-dashboard/local_settings
OPENSTACK_HOST = "controller"

wKiom1nJB4OSW6VJAAAk09pYJZM948.png-wh_50

允许哪些主机访问dashboard,可以写成[*],允许所有主机

ALLOWED_HOSTS = ['one.example.com', 'two.example.com']

wKioL1nJB1bijvLRAABKd7jyWIM734.png-wh_50

 配置memcached 会话存储服务,注释掉其它的存储配置项

先注释后添加

wKioL1nJB2OwgWPjAAA1ekq-BvE102.png-wh_50

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'     添加

CACHES = {

 'default': {

 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',

 'LOCATION': 'controller:11211',

    }

}

激活身份验证服务API版本3

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

wKioL1nJB3qB8YUMAAAixfNCgpo398.png-wh_50

激活域的支持

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

wKioL1nJB4bh1U3XAABErc4C4nA832.png-wh_50

配置API版本:

OPENSTACK_API_VERSIONS = {

    "identity": 3,

    "p_w_picpath": 2,

    "volume": 2,

}

wKioL1nJB5bgYg4fAAAksL7icnw298.png-wh_50

配置default作为用户的默认域名

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

wKioL1nJB7LyMveSAAAxVqj9q8M627.png-wh_50

配置user作为用户默认的角色

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

wKioL1nJB8Dx_0akAAA9sdRXpwY308.png-wh_50

配置支持的网络特性部分:

 'enable_router': False,  对于自助网络,要改成True

 'enable_quotas': False,

 'enable_distributed_router': False,

 'enable_ha_router': False,

 'enable_lb': False,

 'enable_firewall': False,

 'enable_***': False,

 'enable_fip_topology_check': False,

wKioL1nJB9-DQfVCAABLoSLzKZY252.png-wh_50

 配置时区:改成对应的时区就行:Asia/Shanghai

TIME_ZONE = "TIME_ZONE"

wKioL1nJB_bSjJbxAABS9wj4QD4630.png-wh_50

1、完成安装,重启服务即可

[root@localhost /]# systemctl restart httpd.service memcached.service

1、验证访问:http://controller/dashboard

输入用户名和密码及域名登陆

wKiom1nJCFiRFHiXAAAglqyQTDo672.png-wh_50

登陆后 创建项目

wKiom1nJCGPQ6BSbAABouREGNkQ014.png-wh_50

Cinder安装 后期会持续更新