Hide Forgot
Description of problem: satellite installer using puppet4 fails with "No Puppet module parser is installed and no cache of the file /usr/share/katello-installer-base/modules/certs/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)" Version-Release number of selected component (if applicable): satellite-installer-6.3.0-1.el7sat.noarch katello-installer-base-3.2.0-2.rc1.el7.noarch rubygem-kafo-0.9.6-1.el7.noarch How reproducible: katello-installer-base-3.2.0-2.rc1.el7.noarch Steps to Reproduce: 1. Install Puppet v4 # yum install puppetserver 2. Install Satellite rpms # yum install satellite 3. Run satellite-installer using puppet v4 # puppet -V 4.7.0 # satellite-installer -S satellite -v /usr/share/gems/gems/kafo-0.9.6/lib/kafo/puppet_module.rb:69:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/katello-installer-base/modules/certs/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError) from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/configuration.rb:89:in `block in modules' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/configuration.rb:89:in `map' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/configuration.rb:89:in `modules' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/configuration.rb:189:in `params' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/configuration.rb:199:in `preset_defaults_from_puppet' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/kafo_configure.rb:266:in `set_parameters' from /usr/share/gems/gems/kafo-0.9.6/lib/kafo/kafo_configure.rb:99: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-0.9.6/lib/kafo/kafo_configure.rb:154:in `run' from /usr/sbin/satellite-installer:8:in `<main>' Actual results: installer fails with Kafo::ParserError Expected results: installer runs successfully
As a workaround, you can do: # /opt/puppetlabs/puppet/bin/gem install yard # /opt/puppetlabs/bin/puppet module install puppetlabs-strings
Created redmine issue http://projects.theforeman.org/issues/17888 from this bug
#17888 was closed as a dupe of http://projects.theforeman.org/issues/17710
(In reply to Chris Duryee from comment #3) > As a workaround, you can do: > > # /opt/puppetlabs/puppet/bin/gem install yard > # /opt/puppetlabs/bin/puppet module install puppetlabs-strings After installing puppetlabs-strings module I had to run below command to fix the issue with installer # puppet resource package puppet-strings provider=puppet_gem
Hi hi - just a note, the only step now is to insatll the puppet-strings gem. The puppetlabs-string puppet module is now deprecated.
I tried to do it both ways, with puppetlabs-strings installed and without it, but I still get this error: # satellite-installer -S satellite -v /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- kafo (LoadError) from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /sbin/satellite-installer:3:in `<main>' I wonder what am I missing here...
VERIFIED. @satellite-6.3.0-16.0.beta.el7sat.noarch puppet-agent-1.8.2-2.el7sat.x86_64 puppet-agent-oauth-0.5.1-2.el7sat.noarch puppetserver-2.7.2-2.el7sat.noarch rubygem-kafo-2.0.0-1.el7sat.noarch # satellite-installer -S satellite ... ... Success! * Katello is running at https://sat4.example.com Initial credentials are admin / changeme * To install an additional Foreman proxy on separate machine continue by running: foreman-proxy-certs-generate --foreman-proxy-fqdn "$FOREMAN_PROXY" --certs-tar "/root/$FOREMAN_PROXY-certs.tar" The full log is at /var/log/foreman-installer/satellite.log >>> satellite installs successfully using puppet4
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > For information on the advisory, and where to find the updated files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://access.redhat.com/errata/RHSA-2018:0336