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 1700053

Summary: (6.4.z) Upgrade from 6.2.16 > 6.3 fails due to bad packaging around tfm-rubygem-qpid_messaging
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.15CC: egolov, ehelms, hshukla, mmccune
Target Milestone: 6.4.2Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1699534 Environment:
Last Closed: 2019-04-17 17:51:50 UTC Type: ---
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 2019-04-15 17:07:10 UTC
+++ This bug was initially created as a clone of Bug #1699534 +++

Description of problem:

With 6.2.16 we did release rpms of newer versions that we have in 6.3
Especially with tfm-rubygem-qpid_messaging rpm it has severe implication, newer 6.2 rpm requires ruby22 while correct and older 6.3 one requires ruby23

You end up stuck in the middle with some mixture of ryby22 and ruby23 gems.
foreman-rake is then obviously failing.

List of non-upgradeble rpms:

tfm-rubygem-qpid_messaging.x86_64  1.36.0-1.el7sat   rhel-7-server-satellite-6.3-rpms (> ruby23)
tfm-rubygem-qpid_messaging.x86_64  1.36.0-6.el7sat   rhel-7-server-satellite-6.2-rpms (> ruby22)

python-qpid-proton.x86_64          0.16.0-11.el7     rhel-7-server-satellite-6.3-rpms 
python-qpid-proton.x86_64          0.16.0-12.el7sat  rhel-7-server-satellite-6.2-rpms 

qpid-proton-c.x86_64               0.16.0-11.el7     rhel-7-server-satellite-6.3-rpms 
qpid-proton-c.x86_64               0.16.0-12.el7sat  rhel-7-server-satellite-6.2-rpms 

The root cause is that we usually miss to bump rpm versions between major releases (6.2 and 6.3 and so on) and rpm of the same version is GA'ed in next major release. Fixing along z-stream (6.2.16) by increasing release number only (-6.el7sat) will cause immediate packaging problems during upgrades.

This results into induced cascaded version bumps for all major versions released after 6.2  before we stand now as this has to be resolved in 6.3.z and then in 6.4.z and 6.5.0 (fixing preferably in reverse order 6.4.z and then 6.3.z, otherwise fix for 6.3.z would break upgrades to 6.4)

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

How reproducible:
always

Steps to Reproduce:
1. Upgrade 6.2.16 to 6.3 
# subscription-manager repos --disable rhel-7-server-satellite-6.2-rpms

# subscription-manager repos --enable rhel-7-server-satellite-6.3-rpms

# yum update

# satellite-installer --upgrade
...

Upgrade Step: migrate_foreman...
rake aborted!
Gem loading error: libruby.so.2.2: cannot open shared object file: No such file or directory - /opt/theforeman/tfm/root/usr/lib64/gems/ruby/qpid_messaging-1.36.0/cqpid.so
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/output.rb:13:in `strict_err'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:46:in `rescue in block in system_require'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:39:in `block in system_require'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `system_require'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:19:in `block in system_require'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
/usr/share/foreman/config/application.rb:16:in `<top (required)>'
/usr/share/foreman/Rakefile:1:in `<top (required)>'
LoadError: libruby.so.2.2: cannot open shared object file: No such file or directory - /opt/theforeman/tfm/root/usr/lib64/gems/ruby/qpid_messaging-1.36.0/cqpid.so

...

Actual results:
upgrade fails due to bad packaging practice 

Expected results:
upgrade succeeds,  packaging practice avoiding future problems

--- Additional comment from  on 2019-04-13T14:58:44Z 

Since this bug report was entered in Red Hat Bugzilla, the 'sat-backlog' flag has been set to ? to ensure that it is properly evaluated for release.

--- Additional comment from  on 2019-04-13T14:58:44Z 

Since this issue was entered in Red Hat Bugzilla, the pm_ack has been set to + automatically for the next planned release.

--- Additional comment from  on 2019-04-14T22:05:48Z 

Draft Plan to resolve this:

6.3:

- Build + ship new version of tfm-rubygem-qpid_messaging-1.36.0-7.el7sat.x86_64 that just bumps the version
- Upgrade to python-qpid-proton-0.16.0-12.el7sat.x86_64

6.4:

 - Build + ship new version of tfm-rubygem-qpid_messaging-1.36.0-7.el7sat.x86_64 that just bumps the version
 - Upgrade to python-qpid-proton-0.16.0-12.el7sat.x86_64

--- Additional comment from  on 2019-04-15T07:19:52Z 

6.2 has tfm-rubygem-qpid_messaging-1.36.0-6, which means:
6.3 should get -7 (MR: https://gitlab.sat.engineering.redhat.com/satellite6/satellite-packaging/merge_requests/2794)
6.4 should get -8 (MR: https://gitlab.sat.engineering.redhat.com/satellite6/satellite-packaging/merge_requests/2795)
6.5 should get -9 (MR: https://gitlab.sat.engineering.redhat.com/satellite6/satellite-packaging/merge_requests/2796)

--- Additional comment from  on 2019-04-15T10:41:33Z 

*** Bug 1699833 has been marked as a duplicate of this bug. ***

Comment 3 jcallaha 2019-04-17 13:43:57 UTC
Verified

Upgrades from 6.3.5's new async passed without any issues.

Additionally, basic functionality tests passed.

Comment 5 errata-xmlrpc 2019-04-17 17:51:50 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, 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-2019:0779