Bug 1688835 - yum update fails in RHV-H
Summary: yum update fails in RHV-H
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.2.8-4
Hardware: x86_64
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.8-4
: ---
Assignee: Yuval Turgeman
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-14 14:46 UTC by Santiago Maudet
Modified: 2019-09-25 07:53 UTC (History)
25 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-20 12:46:38 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3988951 0 Upgrade None [RHV-H][Upgrade] Cannot upgrade RHV Hypervisor with: `libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 requires libvirt-daem... 2019-03-14 17:37:21 UTC
oVirt gerrit 98593 0 master MERGED Lock rpm versions in image 2021-01-27 11:45:43 UTC
oVirt gerrit 98888 0 ovirt-4.3 MERGED Lock rpm versions in image 2021-01-27 11:45:42 UTC

Description Santiago Maudet 2019-03-14 14:46:46 UTC
Description of problem:

When you try to upgrade RHV-H 4.x using "yum update" the upgrade fails with:

~~~
yum update
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade
Resolving Dependencies
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package libvirt-lock-sanlock.x86_64 0:4.5.0-10.el7_6.2 will be updated
---> Package libvirt-lock-sanlock.x86_64 0:4.5.0-10.el7_6.6 will be an update
--> Processing Dependency: libvirt-daemon = 4.5.0-10.el7_6.6 for package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64
--> Processing Dependency: libvirt-libs = 4.5.0-10.el7_6.6 for package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64
---> Package python-perf.x86_64 0:3.10.0-957.el7 will be updated
---> Package python-perf.x86_64 0:3.10.0-957.10.1.el7 will be an update
---> Package redhat-virtualization-host-image-update.noarch 0:4.2-20181026.0.el7_6 will be updated
---> Package redhat-virtualization-host-image-update.noarch 0:4.2-20190219.0.el7_6 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.2-7.3.el7 will be obsoleted
--> Finished Dependency Resolution
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-libs = 4.5.0-10.el7_6.6
           Installed: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-libs = 4.5.0-10.el7_6.2
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-daemon = 4.5.0-10.el7_6.6
           Installed: libvirt-daemon-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-daemon = 4.5.0-10.el7_6.2
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-libs = 4.5.0-10.el7_6.6
           Installed: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-libs = 4.5.0-10.el7_6.2
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-daemon = 4.5.0-10.el7_6.6
           Installed: libvirt-daemon-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-daemon = 4.5.0-10.el7_6.2
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager
~~~

NOTE: The upgrade performed from the Manager GUI finish successfully.

Version-Release number of selected component (if applicable):

RHV-H 4.x

How reproducible:

100%

Steps to Reproduce:

1) Install a RHV-H 4.x 

2) Subscribe and attach repo: "rhel-7-server-rhvh-4-rpms"

3) Run "yum update"


Actual results:


Expected results:


Additional info:

Comment 1 Javier Coscia 2019-03-14 16:32:54 UTC
This seems to be a missing libvirt-* version (el7_6.6) on the RHV repo rhel-7-server-rhvh-4-rpms


A workaround would be to trigger the upgrade flow through the CLI specifying the package to upgrade versus upgrading `everything`

 # yum update redhat-virtualization-host-image-update

This used to be configured so you could specify which packages would be upgraded, but got removed as per https://bugzilla.redhat.com/show_bug.cgi?id=1380498, so this is not configurable any more through `engine-config` tool.

Hope it helps

Comment 2 Huijuan Zhao 2019-03-15 12:12:34 UTC
I can reproduce this issue.

Test version:
From: rhvh-4.2.7.3-0.20181026.0

Test steps:
1. Install rhvh-4.2.7.3-0.20181026.0
2. Login rhvh and register to subscription-manager
   # subscription-manager register
   # subscription-manager attach --auto
   # subscription-manager repos --enable=rhel-7-server-rhvh-4-rpms
3. Upgrade rhvh
   # yum update


Actual results:
After step3, upgrade failed with missing libvirt-* version:
# yum update
Loaded plugins: enabled_repos_upload, imgbased-persist, package_upload, product-id, search-disabled-repos, subscription-manager, vdsmupgrade
rhel-7-server-rhvh-4-rpms                                                                                                  | 4.1 kB  00:00:00     
(1/3): rhel-7-server-rhvh-4-rpms/x86_64/group                                                                              |  104 B  00:00:02     
(2/3): rhel-7-server-rhvh-4-rpms/x86_64/updateinfo                                                                         |  97 kB  00:00:02     
(3/3): rhel-7-server-rhvh-4-rpms/x86_64/primary_db                                                                         | 189 kB  00:00:03     
Resolving Dependencies
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package libvirt-lock-sanlock.x86_64 0:4.5.0-10.el7_6.2 will be updated
---> Package libvirt-lock-sanlock.x86_64 0:4.5.0-10.el7_6.6 will be an update
--> Processing Dependency: libvirt-daemon = 4.5.0-10.el7_6.6 for package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64
--> Processing Dependency: libvirt-libs = 4.5.0-10.el7_6.6 for package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64
---> Package python-perf.x86_64 0:3.10.0-957.el7 will be updated
---> Package python-perf.x86_64 0:3.10.0-957.10.1.el7 will be an update
---> Package redhat-virtualization-host-image-update.noarch 0:4.2-20190219.0.el7_6 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.2-7.3.el7 will be obsoleted
--> Finished Dependency Resolution
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-libs = 4.5.0-10.el7_6.6
           Installed: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-libs = 4.5.0-10.el7_6.2
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-daemon = 4.5.0-10.el7_6.6
           Installed: libvirt-daemon-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-daemon = 4.5.0-10.el7_6.2
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-libs = 4.5.0-10.el7_6.6
           Installed: libvirt-libs-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-libs = 4.5.0-10.el7_6.2
Error: Package: libvirt-lock-sanlock-4.5.0-10.el7_6.6.x86_64 (rhel-7-server-rhvh-4-rpms)
           Requires: libvirt-daemon = 4.5.0-10.el7_6.6
           Installed: libvirt-daemon-4.5.0-10.el7_6.2.x86_64 (installed)
               libvirt-daemon = 4.5.0-10.el7_6.2

Comment 3 Juan Sebastian Castro 2019-03-15 21:04:28 UTC
By running the yum update excluding the libvirt* packages the yum update works fine. I was analyzing the content from the cdn.redhat.com "../content/dist/rhel/server/7/7Server/x86_64/rhvh/4/os/Packages" and the only libvirt packages I've found were the libvirt-admin.x86_64 and libvirt-lock-sanlock.x86_64. It's because of these 2 packages that yum attempts to resolve the dependencies for the other libvirt* packages. By excluding the whole libvirt* packages the yum update takes place without any dependency issues.

~~~
[root@rhvh2 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="7.4"
VERSION_ID="7.4"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Red Hat Virtualization Host"
VARIANT_ID="ovirt-node"
PRETTY_NAME="Red Hat Virtualization Host 4.1 (el7.4)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.4:GA:hypervisor"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

# FIXME
REDHAT_BUGZILLA_PRODUCT="Red Hat Virtualization"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.4
REDHAT_SUPPORT_PRODUCT="Red Hat Virtualization"
REDHAT_SUPPORT_PRODUCT_VERSION=7.4

[root@rhvh2 ~]# yum list libvirt* --showduplicates
Loaded plugins: imgbased-persist, product-id, search-disabled-repos, subscription-manager
Installed Packages
libvirt-client.x86_64                                                                                      3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon.x86_64                                                                                      3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-config-nwfilter.x86_64                                                                      3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-interface.x86_64                                                                     3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-network.x86_64                                                                       3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-nodedev.x86_64                                                                       3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-nwfilter.x86_64                                                                      3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-qemu.x86_64                                                                          3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-secret.x86_64                                                                        3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage.x86_64                                                                       3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-core.x86_64                                                                  3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-disk.x86_64                                                                  3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-gluster.x86_64                                                               3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-iscsi.x86_64                                                                 3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-logical.x86_64                                                               3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-mpath.x86_64                                                                 3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-rbd.x86_64                                                                   3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-driver-storage-scsi.x86_64                                                                  3.2.0-14.el7_4.3                                                               installed                
libvirt-daemon-kvm.x86_64                                                                                  3.2.0-14.el7_4.3                                                               installed                
libvirt-libs.x86_64                                                                                        3.2.0-14.el7_4.3                                                               installed                
libvirt-lock-sanlock.x86_64                                                                                3.2.0-14.el7_4.3                                                               installed                
libvirt-python.x86_64                                                                                      3.2.0-3.el7                                                                    installed                
Available Packages
libvirt-admin.x86_64                                                                                       4.5.0-10.el7_6.6                                                               rhel-7-server-rhvh-4-rpms
libvirt-lock-sanlock.x86_64                                                                                4.5.0-10.el7_6.6                                                               rhel-7-server-rhvh-4-rpms

NOTE: Available packages are the only ones present on the rhel-7-server-rhvh-4-rpms repository

------------------------------------------------------------------------------------------------------------------------------------------
content/dist/rhel/server/7/7Server/x86_64/rhvh/4/os/Packages

[FILE] kernel-headers-3.10.0-957.5.1...> 25-Jan-2019 23:39   8.0M  
[FILE] kernel-headers-3.10.0-957.el7...> 08-Oct-2018 11:14   8.0M  
[DIR] l/                                13-Mar-2019 17:48     1k    <==== within there are only 2 libvirt packages
[FILE] libdwarf-20130207-4.el7.x86_64..> 10-Feb-2015 11:16   109k  
[FILE] libgcc-4.8.5-16.el7_4.1.x86_64..> 24-Oct-2017 16:31    98k  

------------------------------------------------------------------------------------------------------------------------------------------

content/dist/rhel/server/7/7Server/x86_64/rhvh/4/os/Packages/l

[FILE] libmpc-1.0.1-3.el7.x86_64.rpm     01-Apr-2014 21:32    51k  
[FILE] libvirt-admin-4.5.0-10.el7_6.6..> 04-Mar-2019 07:01   226k   <==== libvirt-admin version 4.5 
[FILE] libvirt-lock-sanlock-4.5.0-10...> 04-Mar-2019 07:00   225k   <==== libvirt-lock-sanlock 4.5
[FILE] ltrace-0.7.91-14.el7.x86_64.rpm   04-Nov-2015 23:28   146k  

------------------------------------------------------------------------------------------------------------------------------------------

[root@rhvh2 ~]# yum update --exclude=libvirt*
Loaded plugins: imgbased-persist, product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package libgcc.x86_64 0:4.8.5-16.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package libgomp.x86_64 0:4.8.5-16.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-36.el7_6.1 will be an update
---> Package python-perf.x86_64 0:3.10.0-693.2.2.el7 will be updated
---> Package python-perf.x86_64 0:3.10.0-957.10.1.el7 will be an update
---> Package redhat-virtualization-host-image-update.noarch 0:4.2-20190219.0.el7_6 will be obsoleting
---> Package redhat-virtualization-host-image-update-placeholder.noarch 0:4.1-6.0.el7 will be obsoleted
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                                            Arch                              Version                                           Repository                                            Size
===================================================================================================================================================================================================================
Installing:
 redhat-virtualization-host-image-update                            noarch                            4.2-20190219.0.el7_6                              rhel-7-server-rhvh-4-rpms                            597 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.1-6.0.el7
Updating:
 libgcc                                                             x86_64                            4.8.5-36.el7_6.1                                  rhel-7-server-rhvh-4-rpms                            102 k
 libgomp                                                            x86_64                            4.8.5-36.el7_6.1                                  rhel-7-server-rhvh-4-rpms                            157 k
 python-perf                                                        x86_64                            3.10.0-957.10.1.el7                               rhel-7-server-rhvh-4-rpms                            7.1 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package
Upgrade  3 Packages

Total download size: 604 M
Is this ok [y/d/N]: 
~~~

The other packages such us libvirt-client, libvirt-daemon* (all of them), libvirt-libs and libvirt-python are missing from the rhel-7-server-rhvh-4-rpms. That's why the 'yum update' fails since all these packages must be placed into this repository section.

Cheers
Juan

Comment 6 Yuval Turgeman 2019-03-20 09:43:20 UTC
Huijuan, RCM made the fix, can you please verify ?

Comment 9 Huijuan Zhao 2019-03-21 00:21:12 UTC
(In reply to Yuval Turgeman from comment #6)
> Huijuan, RCM made the fix, can you please verify ?

Yuval, yes, the issue is fixed now.

Test version:
From: rhvh-4.2.7.3-0.20181026.0

Test steps:
Same as comment 2

Test results:
Can upgrade via RHSM successful.


Note You need to log in before you can comment on or make changes to this bug.