Bug 1899873 - [BUG] dependency conflict between satellite 6.8 and cockpit remote execution plugin
Summary: [BUG] dependency conflict between satellite 6.8 and cockpit remote execution ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.8.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.10.0
Assignee: Eric Helms
QA Contact: Devendra Singh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-20 09:52 UTC by Johannes Scheiber
Modified: 2024-03-25 17:11 UTC (History)
10 users (show)

Fixed In Version: foreman-installer-2.4.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1985327 (view as bug list)
Environment:
Last Closed: 2021-11-16 14:09:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31671 0 High Closed Ensure postgresql-docs and postgresql-contrib are removed as part of postgresql upgrade 2021-02-18 01:59:11 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:09:44 UTC

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


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