Dns_infoblox failing to load after upgrade to katello 3.15

Problem:
dns_infoblox failing to load after upgrade to katello 3.15

Expected outcome:
dns_infoblox feature should work

Foreman and Proxy versions:
2.0.1
Foreman and Proxy plugin versions:
foreman_tasks 1.1.1
foreman_chef 0.9.0
foreman_discovery 16.0.1
foreman_docker 5.0.0
foreman_remote_execution 3.2.1
katello 3.15.2

Distribution and version:

Other relevant data:
[E] Disabling all modules in the group [‘dns_infoblox’, ‘dns’] due to a failure in one of them: Gem loading error: cannot load such file – infoblox

$ gem list | grep infoblox
infoblox (3.0.0)

$ gem contents infoblox
/usr/share/gems/gems/infoblox-3.0.0/LICENSE.txt
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/connection.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/aaaa_record.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/arecord.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/cname.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/fixedaddress.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/grid.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/host.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/host_ipv4addr.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/ipv4address.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/lease.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/mx.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/network.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/network_container.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/ptr.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/range.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/roaminghost.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/search.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/srv.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/txt.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/zone_auth.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/resource/zone_forward.rb
/usr/share/gems/gems/infoblox-3.0.0/lib/infoblox/version.rb

Previous version of 3.14 had smart_proxy_dns_infoblox gem, but it’s missing in 3.15:
gem list | grep infoblox
infoblox (3.0.0)
smart_proxy_dns_infoblox (1.0.0)

You are missing the key information.

Also provide all relevant details, why are you using rubygems directly? The recommended installation is our installer on CentOS or Debian, we do test these scenarios.

Sorry, I missed that:

CentOS Linux release 7.7.1908

In Foreman 2.0 the Smart Proxy runs under SCL to get Ruby 2.5. That means you need to use scl enable tfm 'gem list'. Can you also list the installed packages: yum list {tfm-,}rubygem-smart_proxy* tfm-rubygem-infoblox

I had the same problem as the OP. I had installed the plugin via foreman-installer.
It appeared that the “tfm-rubygem-infoblox.noarch” package was not installed. Installing that, fixed the issue.

Looks like @roosterloo is right: I filed Bug #30367: Add infoblox dependency to rubygem-smart_proxy_dns_infoblox - Packaging - Foreman and created a PR:
https://github.com/theforeman/foreman-packaging/pull/5525

His workaround is correct for the short term.

1 Like