Bug 1908862 - After upgrade the Satellite tfm-rubygem-foreman_remote_execution-cockpit package the WebConsole stop to work.
Summary: After upgrade the Satellite tfm-rubygem-foreman_remote_execution-cockpit pack...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.7.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: 6.8.3
Assignee: Evgeni Golov
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-17 18:08 UTC by James Jeffers
Modified: 2023-12-15 20:10 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-foreman_remote_execution-3.3.7.2-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1896785
Environment:
Last Closed: 2021-01-28 19:40:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman-packaging pull 5981 0 None closed Let cockpit subpackage depend on exact version of the main package 2021-01-29 13:36:30 UTC
Red Hat Knowledge Base (Solution) 5570441 0 None None None 2020-12-17 18:09:08 UTC
Red Hat Product Errata RHBA-2021:0302 0 None None None 2021-01-28 19:40:59 UTC

Description James Jeffers 2020-12-17 18:08:56 UTC
+++ This bug was initially created as a clone of Bug #1896785 +++

Description of problem:

Once upgrade the Satellite the package tfm-rubygem-foreman_remote_execution-cockpit is being upgraded. However, it is breaking the symbolic link of the file '/usr/sbin/foreman-cockpit-session'.

Once the symbolic link is broken the WebConsole service stop to work on the Satellite 6

Version-Release number of selected component (if applicable):

Satellite 6.7.5

How reproducible:

A complete reproduce is available on the Additional info.

NOTE: We cannot reproduce on Satellite 6.8, as we do have just one version for the packages available.


Steps to Reproduce:
1. Downgrade the packages tfm-rubygem-foreman_remote_execution-cockpit and tfm-rubygem-foreman_remote_execution
2. Upgrade one of those packages


Actual results:

The file '/usr/sbin/foreman-cockpit-session' is managed by the rpm tfm-rubygem-foreman_remote_execution and the file '/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.3/extra/cockpit/foreman-cockpit-session' is managed by the rpm tfm-rubygem-foreman_remote_execution-cockpit, if both packages are not upgraded together the symbolic link will break.

Expected results:

The files should be dependent on each other. If you upgrade one of those packages both should be upgraded together.


Additional info:

~~~
[root@bombsat67 ~]# rpm -qa |grep tfm-rubygem-foreman_remote_execution
tfm-rubygem-foreman_remote_execution-cockpit-2.0.10.2-1.el7sat.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7sat.noarch
tfm-rubygem-foreman_remote_execution-2.0.10.2-1.el7sat.noarch

[root@bombsat67 ~]# yum upgrade tfm-rubygem-foreman_remote_execution --disableplugin=foreman-protector
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package tfm-rubygem-foreman_remote_execution.noarch 0:2.0.10.2-1.el7sat will be updated
---> Package tfm-rubygem-foreman_remote_execution.noarch 0:2.0.10.3-1.el7sat will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                                    Arch                         Version                                 Repository                                              Size
==============================================================================================================================================================================================
Updating:
 tfm-rubygem-foreman_remote_execution                       noarch                       2.0.10.3-1.el7sat                       rhel-7-server-satellite-6.7-rpms                       1.6 M

Transaction Summary
==============================================================================================================================================================================================
Upgrade  1 Package

Total download size: 1.6 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for rhel-7-server-satellite-6.7-rpms
tfm-rubygem-foreman_remote_execution-2.0.10.3-1.el7sat.noarch.rpm                                                                                                      | 1.6 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : tfm-rubygem-foreman_remote_execution-2.0.10.3-1.el7sat.noarch                                                                                                              1/2 
  Cleanup    : tfm-rubygem-foreman_remote_execution-2.0.10.2-1.el7sat.noarch                                                                                                              2/2 
  Verifying  : tfm-rubygem-foreman_remote_execution-2.0.10.3-1.el7sat.noarch                                                                                                              1/2 
  Verifying  : tfm-rubygem-foreman_remote_execution-2.0.10.2-1.el7sat.noarch                                                                                                              2/2 

Updated:
  tfm-rubygem-foreman_remote_execution.noarch 0:2.0.10.3-1.el7sat                                                                                                                             

Complete!

[root@bombsat67 ~]# ls -lht /usr/sbin/foreman-cockpit-session
lrwxrwxrwx. 1 root root 116 Nov 11 08:34 /usr/sbin/foreman-cockpit-session -> /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.2/extra/cockpit/foreman-cockpit-session

[root@bombsat67 ~]# ls -lht /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.2/extra/cockpit/foreman-cockpit-session
ls: cannot access /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.2/extra/cockpit/foreman-cockpit-session: No such file or directory

[root@bombsat67 ~]# ls -lht /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.3/extra/cockpit/foreman-cockpit-session
-rwxrwxr-x. 1 root root 7.7K Oct  1 11:04 /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.3/extra/cockpit/foreman-cockpit-session

[root@bombsat67 ~]# rpm -qa |grep tfm-rubygem-foreman_remote_execution
tfm-rubygem-foreman_remote_execution-cockpit-2.0.10.2-1.el7sat.noarch
tfm-rubygem-foreman_remote_execution-2.0.10.3-1.el7sat.noarch
tfm-rubygem-foreman_remote_execution_core-1.3.0-1.el7sat.noarch

[root@bombsat67 ~]# rpm -qf /usr/sbin/foreman-cockpit-session
tfm-rubygem-foreman_remote_execution-cockpit-2.0.10.2-1.el7sat.noarch

[root@bombsat67 ~]# rpm -qf /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.2/extra/cockpit/foreman-cockpit-session
error: file /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.2/extra/cockpit/foreman-cockpit-session: No such file or directory

[root@bombsat67 ~]# rpm -qf /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-2.0.10.3/extra/cockpit/foreman-cockpit-session
tfm-rubygem-foreman_remote_execution-2.0.10.3-1.el7sat.noarch
~~~

Comment 3 Lukas Pramuk 2021-01-22 11:25:08 UTC
VERIFIED.

@Satellite 6.8.3 Snap2
tfm-rubygem-foreman_remote_execution-cockpit-3.3.7.2-2.el7sat.noarch

by following manual reproducer:

# rpm -e tfm-rubygem-foreman_remote_execution
error: Failed dependencies:
	tfm-rubygem(foreman_remote_execution) >= 3.3.0 is needed by (installed) tfm-rubygem-foreman_ansible-5.1.3.2-1.el7sat.noarch
	tfm-rubygem(foreman_remote_execution) is needed by (installed) satellite-6.8.3-1.el7sat.noarch
	tfm-rubygem-foreman_remote_execution = 3.3.7.2-2.el7sat is needed by (installed) tfm-rubygem-foreman_remote_execution-cockpit-3.3.7.2-2.el7sat.noarch

>>> tfm-rubygem-foreman_remote_execution-cockpit now requires matching version of tfm-rubygem-foreman_remote_execution so that symlink referencing a file in another rpm (tfm-rubygem-foreman_remote_execution) cannot be broken when

/usr/sbin/foreman-cockpit-session -> /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-3.3.7.2/extra/cockpit/foreman-cockpit-session

Comment 8 errata-xmlrpc 2021-01-28 19:40:57 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.3 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:0302


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