Issue with Katello 3.5 Plugins

Hi all,

I am pretty new to Foreman and don’t have much knowledge about foreman, currently exploring foreman 1.16 for implementation in our environment

i tried installing Katello 3.5 using https://www.theforeman.org/plugins/katello/3.5/installation/index.html

Installation went fine and was successful but when i try to run foreman-installer --scenario katello --help it gives following error

[root@foreman ~]# foreman-installer --scenario katello --help
/usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type.rb:31:in `register_type': Data type Dhcp::Macaddress is already registered, cannot be re-registered (ArgumentError)
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:22:in `block in register'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:20:in `each'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/data_type_parser.rb:20:in `register'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:343:in `block (2 levels) in register_data_types'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:342:in `each'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:342:in `block in register_data_types'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:341:in `each'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:341:in `register_data_types'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:96:in `modules'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:207:in `params'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/configuration.rb:217:in `preset_defaults_from_puppet'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/scenario_manager.rb:208:in `load_and_setup_configuration'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/kafo_configure.rb:289:in `set_parameters'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/kafo_configure.rb:100:in `initialize'
	from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `new'
	from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
	from /usr/share/gems/gems/kafo-2.0.1/lib/kafo/kafo_configure.rb:163:in `run'
	from /usr/sbin/foreman-installer:8:in `'

any help with this regards would be much useful.

I’ve seen this error before and that was when it attempted to load the
same modules twice. Are you sure all the installer packages are the
latest versions?

I guess Yes… and after katello installation my foreman installation has gone bad and while accessing dashboard it shows below

Web application could not be started
undefined method `actions' for nil:NilClass (NoMethodError)
  /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/lib/katello/permissions/organization_permissions.rb:3:in `'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
  /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/lib/katello/permissions.rb:2:in `block in '
  /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/lib/katello/permissions.rb:1:in `each'
  /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/lib/katello/permissions.rb:1:in `'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/polyglot-0.3.4/lib/polyglot.rb:65:in `require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `block in require'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:240:in `load_dependency'
  /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/dependencies.rb:274:in `require'
  /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.5.0.1/lib/katello/engine.rb:104:in `block in '"

I had this same problem.
I ran:

rpm -e foreman-1.16.1-1.el7.noarch foreman-selinux-1.16.1-1.el7.noarch foreman-compute-1.16.1-1.el7.noarch foreman-debug-1.16.1-1.el7.noarch foreman-installer-katello-3.5.1.1-1.el7.noarch foreman-proxy-1.16.1-1.el7.noarch foreman-postgresql-1.16.1-1.el7.noarch foreman-installer-1.16.1-1.el7.noarch tfm-rubygem-bastion-6.1.5-1.fm1_16.el7.noarch tfm-rubygem-foreman-tasks-0.10.9-1.fm1_16.el7.noarch tfm-rubygem-katello-3.5.1.1-1.el7.noarch katello-selinux-3.0.3-1.el7.noarch tfm-rubygem-foreman_docker-3.2.1-1.fm1_16.el7.noarch katello-debug-3.5.1-1.el7.noarch katello-3.5.1-1.el7.noarch katello-installer-base-3.5.1.1-1.el7.noarch tfm-rubygem-katello-3.5.1.1-1.el7.noarch katello-installer-base-3.5.1.1-1.el7.noarch katello-common-3.5.1-1.el7.noarch

to clean things up and then I went and removed /etc/foreman* files and /usr/share/foreman/* and /var/log/foreman* and run the yum install katello and then it was happy and the install ran and it running.

I installed 3.5 because of the problem with:

Error: Package: rubygem-rkerberos-0.1.3-6.el7.x86_64 (epel)
           Requires: libkadm5clnt_mit.so.11(kadm5clnt_mit_11_MIT)(64bit)

So I installed rubygem-rkerberos-0.1.3-5.el7.x86_64.rpm first. Yum update currently isn’t happy because I have that older version, but Foreman 1.16 and Katello 3.5 said:

Success!

I also had problems with puppet5, I ended up installing puppet from epel.

yum install puppet
Then I enabled the repo

yum -y localinstall https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
yum install puppet-agent

to get past the:
Puppet 5.5.1 does not meet requirements for thias-squid3 (>=2.7.20 <5.0.0)
problem, what a maze.
I wanted to use Foreman 1.17, but the template plugin has problems.
Hope this helps someone.
Good Luck!