由于使用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安装

如果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
GitHub 加速计划 / da / dashboard
14.17 K
4.13 K
下载
General-purpose web UI for Kubernetes clusters
最近提交(Master分支:3 个月前 )
9a476333 Bumps [jest-preset-angular](https://github.com/thymikee/jest-preset-angular) from 14.2.0 to 14.2.2. - [Release notes](https://github.com/thymikee/jest-preset-angular/releases) - [Changelog](https://github.com/thymikee/jest-preset-angular/blob/main/CHANGELOG.md) - [Commits](https://github.com/thymikee/jest-preset-angular/compare/v14.2.0...v14.2.2) --- updated-dependencies: - dependency-name: jest-preset-angular 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> 3 个月前
11b7e82e Bumps [cypress](https://github.com/cypress-io/cypress) from 13.13.1 to 13.13.2. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](https://github.com/cypress-io/cypress/compare/v13.13.1...v13.13.2) --- updated-dependencies: - dependency-name: cypress 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> 3 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐