Libvirt 版本降级过程记录 4.5.0 to 3.9.0
前言
搞 OpenStack 开发 Libvirt 版本会随着 OpenStack 版本切来切去的,记录一下 Libvirt 从 4.5 降级到 3.9.0 的过程。
步骤
直接 downgrade
[root@control01 ~]# yum downgrade 'libvirt*3.9.0*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.yun-idc.com
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
https://copr-be.cloud.fedoraproject.org/results/mcepl/vim8/epel-7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
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/.
Resolving Dependencies
--> Running transaction check
---> Package libvirt-libs.x86_64 0:4.5.0-10.el7_6.2 will be a downgrade
---> Package libvirt-libs.x86_64 0:4.5.0-10.el7_6.3 will be erased
--> Finished Dependency Resolution
Error: Package: libvirt-daemon-driver-storage-gluster-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-rbd-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-lxc-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-logical-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-network-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-nodedev-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-disk-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-client-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-mpath-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-qemu-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-nwfilter-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-interface-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-secret-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-core-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-iscsi-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-devel-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
Error: Package: libvirt-daemon-driver-storage-scsi-4.5.0-10.el7_6.3.x86_64 (@updates)
Requires: libvirt-libs = 4.5.0-10.el7_6.3
Removing: libvirt-libs-4.5.0-10.el7_6.3.x86_64 (@updates)
libvirt-libs = 4.5.0-10.el7_6.3
Downgraded By: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (updates)
libvirt-libs = 4.5.0-10.el7_6.2
Available: libvirt-libs-4.5.0-10.el7.i686 (base)
libvirt-libs = 4.5.0-10.el7
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python2-requests-2.14.2-1.el7.noarch has missing requires of python2-urllib3 = ('0', '1.21.1', None)
报错,原因是上面这些高版本的包,在 yum repo 没有对应的低版本包。所以先把这个包强制卸载掉。
rpm -e --nodeps \
libvirt-daemon-driver-storage-core \
libvirt-libs \
libvirt-daemon-driver-storage-disk \
libvirt-daemon-driver-storage-gluster \
libvirt-daemon-driver-storage-iscsi \
libvirt-daemon-driver-storage-logical \
libvirt-daemon-driver-storage-mpath \
libvirt-daemon-driver-storage-rbd \
libvirt-daemon-driver-storage-scsi
然后在 downgrade
[root@control01 ~]# yum downgrade 'libvirt*3.9.0*'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
https://copr-be.cloud.fedoraproject.org/results/mcepl/vim8/epel-7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
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/.
No Match for available package: libvirt-libs-4.5.0-10.el7.i686
No Match for available package: libvirt-libs-4.5.0-10.el7.x86_64
Nothing to do
还是失败,原因是因为环境的 yum repo CentOS /7 已经没有 3.9.0 版本的包了,所以修改一下 CentOS repo 配置文件。
vim CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/7.5.1804/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates.
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/7.5.1804/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/7.5.1804/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
然后在 downgrade 就应该可以成功了,如果还是不行,那么请继续挖坑吧。
[root@control01 yum.repos.d]# libvirtd --version
libvirtd (libvirt) 3.9.0
Libvirt 版本降级过程记录 4.5.0 to 3.9.0的更多相关文章
- openWRT自学---自己编译的第一个 backfire10.03 版本的过程记录(转)
基于 backfire10.03(从http://downloads.openwrt.org/backfire/10.03/ 中下砸的源码包backfire_10.03_source.tar.bz2: ...
- openWRT自学---自己编译的第一个 backfire10.03 版本的过程记录 --- 实际是由于下载了错误的backfire源码包导致的
基于 backfire10.03(从http://downloads.openwrt.org/backfire/10.03/ 中下砸的源码包backfire_10.03_source.tar.bz2: ...
- win7 64位安装Dlib19.6版本的过程记录
本文为原创,未经允许不得转载. 1.去Dlib的官网下载dlib-19.6的源文件.然后解压到Myprograms下的Res文件夹下 2.到CMake的官网下载Cmake,我下载以后解压,然后进入到b ...
- 在fedora25x86下编译opencv的Android版本的过程记录
准备材料: 1. 32位的Fedora25(不建议使用64位系统----64位系统下也是可以编译的,这里为了简单起见,考虑使用32位操作系统.事实上,本人在64位操作系统下也做了尝试,也完成了编译.) ...
- MySQL 8.0 正式版 8.0.11 发布:比 MySQL 5.7 快 2 倍
ySQL 8.0 正式版 8.0.11 已发布,官方表示 MySQL 8 要比 MySQL 5.7 快 2 倍,还带来了大量的改进和更快的性能! 注意:从 MySQL 5.7 升级到 MySQL 8. ...
- redhat6.0 安装ORACLE11GR2过程记录
vawaretools安装 我的是8.0vm 1,vm=>install vmtools 2,会在redhat里出现一个虚拟光驱图标. 3,复制里面的文件到root目录下. 4,解压缩文件 ta ...
- xp硬盘安装Fedora14 过程记录及心得体会(fedora14 live版本680M 和fedora14 DVD版本3.2G的选择)
这次电脑奔溃了,奇怪的是直接ghost覆盖c盘竟然不中.之前电脑上硬盘安装的fedora14操作系统,也是双系统.不知道是不是这个问题,记得同学说过,在硬盘装fedora之后,要手动修改c盘隐藏的那个 ...
- DRBD详细解说及配置过程记录
一.DRBD介绍 DRBD(Distributed ReplicatedBlock Device)是一种基于软件的,无共享,分布式块设备复制的存储解决方案,在服务器之间的对块设备(硬盘,分区,逻辑卷等 ...
- 升级Windows 10 正式版过程记录与经验
升级Windows 10 正式版过程记录与经验 [多图预警]共50张,约4.6MB 系统概要: 预装Windows 8.1中文版 64位 C盘Users 文件夹已经挪动到D盘,并在原处建立了符号链接. ...
随机推荐
- python连接activemq
介绍 activeMQ是一款消息队列,关于消息队列是什么这里就不再介绍了,这里只介绍如何使用python去连接activemq进行消息的发送和接收.既然都用python去连接了,那么对于消息队列是什么 ...
- 了解并安装Nginx
公司使用nginx作为请求分发服务器,发现本人在查看nginx配置上存在些许困难,故仔细阅读了陶辉的<深入理解nginx模块开发与框架>第一部分,并作此记录. 了解 我根据书上的思路来了解 ...
- ubuntu搭建gerrit+gitweb代码审核系统
一.Gerrit的简介 Gerrit是Google开源的一套基于web的代码review工具,它是基于git的版本管理系统.Google开源Gerrit旨在提供一个轻量级框架,用于在代码入库之前对每个 ...
- Jmeter多接口测试之参数传递
接口测试包含单接口测试和多接口测试,通过组合多个接口实现一组功能的验证称为多接口测试,单接口重在单个接口多种请求组合的响应断言,多接口重在组合不同接口,实现流程的串联和验证.多接口测试涉及到接口之间参 ...
- SQL Server里面如何导出包含数据的SQL脚本
通常情况下,SQL Server里面的生成SQL脚本,只会包含数据库及表的字段结构,而不会包含表的数据,也就是SQL脚本里面只有Create database,Create table 这样的语句,没 ...
- usb驱动正在使用不能卸载
@ubuntu:/home/lyd# rmmod cyusb3610rmmod: ERROR: Module cyusb3610 is not currently loadedroot@ubuntu: ...
- 当心JavaScript奇葩的逗号表达式
看看下面的代码输出什么? let a = 2; switch (a) { case (3, 2, 5): console.log(1); break case (2, 3, 4): console.l ...
- 【leetcode】1266. Minimum Time Visiting All Points
题目如下: On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to f ...
- POJ 3068 运送危险化学品 最小费用流 模板题
"Shortest" pair of paths Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 1215 ...
- python学习之路(5)
条件判断 计算机之所以能做很多自动化的任务,因为它可以自己做条件判断. 比如,输入用户年龄,根据年龄打印不同的内容,在Python程序中,用if语句实现: age=20 if age>=18: ...