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分支:6 个月前 )
60975e98
Bumps [@graphql-mesh/runtime](https://github.com/ardatan/graphql-mesh/tree/HEAD/packages/legacy/runtime) from 0.105.10 to 0.105.11.
- [Release notes](https://github.com/ardatan/graphql-mesh/releases)
- [Changelog](https://github.com/ardatan/graphql-mesh/blob/master/packages/legacy/runtime/CHANGELOG.md)
- [Commits](https://github.com/ardatan/graphql-mesh/commits/@graphql-mesh/runtime@0.105.11/packages/legacy/runtime)
---
updated-dependencies:
- dependency-name: "@graphql-mesh/runtime"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 个月前
8d93b32e
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 9.1.0 to 9.1.2.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v9.1.0...v9.1.2)
---
updated-dependencies:
- dependency-name: concurrently
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1 个月前
更多推荐
所有评论(0)