Bug 1790654

Summary: satellite-maintain upgrade check failing on error saying "No package yum-utils available".
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: Satellite MaintainAssignee: Suraj Patil <supatil>
Status: CLOSED CANTFIX QA Contact: Jameer Pathan <jpathan>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6.0CC: apatel, aupadhye, dmoessne, egolov, gtalreja, kgaikwad, ktordeur, kupadhya, mawerner, pcreech, sadas, supatil, tasander
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.6.12 Doc Type: Known Issue
Doc Text:
On systems where `yum-utils` package is not installed, satellite-maintain upgrade check may fail with an error saying `No package yum-utils available`. For now, the following workaround can be used to resolve the issue: + ---- # satellite-maintain packages unlock # yum install yum-utils # satellite-maintain packages lock ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-07 08:50:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ganesh Payelkar 2020-01-13 20:24:47 UTC
Description of problem:

satellite-maintain upgrade check failing on error saying  "No package yum-utils available".

Version-Release number of selected component (if applicable):
satellite-6.6.1-1.el7sat.noarch
satellite-maintain-0.0.1-1.el7sat.noarch
rubygem-foreman_maintain-0.4.10-1.el7sat.noarch


How reproducible:
New installation of 6.6 

Steps to Reproduce:
1. Install new satellite 6.6 
2. Try to update minor version of satellite 
3. Use # satellite-maintain upgrade check --target-version 6.6.z

Actual results:

# satellite-maintain upgrade check --target-version 6.6.z
Running preparation steps required to run the next scenarios
================================================================================
Install packages: Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager
 
WARNING: Excluding 12184 updates due to foreman-protector.
Use foreman-maintain packages install/update <package>
to safely install packages without restrictions.
Use foreman-maintain upgrade run for full upgrade.
 
No package yum-utils available.
Error: Nothing to do
                                                    [FAIL]
Failed executing yum install yum-utils, exit status 1
--------------------------------------------------------------------------------
Install packages: Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager
 
WARNING: Excluding 12184 updates due to foreman-protector.
Use foreman-maintain packages install/update <package>
to safely install packages without restrictions.
Use foreman-maintain upgrade run for full upgrade.
 
Resolving Dependencies
--> Running transaction check
---> Package fio.x86_64 0:3.7-1.el7 will be installed
--> Processing Dependency: libibverbs.so.1(IBVERBS_1.0)(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libibverbs.so.1(IBVERBS_1.1)(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libpmem.so.1(LIBPMEM_1.0)(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libpmemblk.so.1(LIBPMEMBLK_1.0)(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libibverbs.so.1()(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libpmem.so.1()(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: libpmemblk.so.1()(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: librados.so.2()(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: librbd.so.1()(64bit) for package: fio-3.7-1.el7.x86_64
--> Processing Dependency: librdmacm.so.1()(64bit) for package: fio-3.7-1.el7.x86_64
--> Running transaction check
---> Package libibverbs.x86_64 0:22.1-3.el7 will be installed
--> Processing Dependency: rdma-core(x86-64) = 22.1-3.el7 for package: libibverbs-22.1-3.el7.x86_64
---> Package libpmem.x86_64 0:1.5.1-2.1.el7 will be installed
---> Package libpmemblk.x86_64 0:1.5.1-2.1.el7 will be installed
--> Processing Dependency: libdaxctl.so.1(LIBDAXCTL_2)(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
--> Processing Dependency: libndctl.so.6(LIBNDCTL_1)(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
--> Processing Dependency: libndctl.so.6(LIBNDCTL_14)(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
--> Processing Dependency: libndctl.so.6(LIBNDCTL_3)(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
--> Processing Dependency: libdaxctl.so.1()(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
--> Processing Dependency: libndctl.so.6()(64bit) for package: libpmemblk-1.5.1-2.1.el7.x86_64
---> Package librados2.x86_64 1:10.2.5-4.el7 will be installed
---> Package librbd1.x86_64 1:10.2.5-4.el7 will be installed
---> Package librdmacm.x86_64 0:22.1-3.el7 will be installed
--> Running transaction check
---> Package daxctl-libs.x86_64 0:64.1-2.el7 will be installed
---> Package ndctl-libs.x86_64 0:64.1-2.el7 will be installed
---> Package rdma-core.x86_64 0:22.1-3.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
===================================================================================================================================================================================================================
 Package                                          Arch                                        Version                                                Repository                                               Size
===================================================================================================================================================================================================================
Installing:
 fio                                              x86_64                                      3.7-1.el7                                              rhel-7-server-rpms                                      467 k
Installing for dependencies:
 daxctl-libs                                      x86_64                                      64.1-2.el7                                             rhel-7-server-rpms                                       26 k
 libibverbs                                       x86_64                                      22.1-3.el7                                             rhel-7-server-rpms                                      267 k
 libpmem                                          x86_64                                      1.5.1-2.1.el7                                          rhel-7-server-rpms                                       59 k
 libpmemblk                                       x86_64                                      1.5.1-2.1.el7                                          rhel-7-server-rpms                                       80 k
 librados2                                        x86_64                                      1:10.2.5-4.el7                                         rhel-7-server-rpms                                      1.8 M
 librbd1                                          x86_64                                      1:10.2.5-4.el7                                         rhel-7-server-rpms                                      2.4 M
 librdmacm                                        x86_64                                      22.1-3.el7                                             rhel-7-server-rpms                                       63 k
 ndctl-libs                                       x86_64                                      64.1-2.el7                                             rhel-7-server-rpms                                       64 k
 rdma-core                                        x86_64                                      22.1-3.el7                                             rhel-7-server-rpms                                       50 k
 
Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package (+9 Dependent packages)
 
Total download size: 5.3 M
Installed size: 16 M
Is this ok [y/d/N]: y
Downloading packages:
(1/10): daxctl-libs-64.1-2.el7.x86_64.rpm                                                                                                                                                   |  26 kB  00:00:00    
(2/10): libibverbs-22.1-3.el7.x86_64.rpm                                                                                                                                                    | 267 kB  00:00:00    
(3/10): libpmem-1.5.1-2.1.el7.x86_64.rpm                                                                                                                                                    |  59 kB  00:00:00    
(4/10): fio-3.7-1.el7.x86_64.rpm                                                                                                                                                            | 467 kB  00:00:01    
(5/10): libpmemblk-1.5.1-2.1.el7.x86_64.rpm                                                                                                                                                 |  80 kB  00:00:00    
(6/10): librados2-10.2.5-4.el7.x86_64.rpm                                                                                                                                                   | 1.8 MB  00:00:00    
(7/10): librbd1-10.2.5-4.el7.x86_64.rpm                                                                                                                                                     | 2.4 MB  00:00:00    
(8/10): librdmacm-22.1-3.el7.x86_64.rpm                                                                                                                                                     |  63 kB  00:00:00    
(9/10): ndctl-libs-64.1-2.el7.x86_64.rpm                                                                                                                                                    |  64 kB  00:00:00    
(10/10): rdma-core-22.1-3.el7.x86_64.rpm                                                                                                                                                    |  50 kB  00:00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                              1.9 MB/s | 5.3 MB  00:00:02    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libpmem-1.5.1-2.1.el7.x86_64                                                                                                                                                                   1/10
  Installing : rdma-core-22.1-3.el7.x86_64                                                                                                                                                                    2/10
  Installing : libibverbs-22.1-3.el7.x86_64                                                                                                                                                                   3/10
  Installing : 1:librados2-10.2.5-4.el7.x86_64                                                                                                                                                                4/10
  Installing : daxctl-libs-64.1-2.el7.x86_64                                                                                                                                                                  5/10
  Installing : ndctl-libs-64.1-2.el7.x86_64                                                                                                                                                                   6/10
  Installing : libpmemblk-1.5.1-2.1.el7.x86_64                                                                                                                                                                7/10
  Installing : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                                                                                  8/10
  Installing : librdmacm-22.1-3.el7.x86_64                                                                                                                                                                    9/10
  Installing : fio-3.7-1.el7.x86_64                                                                                                                                                                          10/10
  Verifying  : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                                                                                  1/10
  Verifying  : daxctl-libs-64.1-2.el7.x86_64                                                                                                                                                                  2/10
  Verifying  : libibverbs-22.1-3.el7.x86_64                                                                                                                                                                   3/10
  Verifying  : fio-3.7-1.el7.x86_64                                                                                                                                                                           4/10
  Verifying  : 1:librados2-10.2.5-4.el7.x86_64                                                                                                                                                                5/10
  Verifying  : libpmemblk-1.5.1-2.1.el7.x86_64                                                                                                                                                                6/10
  Verifying  : librdmacm-22.1-3.el7.x86_64                                                                                                                                                                    7/10
  Verifying  : rdma-core-22.1-3.el7.x86_64                                                                                                                                                                    8/10
  Verifying  : libpmem-1.5.1-2.1.el7.x86_64                                                                                                                                                                   9/10
  Verifying  : ndctl-libs-64.1-2.el7.x86_64                                                                                                                                                                  10/10
 
Installed:
  fio.x86_64 0:3.7-1.el7                                                                                                                                                                                          
 
Dependency Installed:
  daxctl-libs.x86_64 0:64.1-2.el7    libibverbs.x86_64 0:22.1-3.el7    libpmem.x86_64 0:1.5.1-2.1.el7    libpmemblk.x86_64 0:1.5.1-2.1.el7    librados2.x86_64 1:10.2.5-4.el7    librbd1.x86_64 1:10.2.5-4.el7  
  librdmacm.x86_64 0:22.1-3.el7      ndctl-libs.x86_64 0:64.1-2.el7    rdma-core.x86_64 0:22.1-3.el7    
 
Complete!
                                                    [OK]
--------------------------------------------------------------------------------
Scenario [preparation steps required to run the next scenarios] failed.
 
The following steps ended up in failing state:
 
  [packages-install]
 
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="packages-install"
 
 
# satellite-maintain upgrade check --target-version 6.6.z
Running preparation steps required to run the next scenarios
================================================================================
Install packages: Loaded plugins: foreman-protector, product-id, search-disabled-repos, subscription-manager
 
WARNING: Excluding 12184 updates due to foreman-protector.
Use foreman-maintain packages install/update <package>
to safely install packages without restrictions.
Use foreman-maintain upgrade run for full upgrade.
 
No package yum-utils available.
Error: Nothing to do
                                                    [FAIL]
Failed executing yum install yum-utils, exit status 1
--------------------------------------------------------------------------------
Scenario [preparation steps required to run the next scenarios] failed.
 
The following steps ended up in failing state:
 
  [packages-install]
 
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="packages-install"
 

Expected results:

Installer/foreman-maintain should resolve the packages installation itself 

Additional info:

Workaround: 

# foreman-maintain packages unlock
# yum install yum-utils
# foreman-maintain packages lock

Or 

# foreman-maintain packages install  yum-utils

Comment 5 Kavita 2020-02-28 13:36:43 UTC
Hello Ganesh,

I have tried to reproduce this issue but I am always getting yum-utils package. 
Could you please share below details while running workaround that mentioned in description:

Workaround:
# foreman-maintain packages unlock
# yum install yum-utils ------------------------->(any package dependencies while running this step?)
# foreman-maintain packages lock

Comment 8 Ganesh Payelkar 2020-03-03 20:57:24 UTC
Hello Kavita,

here is the required details 

# yum install yum-utils 
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-52.el7 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-52.el7.noarch
--> Running transaction check
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                             Arch                                        Version                                             Repository                                               Size
===================================================================================================================================================================================================================
Installing:
 yum-utils                                           noarch                                      1.1.31-52.el7                                       rhel-7-server-rpms                                      121 k
Installing for dependencies:
 python-kitchen                                      noarch                                      1.1.1-5.el7                                         rhel-7-server-rpms                                      266 k

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Comment 9 Kavita 2020-03-16 06:00:52 UTC
Thanks Ganesh for providing the required information. clearing needinfo on me.

Comment 10 Suraj Patil 2020-07-15 14:58:59 UTC
Created redmine issue https://projects.theforeman.org/issues/30414 from this bug

Comment 16 Anurag Patel 2020-10-07 08:50:06 UTC
Updated Doc Text with the workaround [1]. Closing this BZ as there's nothing further we can do. Please reopen if you disagree or a better fix is found.

[1] https://access.redhat.com/solutions/5362001