Bug #17888
closed
katello installer using puppet4 fails with Kafo::ParserError
Added by Lukas Pramuk over 8 years ago.
Updated almost 7 years ago.
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
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
- Subject changed from satellite installer using puppet4 fails with Kafo::ParserError to foreman installer using puppet4 fails with Kafo::ParserError
- 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
- Project changed from Foreman to Katello
Which version of katello is this on? 3.2.1 and newer should have this fixed.
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
rubygem-kafo-1.0.5-1.el7
rubygem-kafo_parsers-0.1.5-1.el7
rubygem-kafo_wizards-0.0.1-2.el7
- Category set to Installer
- Assignee set to Chris Duryee
- Status changed from New to Duplicate
- Translation missing: en.field_release set to 166
- Has duplicate Bug #17710: cache generator deletes all caches that begin with 'foreman' including foreman_proxy_content added
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.
Should we be running nightly automation against koji when nightly is not nightly?
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?
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
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
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 ...
Also available in: Atom
PDF