OpenStack部署及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

你可能感兴趣的:(fusionstorage,OpenStack)