Foreman Install Datacenter Plugin

Problem:
I’m trying to install the foreman_datacenter plugin.
sudo dnf install rubygem-foreman_datacenter
I’m waiting for the official documentation:
https://github.com/theforeman/foreman_datacenter
https://theforeman.org/plugins/#2.Installation
Using the official repository:
https://yum.theforeman.org/plugins/3.10/el8/x86_64/
After installation, some Foreman services fail, including Foreman itself and dynflow-sidekiq@orchestrator.service.
Looking at the logs using journalctl -xe see some errors, including:

/usr/share/foreman/app/controllers/api/base_controller.rb:445:in `add_scoped_search_description_for': undefined method `fields' for nil:NilClass (NoMethodError)

Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/foreman_datacenter-2.3.0/app/controllers/api/v2/foreman_datacenter/devices_controller.rb:11:in `<class:DevicesController>'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/foreman_datacenter-2.3.0/app/controllers/api/v2/foreman_datacenter/devices_controller.rb:4:in `<module:ForemanDatacenter>'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/foreman_datacenter-2.3.0/app/controllers/api/v2/foreman_datacenter/devices_controller.rb:3:in `<module:V2>'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/foreman_datacenter-2.3.0/app/controllers/api/v2/foreman_datacenter/devices_controller.rb:2:in `<module:Api>'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/foreman_datacenter-2.3.0/app/controllers/api/v2/foreman_datacenter/devices_controller.rb:1:in `<top (required)>'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:83:in `require'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
Apr 22 15:22:28 xxx foreman[555535]:         from /usr/share/gems/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `block in require'

If it looks like we have errors in the plugin source code for this new version of Foreman, can you help me?

Expected outcome:
Correct installation of the Datacenter plugin.

Foreman and Proxy versions:
Foreman 3.10
Katello 4.12

Distribution and version:
Rocky Linux 8

Other relevant data:
If anyone uses or has used this plugin and can help me, I would appreciate it.

It looks like the plugin hasn’t received an update in 4 years, so it’s likely that it’s no longer compatible with modern Foreman. It isn’t archived yet, so if someone is interested in making a new release it could be fixed, but otherwise we may end up needing to archive the plugin.

@ekohl we may want to keep an eye on this plugin for archival unless a new maintainer pops up.

1 Like