10 龙芯平台openstack部署搭建-dashboard部署

#安装和配置组件

yum install -y openstack-dashboard

#配置dashboard

cp /etc/openstack-dashboard/local_settings /etc/openstack-dashboard/local_settings.bac

在/etc/openstack-dashboard/local_settings中配置以下内容

OPENSTACK_HOST = "controller"

ALLOWED_HOSTS = ['*',]

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

CACHES = {

'default': {

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

'LOCATION': 'controller:11211',

},

}

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

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

OPENSTACK_API_VERSIONS = {

"identity": 3,

"image": 2,

"volume": 3,

}

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

#如果您选择网络选项 1,请禁用对第 3 层网络服务的支持:

OPENSTACK_NEUTRON_NETWORK = {

'enable_distributed_router': False,

'enable_firewall': False,

'enable_ha_router': False,

'enable_lb': False,

'enable_quotas': True,

'enable_security_group': True,

'enable_vpn': False,

'profile_support': None,

}

TIME_ZONE = "TIME_ZONE"

#增加以下配置,否则dashboard的权限配置policy.json不生效, 界面显示的栏目也不对, 还经常弹出错误

#keystone定义了每个用户的权限, 所以原来界面栏目显示混乱

POLICY_FILES_PATH = '/etc/openstack-dashboard'

#注意openstack-dashboard-18.3.3-2及以后的版本无需做以下配置,openstack-dashboard-18.3.3-1及以前的版本需要做如下配置

#配置/etc/httpd/conf.d/openstack-dashboard.conf

cp /etc/httpd/conf.d/openstack-dashboard.conf /etc/httpd/conf.d/openstack-dashboard.conf.bac

#配置内容如下:

cat /etc/httpd/conf.d/openstack-dashboard.conf

bash 复制代码
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplicationGroup %{GLOBAL}

WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>

<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>

#完成安装

systemctl restart httpd.service memcached.service

systemctl status httpd.service memcached.service

参考链接:

https://docs.openstack.org/horizon/train/install/install-rdo.html

相关推荐
mqiqe4 天前
云计算Openstack 虚拟机调度策略
云计算·openstack
小安运维日记8 天前
Linux云计算 |【第五阶段】CLOUD-DAY2
linux·运维·云计算·openstack
南宫乘风16 天前
OpenStack将运行的系统导出 QCOW2 镜像并导入阿里云
阿里云·云计算·openstack
学习向前冲18 天前
开源OpenStack
openstack
suum1 个月前
openstack-swift.18421165
openstack
极客先躯1 个月前
开源的云平台有哪些?
kubernetes·开源·openstack·cloudstack·云平台·docker swarm·opennebula
mqiqe1 个月前
云计算Openstack Horizon
云计算·openstack·perl
zkyqss1 个月前
OpenStack Yoga版安装笔记(十六)Openstack网络理解
笔记·openstack
mqiqe1 个月前
云计算Openstack Neutron
云计算·openstack·perl
mqiqe1 个月前
云计算Openstack Keystone
数据库·云计算·openstack