Bug 2034685 - RHVH 4.4.9 - host upgrade fails with error for package libsmbclient
Summary: RHVH 4.4.9 - host upgrade fails with error for package libsmbclient
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.4.9
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.4.10-1
: 4.4.10
Assignee: Sandro Bonazzola
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-21 17:03 UTC by Ulhas Surse
Modified: 2024-02-21 11:59 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of:
Environment:
Last Closed: 2022-02-15 10:59:13 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CWFCONF-1667 0 None None None 2022-01-11 11:10:04 UTC
Red Hat Issue Tracker RHV-44395 0 None None None 2021-12-21 17:03:37 UTC
Red Hat Product Errata RHSA-2022:0540 0 None None None 2022-02-15 10:59:49 UTC

Description Ulhas Surse 2021-12-21 17:03:03 UTC
Description of problem:

 - While running yum update on the host, the following error occurred:

~~~
# dnf update
Updating Subscription Management repositories.
Last metadata expiration check: 0:05:10 ago on Monday 20 December 2021 11:09:23 PM IST.
Error: 
 Problem: cannot install the best update candidate for package libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides libwbclient = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-client-libs = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-common = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-common-libs = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
~~~

 - The host is already upgraded to RHVH 4.4.9 and then run yum update. 
 
 - The issue identified when the packages from the follows VA's were asked:

~~~
RHSA-2021:5082 >> https://access.redhat.com/errata/RHSA-2021:5082
RHSA-2021:1846 >> https://access.redhat.com/errata/RHSA-2021:1846
RHSA-2021:2566 >> https://access.redhat.com/errata/RHSA-2021:2566
RHSA-2020:4670 >> https://access.redhat.com/errata/RHSA-2020:4670
~~~

 - Since some packages from above links are listed in RHVH channel, this Bug is created.

https://access.redhat.com/downloads/content/rhel---8/x86_64/8799/libsmbclient/4.14.5-7.el8_5/x86_64/fd431d51/package


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

How reproducible:
Always

Steps to Reproduce:
1. Upgrade to 4.4.9 rhvh
2. try to upgrade with yum update command. 
3.

Actual results:
Error while upgrading.


Expected results:
Yum should upgrade available packages or avoid error and include packages in RHVH image/ or later release. 

Additional info:

Comment 2 peyu 2022-01-04 05:35:13 UTC
QE reproduced this issue.

Test version:
Upgrade RHVH from rhvh-4.4.9.2-0.20211117.0+1 to rhvh-4.4.9.3-0.20211206.0+1

Test steps:
1. Install redhat-virtualization-host-4.4.9-202111172338_8.5
2. Subscribe the host to RHSM 
   # subscription-manager register --auto-attach
3. Install libsmbclient with version information
~~~~~~
# yum install libsmbclient-4.14.5-2.el8.x86_64
Updating Subscription Management repositories.
Last metadata expiration check: 16:08:35 ago on Mon 03 Jan 2022 08:01:47 AM EST.
Dependencies resolved.
================================================================================================================================
 Package                    Architecture         Version                      Repository                                   Size
================================================================================================================================
Installing:
 libsmbclient               x86_64               4.14.5-2.el8                 rhvh-4-for-rhel-8-x86_64-rpms               147 k

Transaction Summary
================================================================================================================================
Install  1 Package

Total download size: 147 k
Installed size: 166 k
Is this ok [y/N]: y
Downloading Packages:
libsmbclient-4.14.5-2.el8.x86_64.rpm                                                             66 kB/s | 147 kB     00:02    
--------------------------------------------------------------------------------------------------------------------------------
Total                                                                                            66 kB/s | 147 kB     00:02     
Red Hat Virtualization Host for RHEL 8 x86_64 (RPMs)                                            732 kB/s | 5.0 kB     00:00    
Importing GPG key 0xFD431D51:
 Userid     : "Red Hat, Inc. (release key 2) <security>"
 Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Importing GPG key 0xD4082792:
 Userid     : "Red Hat, Inc. (auxiliary key) <security>"
 Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                        1/1 
  Installing       : libsmbclient-4.14.5-2.el8.x86_64                                                                       1/1 
  Running scriptlet: libsmbclient-4.14.5-2.el8.x86_64                                                                       1/1 
  Verifying        : libsmbclient-4.14.5-2.el8.x86_64                                                                       1/1 
Installed products updated.
Persisting: libsmbclient-4.14.5-2.el8.x86_64.rpm

Installed:
  libsmbclient-4.14.5-2.el8.x86_64                                                                                              

Complete!
~~~~~~

4. Check the installed "libsmbclient"
~~~~~~
# rpm -qa | grep libsmbclient
libsmbclient-4.14.5-2.el8.x86_64
~~~~~~

5. Try to upgrade RHVH
~~~~~~
# dnf update
Updating Subscription Management repositories.
Last metadata expiration check: 16:09:23 ago on Mon 03 Jan 2022 08:01:47 AM EST.
Error: 
 Problem: cannot install the best update candidate for package libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides libwbclient = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-client-libs = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-common = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
  - nothing provides samba-common-libs = 4.14.5-7.el8_5 needed by libsmbclient-4.14.5-7.el8_5.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
~~~~~~

Comment 3 Sandro Bonazzola 2022-01-07 14:47:30 UTC
samba-4.14.5-7.el8_5 shipped live on 2021-Dec-13 while RHV-H shipped live on 2021-Dec-08 including previous samba release.
We are going to respin RHV-H including the new samba.

Comment 16 Sandro Bonazzola 2022-01-31 10:00:20 UTC
Now that the right version of samba is also shipped in RHV-H channel please note that
`yum update` is not supported on RHV-H.
If you really need to manually update the host without using the engine for that task, you need to follow the manual procedure described in https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html/upgrade_guide/manually_updating_hosts_minor_updates

So basically starting from RHVH-4.4-20211206.0-RHVH-x86_64-dvd1.iso

# rpm -qv redhat-virtualization-host-image-update-placeholder
redhat-virtualization-host-image-update-placeholder-4.4.9-3.el8ev.noarch


# yum install libsmbclient-4.14.5-2.el8.x86_64

# ls -l /var/imgbased/persisted-rpms/*
-rw-r--r--. 1 root root 150992 Jan 31 09:24 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm

# dnf upgrade –nobest

will end up with:
Installed:
  redhat-virtualization-host-image-update-4.4.9-202201072228_8.5.x86_64                                                                                                                                            
Skipped:
  libsmbclient-4.14.5-7.el8_5.x86_64   


At reboot, checking /var/log/imgbased.log will show:

 Problem: conflicting requests
  - nothing provides samba-common = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides samba-client-libs = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides libwbclient = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides samba-common-libs = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64

and so, you'll need to re-add it manually:

# yum install libsmbclient

# ls -l /var/imgbased/persisted-rpms/*
-rw-r--r--. 1 root root 150992 Jan 31 09:24 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm
-rw-r--r--. 1 root root 151652 Jan 31 09:53 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-7.el8_5.x86_64.rpm

# rm /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm
rm: remove regular file '/var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm'? y

Comment 19 peyu 2022-02-09 08:19:07 UTC
Verified on "redhat-virtualization-host-4.4.10-202202081536_8.5" via stage CDN.

Test version:
Upgrade RHVH from rhvh-4.4.9.3-0.20211206.0+1 to rhvh-4.4.10.1-0.20220208.0+1

Test steps:
1. Install redhat-virtualization-host-4.4.9-202112061811_8.5
   # rpm -qv redhat-virtualization-host-image-update-placeholder
   ~~~~~~
   redhat-virtualization-host-image-update-placeholder-4.4.9-3.el8ev.noarch
   ~~~~~~

2. Subscribe the host to RHSM 
   # subscription-manager config --rhsm.baseurl=https://cdn.stage.redhat.com
   # subscription-manager config --server.hostname=subscription.rhsm.stage.redhat.com
   # subscription-manager register
   # subscription-manager list --available
   # subscription-manager attach --pool=8a99f9ae7c8644bb017c9142220b0184
   # yum repolist all

3. Install libsmbclient with version information
~~~~~~
# yum install libsmbclient-4.14.5-2.el8.x86_64

......

Persisting: libsmbclient-4.14.5-2.el8.x86_64.rpm
Installed products updated.

Installed:
  libsmbclient-4.14.5-2.el8.x86_64                                                                                       

Complete!
~~~~~~


4. Check the installed "libsmbclient"
~~~~~~
# ls -l /var/imgbased/persisted-rpms/*
-rw-r--r--. 1 root root 150992 Feb  9 01:27 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm
~~~~~~


5. Try to upgrade RHVH
~~~~~~
# dnf upgrade --nobest
Updating Subscription Management repositories.
Last metadata expiration check: 0:04:02 ago on Wed 09 Feb 2022 01:26:03 AM EST.
Dependencies resolved.

 Problem: package libsmbclient-4.14.5-9.el8_5.x86_64 requires samba-common = 4.14.5-9.el8_5, but none of the providers can be installed
  - cannot install the best update candidate for package libsmbclient-4.14.5-2.el8.x86_64
  - package samba-common-4.14.5-9.el8_5.noarch is filtered out by exclude filtering
=========================================================================================================================
 Package                                    Arch      Version                     Repository                        Size
=========================================================================================================================
Installing:
 redhat-virtualization-host-image-update    x86_64    4.4.10-202202081536_8.5     rhvh-4-for-rhel-8-x86_64-rpms    995 M
     replacing  redhat-virtualization-host-image-update-placeholder.noarch 4.4.9-3.el8ev
Skipping packages with broken dependencies:
 libsmbclient                               x86_64    4.14.5-9.el8_5              rhvh-4-for-rhel-8-x86_64-rpms    148 k

Transaction Summary
=========================================================================================================================
Install  1 Package
Skip     1 Package

Total download size: 995 M
Is this ok [y/N]: y
Downloading Packages:
redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64.rpm               2.4 MB/s | 995 MB     06:46    
-------------------------------------------------------------------------------------------------------------------------
Total                                                                                    2.4 MB/s | 995 MB     06:46     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                 1/1 
  Running scriptlet: redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64                          1/2 
  Installing       : redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64                          1/2 
  Running scriptlet: redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64                          1/2 
  Obsoleting       : redhat-virtualization-host-image-update-placeholder-4.4.9-3.el8ev.noarch                        2/2 
  Verifying        : redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64                          1/2 
  Verifying        : redhat-virtualization-host-image-update-placeholder-4.4.9-3.el8ev.noarch                        2/2 
Unpersisting: redhat-virtualization-host-image-update-placeholder-4.4.9-3.el8ev.noarch.rpm
Installed products updated.

Installed:
  redhat-virtualization-host-image-update-4.4.10-202202081536_8.5.x86_64                                                 
Skipped:
  libsmbclient-4.14.5-9.el8_5.x86_64 
~~~~~~

6. Reboot the host, and check /var/log/imgbased.log, it show:
~~~~~~
Error:
 Problem: conflicting requests
  - nothing provides samba-common = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides samba-client-libs = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides libwbclient = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
  - nothing provides samba-common-libs = 4.14.5-2.el8 needed by libsmbclient-4.14.5-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Container dell-per730-35.lab.eng.pek2.redhat.com failed with error code 1.
~~~~~~

7. Re-add libsmbclient manually:
~~~~~~
# yum install libsmbclient
Updating Subscription Management repositories.
Red Hat Virtualization Host 4.4 for RHEL 8 x86_64 (RPMs)                                 3.8 kB/s | 3.7 kB     00:00    
Red Hat Virtualization Host for RHEL 8 x86_64 (RPMs)                                     4.4 kB/s | 4.1 kB     00:00    
Dependencies resolved.
=========================================================================================================================
 Package                  Architecture       Version                     Repository                                 Size
=========================================================================================================================
Installing:
 libsmbclient             x86_64             4.14.5-9.el8_5              rhvh-4-for-rhel-8-x86_64-rpms             148 k

Transaction Summary
=========================================================================================================================
Install  1 Package

Total download size: 148 k
Installed size: 166 k
Is this ok [y/N]: y
Downloading Packages:
libsmbclient-4.14.5-9.el8_5.x86_64.rpm                                                    78 kB/s | 148 kB     00:01    
-------------------------------------------------------------------------------------------------------------------------
Total                                                                                     78 kB/s | 148 kB     00:01     
Red Hat Virtualization Host for RHEL 8 x86_64 (RPMs)                                     4.9 MB/s | 5.0 kB     00:00    
Importing GPG key 0xFD431D51:
 Userid     : "Red Hat, Inc. (release key 2) <security>"
 Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Importing GPG key 0xD4082792:
 Userid     : "Red Hat, Inc. (auxiliary key) <security>"
 Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                 1/1 
  Installing       : libsmbclient-4.14.5-9.el8_5.x86_64                                                              1/1 
  Running scriptlet: libsmbclient-4.14.5-9.el8_5.x86_64                                                              1/1 
  Verifying        : libsmbclient-4.14.5-9.el8_5.x86_64                                                              1/1 
Installed products updated.
Persisting: libsmbclient-4.14.5-9.el8_5.x86_64.rpm

Installed:
  libsmbclient-4.14.5-9.el8_5.x86_64                                                                                     

Complete!


# ls -l /var/imgbased/persisted-rpms/*
-rw-r--r--. 1 root root 150992 Feb  9 01:27 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm
-rw-r--r--. 1 root root 151932 Feb  9 02:01 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-9.el8_5.x86_64.rpm


# rm /var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm
rm: remove regular file '/var/imgbased/persisted-rpms/libsmbclient-4.14.5-2.el8.x86_64.rpm'? y

# ls -l /var/imgbased/persisted-rpms/*
-rw-r--r--. 1 root root 151932 Feb  9 02:01 /var/imgbased/persisted-rpms/libsmbclient-4.14.5-9.el8_5.x86_64.rpm
~~~~~~

Will move bug Status to "VERIFIED".

Comment 22 errata-xmlrpc 2022-02-15 10:59:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Virtualization Host security update [ovirt-4.4.10-1]), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0540


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