Realm_ad in Foreman 2.0 rc3

Dear All

I have been testing foreman-2.0.0-0.9.rc3. All seems well except that the realm_ad plugin prevents foreman-proxy from running:

Mar 26 15:28:34 rzla systemd: Starting Foreman Proxy...
Mar 26 15:28:34 rzla smart-proxy: Ignoring radcli-1.0.0 because its extensions are not built. Try: gem pristine radcli --version 1.0.0
Mar 26 15:28:34 rzla smart-proxy: /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/output.rb:13:in `strict_err': Gem loading error: cannot load such file -- radcli (RuntimeError)
Mar 26 15:28:34 rzla smart-proxy: from /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'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:39:in `block in system_require'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `each'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext/runtime.rb:37:in `system_require'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:19:in `block in system_require'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `each'
Mar 26 15:28:34 rzla smart-proxy: from /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.4.1/lib/bundler_ext.rb:14:in `system_require'
Mar 26 15:28:34 rzla smart-proxy: from /usr/share/foreman-proxy/lib/bundler_helper.rb:22:in `require_groups'
Mar 26 15:28:34 rzla smart-proxy: from /usr/share/foreman-proxy/lib/smart_proxy_main.rb:31:in `<top (required)>'
Mar 26 15:28:34 rzla smart-proxy: from /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Mar 26 15:28:34 rzla smart-proxy: from /opt/rh/rh-ruby25/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:59:in `require'
Mar 26 15:28:34 rzla smart-proxy: from /usr/share/foreman-proxy/bin/smart-proxy:5:in `<main>'
Mar 26 15:28:34 rzla systemd: foreman-proxy.service: main process exited, code=exited, status=1/FAILURE
Mar 26 15:28:34 rzla systemd: Failed to start Foreman Proxy.
Mar 26 15:28:34 rzla systemd: Unit foreman-proxy.service entered failed state.
Mar 26 15:28:34 rzla systemd: foreman-proxy.service failed.

The rpms involved are: tfm-rubygem-smart_proxy_realm_ad_plugin-0.1-4.fm2_0 and tfm-rubygem-radcli-1.0.0-3.

Has anyone else encountered this issue, and is there a workaround?

Many Thanks in Advance and Best Regards

Nick Gresham

I’ve started to work no this. Looks like a packaging bug. Also adding a check that will prevent issues in the future.