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 1905731

Summary: Satellite 6.8 upgrade results in empty /var/opt/rh/rh-postgresql12/lib/pgsql/data which causes upgrade to fail
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8.0CC: ehelms, tbrisker, zhunting
Target Milestone: 6.9.0Keywords: Triaged, Upgrades
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-2.3.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1908861 (view as bug list) Environment:
Last Closed: 2021-04-21 13:24:23 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 Mike McCune 2020-12-08 22:42:08 UTC
During 6.7->6.8 upgrade, results in a conflict during the installer run:

'Execution of '/bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-syspaths' returned 1: Error: rh-postgresql12-postgresql-syspaths conflicts with postgresql-9.2.24-4.el7_8.x86_64'


Workaround appears to be to do the following:

1) rmdir /var/opt/rh/rh-postgresql12/lib/pgsql/data 
2) yum install rh-postgresql12-postgresql-syspaths

Need to investigate why this occurs on a host that never had Postgres 12 installed until the upgrade was attempted.

Comment 2 Eric Helms 2020-12-09 20:22:18 UTC
Created redmine issue https://projects.theforeman.org/issues/31486 from this bug

Comment 3 Bryan Kearney 2020-12-10 00:02:01 UTC
Upstream bug assigned to ehelms

Comment 4 Bryan Kearney 2020-12-10 00:02:03 UTC
Upstream bug assigned to ehelms

Comment 5 Bryan Kearney 2020-12-10 12:02:17 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31486 has been resolved.

Comment 11 Devendra Singh 2021-02-09 10:23:21 UTC
Verification steps:

1- Installed Satellite 6.7 latest z-stream version.

2- Installed 'postgresql-devel' package on 6.7.z installed machine.

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

3- Performed upgrade from 6.7.z to 6.8.z
4- Upgrade completed successfully.
5- Perform upgrade from 6.8.z to 6.9.0 Snap12
6- Upgrade completed successfully.
7- After upgrade, run 

# /bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-syspaths
# echo $?
0

8- Ran Satellite-installer with no option and it completed successfully.
9- Checked the installer package.
# rpm -qa|grep foreman-installer-2.3.1
foreman-installer-2.3.1.5-1.el7sat.noarch

Comment 14 errata-xmlrpc 2021-04-21 13:24:23 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 (Moderate: Satellite 6.9 Release), 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-2021:1313