Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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