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 - Satellite 6.8 upgrade results in empty /var/opt/rh/rh-postgresql12/lib/pgsql/data which causes upgrade to fail
Summary: Satellite 6.8 upgrade results in empty /var/opt/rh/rh-postgresql12/lib/pgsql/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.9.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-08 22:42 UTC by Mike McCune
Modified: 2021-07-27 07:14 UTC (History)
3 users (show)

Fixed In Version: foreman-installer-2.3.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1908861 (view as bug list)
Environment:
Last Closed: 2021-04-21 13:24:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31486 0 Normal Closed Upgrade results in empty /var/opt/rh/rh-postgresql12/lib/pgsql/data which causes upgrade to fail 2021-02-05 11:18:10 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:24:48 UTC

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


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