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 1899873

Summary: [BUG] dependency conflict between satellite 6.8 and cockpit remote execution plugin
Product: Red Hat Satellite Reporter: Johannes Scheiber <jscheibe>
Component: InstallationAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: ahumbe, egolov, ehelms, gtalreja, janarula, jscheibe, mkalyat, saydas, smeyer, zhunting
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-installer-2.4.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1985327 (view as bug list) Environment:
Last Closed: 2021-11-16 14:09:33 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 Johannes Scheiber 2020-11-20 09:52:24 UTC
Description of problem:
  satellite-installer fails with conflicting packages:
    Error: rh-postgresql12-postgresql-syspaths conflicts with postgresql-9.2.24-4.el7_8.x86_64


Version-Release number of selected component (if applicable):
  RHEL 7.9
  Satellite 6.8
  # yum list installed|grep postgre
  foreman-postgresql.noarch    2.1.2.19-1.el7sat @rhel-7-server-satellite-6.8-rpms
  postgresql.x86_64            9.2.24-4.el7_8    @rhel-7-server-rpms              
  postgresql-libs.x86_64       9.2.24-4.el7_8    @rhel-7-server-rpms              
  rh-postgresql12-postgresql.x86_64
  rh-postgresql12-postgresql-evr.x86_64
  rh-postgresql12-postgresql-libs.x86_64
  rh-postgresql12-postgresql-server.x86_64
  rh-postgresql12-postgresql-server-syspaths.x86_64
  rh-postgresql12-runtime.x86_64


How reproducible:
always

Steps to Reproduce:
1. Install *fresh* Satellite 6.8 using the following plugins
    --enable-foreman-plugin-remote-execution
    --enable-foreman-proxy-plugin-remote-execution-ssh
2. After Satellite is installed, up and running execute satellite installer as per documentation
    https://access.redhat.com/documentation/en-us/red_hat_satellite/6.8/html/managing_hosts/host_management_and_monitoring_using_red_hat_web_console#integrating_satellite_with_red_hat_web_console
   # satellite-installer --enable-foreman-plugin-remote-execution-cockpit


Actual results:
# satellite-installer --enable-foreman-plugin-remote-execution-cockpit
Package versions are locked. Continuing with unlock.
 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
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


Expected results:
satellite-installer finishes without errors

Additional info:

Comment 1 Stefan Meyer 2020-11-23 08:19:19 UTC
I was not able to reproduce this issue. In my default RHEL 7.9 installation
no postgresql packages were installed before I installed the Satellite packages.

Only then postgresql-libs-9.2.24-4.el7_8.x86_64 was installed based on dependencies.


# Enabled repositories
[root@sat6-test:/root]# yum repolist
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload
repo id                                                   repo name                                                                       status
!rhel-7-server-ansible-2.9-rpms/x86_64                    Red Hat Ansible Engine 2.9 RPMs for Red Hat Enterprise Linux 7 Server               27
!rhel-7-server-rpms/7Server/x86_64                        Red Hat Enterprise Linux 7 Server (RPMs)                                        30.974
!rhel-7-server-satellite-6.8-rpms/x86_64                  Red Hat Satellite 6.8 (for RHEL 7 Server) (RPMs)                                   455
!rhel-7-server-satellite-maintenance-6-rpms/x86_64        Red Hat Satellite Maintenance 6 (for RHEL 7 Server) (RPMs)                          42
!rhel-7-server-satellite-tools-6.8-rpms/x86_64            Red Hat Satellite Tools 6.8 (for RHEL 7 Server) (RPMs)                              64
!rhel-server-rhscl-7-rpms/7Server/x86_64                  Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server         12.848


# Before "yum install satellite"
[root@sat6-test:/root]# rpm -qa|grep postg
- No postgres packages installed


# After "yum install satellite"
[root@sat6-test:/root]# rpm -qa|grep postg
foreman-postgresql-2.1.2.19-1.el7sat.noarch
postgresql-libs-9.2.24-4.el7_8.x86_64

The postgresql.x86_64 package is still not installed.

# After "satellite-installer --scenario satellite"
[root@sat6-test:/root]# rpm -qa|grep postg
rh-postgresql12-postgresql-libs-12.4-1.el7.x86_64
rh-postgresql12-postgresql-syspaths-12.4-1.el7.x86_64
foreman-postgresql-2.1.2.19-1.el7sat.noarch
rh-postgresql12-postgresql-server-12.4-1.el7.x86_64
postgresql-libs-9.2.24-4.el7_8.x86_64
rh-postgresql12-postgresql-12.4-1.el7.x86_64
rh-postgresql12-postgresql-evr-0.0.2-1.el7sat.x86_64
rh-postgresql12-postgresql-server-syspaths-12.4-1.el7.x86_64
rh-postgresql12-runtime-3.4-1.el7.x86_64

Here rh-postgresql12-postgresql-syspaths is already installed.
No postgresql.x86_64 package was installed by satellite-installer.

# After "satellite-installer --enable-foreman-plugin-remote-execution-cockpit"
[root@sat6-test:/root]# rpm -qa|grep postg
rh-postgresql12-postgresql-libs-12.4-1.el7.x86_64
rh-postgresql12-postgresql-syspaths-12.4-1.el7.x86_64
foreman-postgresql-2.1.2.19-1.el7sat.noarch
rh-postgresql12-postgresql-server-12.4-1.el7.x86_64
postgresql-libs-9.2.24-4.el7_8.x86_64
rh-postgresql12-postgresql-12.4-1.el7.x86_64
rh-postgresql12-postgresql-evr-0.0.2-1.el7sat.x86_64
rh-postgresql12-postgresql-server-syspaths-12.4-1.el7.x86_64
rh-postgresql12-runtime-3.4-1.el7.x86_64

Still no postgresql.x86_64 package installed.

Comment 2 Eric Helms 2020-11-30 15:29:04 UTC
Can you share what installed postgresql-9.2.24-4.el7_8.x86_64 on your system? A fresh Satellite 6.8 should not have that packaged installed on it.

Comment 5 Bryan Kearney 2021-07-01 12:06:19 UTC
Upstream bug assigned to ehelms

Comment 7 Devendra Singh 2021-07-19 09:02:39 UTC
Verified on 6.10 Snap9

Verification points:

1- Ran satellite-installer with enable-foreman-plugin-remote-execution-cockpit and it comepleted successfully.
# satellite-installer --enable-foreman-plugin-remote-execution-cockpit
2021-07-19 04:48:27 [NOTICE] [root] Loading installer configuration. This will take some time.
2021-07-19 04:48:31 [NOTICE] [root] Running installer with log based terminal
...............................
..............................
=============================================
Upgrade Step 2/2: katello:clean_backend_objects. This may take a long while.
0 orphaned consumer id(s) found in candlepin.
Candlepin orphaned consumers: []
  Success!

2- Verified the updated settings in satellite-installer --help
 
# satellite-installer --help|grep "enable-foreman-plugin-remote-execution-cockpit"
    --[no-]enable-foreman-plugin-remote-execution-cockpit Enable 'foreman_plugin_remote_execution_cockpit' puppet module (default: true)


3- Verified the foreman-installer version.

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

Comment 10 errata-xmlrpc 2021-11-16 14:09:33 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.10 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:4702