OpenStack部署及dashboard挂载报错解决方案
dashboard
General-purpose web UI for Kubernetes clusters
项目地址:https://gitcode.com/gh_mirrors/da/dashboard
·
由于使用RedHat 7.5对接openstack C30+N版本,加上配置环境时因为是使用华为实验室黄区的VPN,所以需要使用proxy进行安装,因此出现了一些问题,现将其进行归档。
先安装openstack步骤:
1. 基本设置
- yum install -y net-tools
- yuminstall -y yum-utils
- yum -y install kvm python-virtinst libvirt bridge-utils virt-manager qemu-kvm-tools virt-viewer virt-v2v
- sudo systemctl disable firewalld
- sudo systemctl stop firewalld
- sudo systemctl disable NetworkManager
- sudo systemctl stop NetworkManager
- sudo systemctl enable network
- sudo systemctl start network
2. OpenStack Newton安装
- sudo yum install -y https://repos.fedorapeople.org/repos/openstack/openstack-newton/rdo-release-netwon-5.noarch.rpm
如果Newton 是旧版本,需要做如下操作:
- Edit rdo-release.repo, and release OpenStack Newton Repository URL to baseurl=http://vault.centos.org/7.2.1511/cloud/x86_64/openstack-newton/
接下来继续步骤:
- yum-config-manager --enable openstack-newton
- sudo yum install -y centos-release-openstack-newton(如果是红帽子系统,跳过这步)
更新配置文件
- sudo yum update -y
- sudo yum update -y --exclude=kernel*
- sudo yum install -y openstack-packstack
- sudo packstack --allinone
挂载
- echo ‘WSGIApplicationGroup %{GLOBAL}’ >> /etc/httpd/conf.d/openstack-dashboard.conf
- chown nova:nova /var/log/nova/*
- sed -i ‘s/django.contrib.sessions.backends.cache/django.contrib.sessions.backends.file/g’ /etc/openstack-dashboard/local_settings
- systemctl restart httpd memcached
问题解决方案
当输入节点ip,进入dashboard页面后(source keystone_admin进入cinder,并使用命令 env|grep OS查看dashboard登陆账号密码)要进行挂载操作时,报错:云主机执行所有请求操作失败,云主机处于错误状态。:请稍后再试[错误:No valid host was found. There are not enough hosts available.]
解决方法:
- 使用 vi /etc/selinux/config, set SELINUX=disabled
- 再在命令行输入sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/selinux/config
- 修改/etc/nova/nova.conf里面参数:将virt_type=kvm改成virt_type=qemu, 将cpu_mode改成 cpu_mode=none
General-purpose web UI for Kubernetes clusters
最近提交(Master分支:2 个月前 )
49406263
* chore(chart): release 7.14.0
* chore(code): fix lint
* chore(go): bump Go version to 1.24.0 and update module dependencies
* chore(go): update used go version to 1.24.0
* chore(docker): update base image to golang:1.24-alpine3.22 across all Dockerfiles 27 天前
7bb09004
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.4.2 to 5.5.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v5.4.2...v5.5.1)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-version: 5.5.1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 个月前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)