Bug #17888
closedkatello installer using puppet4 fails with Kafo::ParserError
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1381081
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
1. Install Puppet v4
- yum install puppetserver
- yum install satellite
- 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
Updated by Lukas Pramuk over 8 years ago
- Subject changed from satellite installer using puppet4 fails with Kafo::ParserError to foreman installer using puppet4 fails with Kafo::ParserError
Updated by Lukas Pramuk over 8 years ago
- Subject changed from foreman installer using puppet4 fails with Kafo::ParserError to katello installer using puppet4 fails with Kafo::ParserError
Only katello scenario is affected
# puppet -V 4.8.1 # foreman-installer -S katello /usr/share/gems/gems/kafo-1.0.5/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/foreman_proxy_content/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError) from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/configuration.rb:92:in `block in modules' from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/configuration.rb:92:in `map' from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/configuration.rb:92:in `modules' from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/configuration.rb:193:in `params' from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/configuration.rb:203:in `preset_defaults_from_puppet' from /usr/share/gems/gems/kafo-1.0.5/lib/kafo/kafo_configure.rb:270:in `set_parameters' from /usr/share/gems/gems/kafo-1.0.5/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-1.0.5/lib/kafo/kafo_configure.rb:154:in `run' from /usr/sbin/foreman-installer:8:in `<main>' # foreman-installer -S foreman --force Installing Package[puppet-agent-oauth] [11%] [.... ]^C
Updated by Dominic Cleal over 8 years ago
- Project changed from Foreman to Katello
Updated by Chris Duryee over 8 years ago
Which version of katello is this on? 3.2.1 and newer should have this fixed.
Updated by Lukas Pramuk over 8 years ago
Chris Duryee wrote:
Which version of katello is this on? 3.2.1 and newer should have this fixed.
foreman-1.14.0-0.develop.201611250918git2775293.el7
foreman-installer-1.15.0-0.develop.201612160324git523fe48.el7
foreman-installer-katello-3.3.0-1.nightly.201612152204git7314093.el7
katello-3.3.0-2.nightly.el7
katello-installer-base-3.3.0-1.nightly.201612152204git7314093.el7
Updated by Lukas Pramuk over 8 years ago
rubygem-kafo-1.0.5-1.el7
rubygem-kafo_parsers-0.1.5-1.el7
rubygem-kafo_wizards-0.0.1-2.el7
Updated by Justin Sherrill over 8 years ago
- Category set to Installer
- Assignee set to Chris Duryee
Updated by Justin Sherrill over 8 years ago
- Status changed from New to Duplicate
- Translation missing: en.field_release set to 166
Updated by Justin Sherrill over 8 years ago
- Has duplicate Bug #17710: cache generator deletes all caches that begin with 'foreman' including foreman_proxy_content added
Updated by Daniel Lobato Garcia over 8 years ago
I could reproduce this on nightly, are you sure this had to be closed?
This is the log from a new RHEL 7 host literally without anything installed, on the first ssh session right after installing the OS:
https://gist.github.com/dLobatog/ae6150b5bbdc2f469a10386da08dace7
Updated by Chris Duryee over 8 years ago
this appears to be an issue that's fixed, but the current nightly is rather old. It works if you use the Koji repos.
I'll talk to the current bats person to see if we can get bats passing again, which will publish the updated nightly.
Updated by Lukas Pramuk about 8 years ago
Should we be running nightly automation against koji when nightly is not nightly?
Updated by Lukas Pramuk about 8 years ago
I still hit it with:
foreman-installer-1.15.0-0.develop.201701300324git08bb509.el7.noarch
foreman-installer-katello-3.3.0-1.nightly.201701292207git24ef11b.el7.noarch
katello-installer-base-3.3.0-1.nightly.201701292207git24ef11b.el7.noarch
rubygem-kafo-1.0.6-1.el7.noarch
rubygem-kafo_parsers-0.1.6-1.el7.noarch
rubygem-kafo_wizards-0.0.1-2.el7.noarch
# foreman-installer --scenario katello /usr/share/gems/gems/kafo-1.0.6/lib/kafo/puppet_module.rb:69:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/puppet/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError) from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/configuration.rb:93:in `block in modules' from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/configuration.rb:93:in `map' from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/configuration.rb:93:in `modules' from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/configuration.rb:198:in `params' from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/configuration.rb:208:in `preset_defaults_from_puppet' from /usr/share/gems/gems/kafo-1.0.6/lib/kafo/kafo_configure.rb:277:in `set_parameters' from /usr/share/gems/gems/kafo-1.0.6/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-1.0.6/lib/kafo/kafo_configure.rb:155:in `run' from /usr/sbin/foreman-installer:8:in `<main>' # puppet -V 4.8.2
Reopen?
Updated by Lukas Pramuk about 8 years ago
Fixed by updating to:
foreman-installer-katello-3.3.0-1.nightly.201701301507git24ef11b.el7.noarch
katello-installer-base-3.3.0-1.nightly.201701301507git24ef11b.el7.noarch
Updated by Lukas Pramuk about 8 years ago
Lukas Pramuk wrote:
Fixed by updating to:
foreman-installer-katello-3.3.0-1.nightly.201701301507git24ef11b.el7.noarch
katello-installer-base-3.3.0-1.nightly.201701301507git24ef11b.el7.noarch
And broken once again by updating to:
foreman-installer-katello.noarch 0:3.3.0-1.nightly.201701302208git25acd4a.el7
katello-installer-base.noarch 0:3.3.0-1.nightly.201701302208git25acd4a.el7
Updated by Lukas Pramuk about 8 years ago
Not really. The message amended a bit:
# foreman-installer --scenario katello /usr/share/gems/gems/kafo-1.0.6/lib/kafo/puppet_module.rb:69:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/puppet/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)
Before:
No Puppet module parser is installed and no cache of the file /usr/share/katello-installer-base/modules/foreman_proxy_content/manifests/init.pp ...
Now:
No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/puppet/manifests/init.pp ...