Bug 1827583

Summary: Installing dhcp_isc and dhcp_remote_isc fails with "You cannot specify the same gem twice with different version requirements.....You specified: rsec (< 1) and rsec (>= 0)"
Product: Red Hat Satellite Reporter: Nithin Thomas <nitthoma>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.7.0CC: avroy, bkearney, egolov, eric.nothen
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tfm-rubygem-smart_proxy_dhcp_remote_isc-0.0.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 13:02:09 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 Nithin Thomas 2020-04-24 09:18:08 UTC
Description of problem:

 ==> https://projects.theforeman.org/issues/28726

Version:

- satellite 6.7

Workaround:

 a) Edit  /usr/share/foreman-proxy/bundler.d/dhcp_remote_isc.rb

 b) change line no 2:

     from: gem 'rsec'
     to:   gem 'rsec', '< 1'

refer: https://github.com/theforeman/smart_proxy_dhcp_remote_isc/pull/3/files

Comment 2 Bryan Kearney 2020-05-04 16:51:37 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/28726 has been resolved.

Comment 3 Lukas Pramuk 2020-10-15 02:25:58 UTC
VERIFIED.

@Satellite 6.8.0 Snap18
tfm-rubygem-smart_proxy_dhcp_remote_isc-0.0.5-2.el7sat.noarch

by the following manual reproducer:

1) Install satellite and enable DHCP feature

# satellite-installer --foreman-proxy-dhcp true

2) Install remote isc provider

# satellite-installer --enable-foreman-proxy-plugin-dhcp-remote-isc --foreman-proxy-dhcp-provider=remote_isc
...
  Success!
  * Satellite is running at https://sat.example.com
...

3) Check foreman-proxy service status

# service foreman-proxy status
Redirecting to /bin/systemctl status foreman-proxy.service
● foreman-proxy.service - Foreman Proxy
   Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-10-14 21:59:29 EDT; 2min ago
...

4) Check for rsec gem required versions

 # grep -r rsec /usr/share/foreman-proxy/bundler.d/
/usr/share/foreman-proxy/bundler.d/dhcp_isc.rb:  gem 'rsec', '< 1'
/usr/share/foreman-proxy/bundler.d/dhcp_isc.rb:  gem 'rsec', '< 1'
/usr/share/foreman-proxy/bundler.d/dhcp_remote_isc.rb:  gem 'rsec', '< 1'

>>> both dhcp_isc.rb and dhcp_remote_isc.rb require the same version of rsec

Comment 6 errata-xmlrpc 2020-10-27 13:02:09 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 (Important: Satellite 6.8 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-2020:4366