Foreman installer error "parameter 'version' expects a String value, got Undef"

Problem:
Hi i am trying to upgrade one of Katello/Foreman proxies to Foreman 3.0 & Katello 4.1.
After successfully upgrading all packages via yum. I have an error running foreman-installer.

2021-10-28 17:06:25 [NOTICE] [configure] Starting system configuration.
2021-10-28 17:08:39 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Foreman::Plugin[puppet]:
2021-10-28 17:08:39 [ERROR ] [configure] parameter 'version' expects a String value, got Undef
2021-10-28 17:08:39 [ERROR ] [configure] parameter 'config_file_group' expects a String value, got Undef (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin/puppet.pp, line: 6) on node puppet.srv.big.local
2021-10-28 17:08:39 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/foreman.log

/var/log/foreman-installer/foreman.log

  2021-10-28 17:08:38 [DEBUG ] [configure] Automatically imported foreman::params from foreman/params into production
2021-10-28 17:08:38 [DEBUG ] [configure] Unknown variable: 'foreman::params::plugin_prefix'. (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin.pp, line: 25, column: 27)
2021-10-28 17:08:39 [DEBUG ] [configure] Unknown variable: 'foreman::plugin_config_dir'. (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin.pp, line: 26, column: 42)
2021-10-28 17:08:39 [DEBUG ] [configure] Unknown variable: 'foreman::group'. (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin.pp, line: 28, column: 34)
2021-10-28 17:08:39 [ERROR ] [configure] Evaluation Error: Error while evaluating a Resource Statement, Foreman::Plugin[puppet]:
2021-10-28 17:08:39 [ERROR ] [configure] parameter 'version' expects a String value, got Undef
2021-10-28 17:08:39 [ERROR ] [configure] parameter 'config_file_group' expects a String value, got Undef (file: /usr/share/foreman-installer/modules/foreman/manifests/plugin/puppet.pp, line: 6) on node puppet.srv.big.local
2021-10-28 17:08:39 [DEBUG ] [configure] Found in cache :production (ttl = 0 sec)
2021-10-28 17:08:39 [NOTICE] [configure] System configuration has finished.
2021-10-28 17:08:39 [INFO  ] [post] Executing hooks in group post
2021-10-28 17:08:39 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/30-upgrade.rb returned nil
2021-10-28 17:08:39 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/34-pulpcore_directory_layout.rb returned nil
2021-10-28 17:08:39 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-post_install_message.rb returned nil
2021-10-28 17:08:39 [DEBUG ] [post] Hook /usr/share/foreman-installer/hooks/post/99-version_locking.rb returned nil
2021-10-28 17:08:39 [INFO  ] [post] All hooks in group post finished
2021-10-28 17:08:39 [DEBUG ] [root] Exit with status code: 1 (signal was 1)
2021-10-28 17:08:39 [DEBUG ] [root] Cleaning /tmp/kafo_installation20211028-21805-b1szf2
2021-10-28 17:08:39 [DEBUG ] [root] Cleaning /tmp/kafo_installation20211028-21805-d6vzs1
2021-10-28 17:08:39 [DEBUG ] [root] Cleaning /tmp/default_values.yaml
2021-10-28 17:08:39 [DEBUG ] [root] Installer finished in 267.906170003 seconds

As i read and saw a video on youtube (Foreman Puppet extraction - Puppet plugin future maintenance discussion - YouTube)
Foreman 3.0 is excluding puppet from the CORE?
I tried to install plugin manually usin yum

yum install tfm-rubygem-foreman_puppet

As described here https://github.com/theforeman/foreman_puppet , yum installs it but Foreman installer runs without success and ends with the same error.

Could somebody help me fix the issue here? PS! I need Puppetserver and PuppetCA etc. functionality on Foreman proxy i trying to upgrade!

Thanks
Expected outcome:
Installer runs without errors. Katello/Foreman proxy upgraded.

Foreman and Proxy versions:
Foreman 3.0
Katello 4.1

Foreman and Proxy plugin versions:

Distribution and version:
CentOS Linux release 7.9.2009 (Core)

Other relevant data:

Hi, i’m facing the same issue, same log output in foreman-installer on my two puppet foreman-proxies, upgrading from 2.5.3 to 3.0.0.

I think this is Bug #33577: Foreman Puppet plugin is enabled in the migration even if Foreman is disabled - Installer - Foreman and problem should be resolved in 3.0.1. It was released a few days ago: Foreman 3.0.1 has been released!

TY so much ekohl, that did the trick, just added --no-enable-foreman-plugin-puppet and --no-enable-foreman-cli-puppet to my foreman-installer parameters and it succeeded.

Hi, yes i know that when adding additional parameters to installer eg.

--no-enable-foreman-plugin-puppet and --no-enable-foreman-cli-puppet

will fix that issue YES.

But then i dont understand the logic behind this. It will then NOT install puppet to foreman proxy which works as (Puppet, Puppet CA)?
Is now puppet included inside Foreman Core by default or not? Is Puppet Server , PuppetDB etc. need to be installed now separately?
How should i proceed when i upgrading Foreman to 3.0 with Foreman proxy which works as (Puppet, Puppet CA)?

Thanks

It was a bug in Foreman 3.0.0 which should be solved in 3.0.1. Foreman 3.0.1 was released a day after you posted this thread. @Alexandre_Barth also said he saw it with 3.0.0. If you still see it with 3.0.1 then please report that.

Tested with 3.0.1 and no more problem.

1 Like

Indeed No problem in version 3.0.1 during/after upgrade.

Thanks guys.