Bug 1933156

Summary: Ensure postgresql-docs and postgresql-contrib is removed as part of 6.8 postgresql upgrade
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: high    
Version: 6.8.0CC: ahumbe, ehelms, ktordeur, mmccune, sokeeffe, zhunting
Target Milestone: 6.8.5Keywords: Patch, PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-2.1.2.12-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1897129 Environment:
Last Closed: 2021-03-31 19:48:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 3 Devendra Singh 2021-03-15 08:31:04 UTC
Verified on 6.8.5 Snap 1

Verification steps:

1- Installed the satellite with 6.7.z version.
2- Installed the postgresql-contrib, postgresql-docs packages packages.

# foreman-maintain packages install postgresql-contrib postgresql-docs
Running preparation steps required to run the next scenarios
================================================================================
Check if tooling for package locking is installed:                    [OK]
.............
.............
Installed:
  postgresql-contrib.x86_64 0:9.2.24-4.el7_8                                                                postgresql-docs.x86_64 0:9.2.24-4.el7_8                                                               

Dependency Installed:
  uuid.x86_64 0:1.6.2-26.el7                                                                                                                               

  Packages are locked.                                                [OK]
--------------------------------------------------------------------------------

# rpm -qa postgresql-contrib
postgresql-contrib-9.2.24-4.el7_8.x86_64
# rpm -qa postgresql-docs
postgresql-docs-9.2.24-4.el7_8.x86_64


3- Ran the upgrade from 6.7 to 6.8 and it completed successfully.

#foreman-maintain upgrade run --whitelist="disk-performance" --target-version 6.8 -y
..............
..............
Check if yum exclude list is configured:                              [OK]
......
....
/ Configuring repositories for 6.8                                    [OK]
--------------------------------------------------------------------------------
Unlock packages:                                                      [OK]                                    
--------------------------------------------------------------------------------
Update package(s) :                                                   [OK]                                    
--------------------------------------------------------------------------------
Procedures::Installer::Upgrade:                                       [OK]                                    
--------------------------------------------------------------------------------
Execute upgrade:run rake task:                                        [OK]                                    
-------------------------------------------------------------------------------- 
 
Running Procedures after migrating to Satellite 6.8

The Satellite is upgraded from 6.7.5 to 6.8.5

4- Checked the packages "postgresql-contrib postgresql-docs" after the upgrade but they were unavailable.

# rpm -qa postgresql-contrib
# rpm -qa postgresql-doc

5- Checked the fixed package on the upgraded satellite

# rpm -qa|grep foreman-installer-2.1.2.12-1
foreman-installer-2.1.2.12-1.el7sat.noarch

Comment 8 errata-xmlrpc 2021-03-31 19:48:19 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 (Satellite 6.8.5 Async Bug Fix Update), 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/RHBA-2021:1057