Bug 2149895

Summary: foreman-maintain and its dependant gems are installed in EL8 gems path for Sat6.11 on EL7
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ehelms, jpathan, pcreech
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-02 21:57:46 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 Gaurav Talreja 2022-12-01 10:46:43 UTC
Description of problem:
foreman-maintain and its dependant gems are installed in EL8 gems path of /usr/share/gems/gems , for Sat6.11 on EL7 where earlier gems path was /opt/theforeman/tfm/root/usr/share/gems/gems/

Version-Release number of selected component (if applicable):
satellite-6.11.4.1-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. # ls /usr/share/gems/gems
bigdecimal-1.2.0  clamp-1.1.2  foreman_maintain-1.0.18  highline-2.0.3  io-console-0.4.2  json-1.7.7  psych-2.0.0  rdoc-4.0.0

2. # ls /opt/theforeman/tfm/root/usr/share/gems/gems/
3.

Actual results:
foreman-maintain and its dependant gems are installed in EL8 gems path for EL7 Satellite

Expected results:
foreman-maintain and its dependant gems are installed in EL7 gems path for EL7 Satellite

Additional info:

Comment 2 Patrick Creech 2022-12-02 21:57:46 UTC
This is expected.  rubygem-foreman_maintain is not built against the software collection on el7, but against the system provided ruby.  This is true for every rubygem-foreman_maintain build I have checked.  This was done intentionally, due to the nature of rubygem-foreman_maintain and ensuring that it will work without the need to install satellite components, as it is the tool you use to install/maintain satellite.