在一键安装OpenStack 的时候 运行 yum install -y openstack-packstack报错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在一键安装OpenStack 的时候 运行 yum install -y openstack-packstack报错相关的知识,希望对你有一定的参考价值。
yum install -y openstack-packstack
Loaded plugins: fastestmirror, refresh-packagekit, security
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.btte.net
* updates: mirrors.163.com
http://repos.fedorapeople.org/repos/openstack/openstack-havana/epel-6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Setting up Install Process
No package openstack-packstack available.
Error: Nothing to do
这个yum源没有这个包openstack-packstack,不知你的是什么系统,请在/etc/yum.repos.d里面修改.repo文件的baseurl仓库源访问路径。
PackStack一键安装OpenStack
作者:独笔孤行@TaoCloud请添加链接描述
OpenStack自动安装比手动搭建消耗的硬件资源较大,因此虚拟机或服务器最低配置为4核CPU+8G内存+20G磁盘,并开启CPU虚拟化。建议配置为8核CPU+16G内存或更高配置,并保证服务器能访问外网。
本次主要测试的成功案例有N、P、Q三个版本,其它版本同样可以借助packstack一键安装OpenStack,安装方式相同。只是Yum源的配置不同而已,主要区别也在于yum源的配置。
成功案例1:Q版OpenStack自动安装
操作系统:CentOS7.5minimal(其它系统同样支持)
硬件配置:4vCPU+8G Memory+20G磁盘
1.关闭并禁用防火墙:
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl stop iptables
# systemctl disable iptables
2.关闭selinux:
# setenforce 0
3.编辑/etc/selinux/config文件内容,将SELINUX值enforcing改为disabled:
SELINUX=disabled
4.配置yum源:
# yum install -y http://rdo.fedorapeople.org/rdo-release.rpm
5.安装packstack工具
# yum install -y openstack-packstack
6.Packstack一键安装:
# packstack --allinone
注解
无网络异常时,安装时间最多不过30分钟,如果有任务长时间执行无返回结果,需要查看相关日志查找问题。
成功案例2:N版OpenStack自动安装
操作系统:CentOS7.4minimal(其它系统同样支持)
硬件配置:4vCPU+8G Memory+20G磁盘
1.关闭并禁用防火墙:
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl stop iptables
# systemctl disable iptables
2.关闭selinux:
# setenforce 0
3.编辑/etc/selinux/config文件内容,将SELINUX值enforcing改为disabled:
SELINUX=disabled
4.制作OpenStack-Newton网络源
# cat /etc/yum.repos.d/OpenStack-Newton.repo
[OpenStack-Newtron]
name=OpenStack-Newtron
baseurl=http://vault.centos.org/7.2.1511/cloud/x86_64/openstack-newton/
gpgcheck=0
enabled=1
5.安装kvm源
# rpm -ivh http://mirrors.163.com/centos/7.4.1708/virt/x86_64/kvm-common/centos-release-qemu-ev-1.0-1.el7.noarch.rpm
6.安装packstack工具
# yum install openstack-packstack
7.Packstack一键安装:
# packstack --allinone
注解
无网络异常时,安装时间最多不过30分钟,如果有任务长时间执行无返回结果,需要查看相关日志查找问题。
成功案例3:P版OpenStack自动安装。
操作系统:CentOS7.2(其它系统同样支持)
硬件配置:4vCPU+8G Memory+20G磁盘
1.关闭并禁用防火墙:
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl stop iptables
# systemctl disable iptables
2.关闭selinux:
# setenforce 0
编辑/etc/selinux/config文件内容,将SELINUX值enforcing改为disabled:
SELINUX=disabled
3.配置p版yum源
# yum install centos-release-openstack-pike.x86_64
4.禁用掉无法使用的CentOS-QEMU-EV.repo源,可直接删除该源文件。
# rm -rf /etc/yum.repos.d/CentOS-QEMU-EV.repo
5.手动配置可用的KVM源
[[email protected] ~]# cat /etc/yum.repos.d/CentOS-KVM.repo
[CentOS-KVM]
name=CentOS-KVM
baseurl=http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/
gpgcheck=0
enabled=1
6.配置kvm源或执行以下命令安装:
# rpm -ivh http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/centos-release-qemu-ev-1.0-1.el7.noarch.rpm
7.配置好yum源后安装applydeltarpm包,防止自动安装时报错。
# yum install deltarpm -y
8.安装packstack工具
# yum install openstack-packstack
9.Packstack一键安装:
# packstack --allinone
以上是关于在一键安装OpenStack 的时候 运行 yum install -y openstack-packstack报错的主要内容,如果未能解决你的问题,请参考以下文章