Project

General

Profile

Actions

Bug #25292

closed

error foreman-installer after upgrade

Added by Kirill Kolchanov over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

After upgrade foreman 1.16 to 1.17. I run foreman-installer --noop --dont-save-answers --verbose and get errors:

/opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- kafo (LoadError)
    from /opt/rh/rh-ruby24/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/sbin/foreman-installer:3:in `<main>'

How do resolve it? I can their ignore and will resolve ater upgrade to 1.19 or need resolve right now?

Actions #1

Updated by Kirill Kolchanov over 5 years ago

This is error arise if I switch to ruby 2.4 (scl enable rh-ruby24 bash). If run from current version ruby(ruby 2.0.0p648 (2015-12-16) [x86_64-linux]) arise other errors:

errors


before it, I remove puppet-server 3.8.7 and install puppetserver 5.3.6 and update puppet-agent to 5.5.6.
rpm -qa | grep puppet
puppet-agent-oauth-0.5.1-3.el7.noarch
puppetlabs-release-pc1-1.1.0-2.el7.noarch
puppetlabs-release-22.0-2.noarch
puppetserver-5.3.5-1.el7.noarch
puppet-agent-5.5.6-1.el7.x86_64

I don't understand why he try installing old version puppet-server,puppet-agent?

Actions #2

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

You shouldn't run foreman-installer with the 2.4 SCL enabled. Our installer is not part of the SCL which explains that. We may need to build in some checks or ensure it's executed with the system ruby.

Regarding the puppet upgrade the problem is that you need to change answers to install the new puppetserver. We have https://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4 which has a list of items to reset. https://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_4_to_5 may be needed as well though I think the 3 to 4 covers it mostly.

Actions #3

Updated by Lukas Zapletal over 5 years ago

  • Status changed from New to Closed
  • Triaged changed from No to Yes

Thank you Ewoud, I am going to close the issue, please use our community discourse for further discussion.

Actions

Also available in: Atom PDF