Centos新系统按照官网安装openstack 出现 failure: repodata/repomd.xml from centos-qemu-ev 错误

本文介绍了在新系统安装后遇到的failure:repodata/repomd.xmlfromcentos-qemu-ev:[Errno256]Nomoremirrorstotry.问题,并提供了通过先执行yum update再按照官方指南进行操作的解决方案。

新系统安装后出现

failure: repodata/repomd.xml from centos-qemu-ev: [Errno 256] No more mirrors to try.错误

安装系统之后先 yum update

之后再按照官网教程操作

[root@controller-06 ~]# yum install openstack-cinder -y 已加载插件:fastestmirror Loading mirror speeds from cached hostfile https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found 正在尝试其它镜像。 To address this issue please refer to the below wiki article https://wiki.centos.org/yum-errors If above article doesn't help to resolve this issue please use https://bugs.centos.org/. One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. There are a few ways to work "fix" this: 1. Contact the upstream for the repository and get them to fix the problem. 2. Reconfigure the baseurl/etc. for the repository, to point to a working upstream. This is most often useful if you are using a newer distribution release than is supported by the repository (and the packages for the previous distribution release still work). 3. Run the command with the repository temporarily disabled yum --disablerepo=epel ... 4. Disable the repository permanently, so yum won't use it by default. Yum will then just ignore the repository until you permanently enable it again or use --enablerepo for temporary usage: yum-config-manager --disable epel or subscription-manager repos --disable=epel 5. Configure the failing repository to be skipped, if it is unavailable. Note that yum will try to contact the repo. when it runs most commands, so will have to try and fail each time (and thus. yum will be be much slower). If it is a very temporary problem though, this is often a nice compromise: yum-config-manager --save --setopt=epel.skip_if_unavailable=true failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try. https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
06-10
单机部署: 1、环境:centos7.9 4cpu 8G 静态ip、主机名 hosts文件 2) hostnamectl set-hostname openstack01 echo "113.44.223.5 openstack01 openstack01.test.com" >> /etc/hosts source /etc/profile systemctl disable firewalld systemctl stop firewalld systemctl disable NetworkManager systemctl stop NetworkManager sed -r -i '/^[ \t]*SELINUX=/c\SELINUX=disabled' /etc/selinux/config #重启生效 setenforce 0 ------建议给虚拟机做个快照,安装失败后可以和还原快照 3)安装:train版本 先更换yum源 cd /etc/yum.repos.d mkdir bak mv * bak curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo yum update -y #可选 yum install -y centos-release-openstack-train # 安装后会自动配置yum仓库 CentOS-NFS-Ganesha-28.repo CentOS-OpenStack-train.repo CentOS-Ceph-Nautilus.repo CentOS-QEMU-EV.repo 将mirrorlist注释掉,启用baseurl 将生成的repo文件中的地址,mirror.centos.org换成mirrors.aliyun.com 设置gpgcheck=0 4)安装:packstack(OpenStack自动化安装程序) yum install -y openstack-packstack 5)执行:packstack命令的all in one一体化安装部署 packstack --allinone **** 安装成功**** 6)网络配置(配置网桥) cd /etc/sysconfig/network-scripts/ vim ifcfg-br-ex #创建br-ex网桥的配置文件 BOOTPROTO=none DEFROUTE=yes NAME=br-ex DEVICE=br-ex ONBOOT=yes PEERDNS=no NM_CONTROLLED=no IPADDR=192.168.200.10 PREFIX=24 GATEWAY=192.168.200.2 DNS1=192.168.200.2 修改原网卡的配置文件 # cat ifcfg-ens33 DEVICE=ens33 ONBOOT=yes DEVICETYPE=ovs TYPE=OVSPort OVS_BRIDGE=br-ex 重启网卡服务 7)登录云平台 访问 服务ip地址 [root@openstack01 ~]# cat /root/keystonerc_admin ....... export OS_USERNAME=admin #用户名 export OS_PASSWORD='e6289388550f4fd0' # 密码 根据这个帮我写出详细步骤
05-31
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值