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

相关推荐
做咩啊~9 天前
7.cinder对接nfs后端存储
openstack
isyangli_blog9 天前
openstack 下载打包整套环境
服务器·网络·openstack
isyangli_blog9 天前
openstack 界面发放一台云主机
openstack
isyangli_blog10 天前
Openstack V 版搭建
openstack
isyangli_blog10 天前
openstack V版 本地源方式搭建
运维·openstack
Yana.nice17 天前
华为云计算(FusionAccess/FusionCompute/OpenStack)平台
华为云·openstack
huhy~18 天前
基于Ubuntu 24.04 LTS 搭建OpenStack F 版
android·ubuntu·openstack
小夏子_riotous19 天前
openstack的使用——5. Swift服务的基本使用
linux·运维·开发语言·分布式·云计算·openstack·swift
小夏子_riotous19 天前
openstack的使用——7. 共享文件系统manila服务
linux·运维·服务器·系统架构·centos·openstack·运维开发
小夏子_riotous20 天前
openstack的使用——9. 密钥管理服务Barbican
linux·运维·服务器·系统架构·centos·云计算·openstack