Refactor #20194
closedforeman-installer fails with puppetserver from Puppet 5
Description
Running foreman-installer on a Foreman machine / smart proxy running PuppetServer from the Puppet 5 distribution results in the exception:
puppetserver[8326]: Exception in thread "main" java.lang.IllegalArgumentException: service :puppetlabs.trapperkeeper.services.metrics.metrics-service/metrics-webservice does not appear in configuration
on puppetserver startup, effectively preventing puppetserver startup.
Seems like the configuration files have been borked.
This hack fixes it:
mv /etc/puppetlabs/puppetserver/conf.d /etc/puppetlabs/puppetserver/conf.d.old yum reinstall puppetserver
References #15096
Updated by Anonymous over 7 years ago
Puppet 5 is not supported, yet. (2017-07-08: it's working with all features now)
Updated by Anonymous over 7 years ago
- Related to Refactor #20196: Puppet 5 infra tasks added
Updated by Anonymous over 7 years ago
- Tracker changed from Bug to Refactor
- Project changed from Foreman to Installer
- Category set to Foreman modules
- Status changed from New to Ready For Testing
- Assignee set to Anonymous
- Pull request https://github.com/theforeman/puppet-puppet/pull/515 added
Updated by Oliver Freyermuth over 7 years ago
That patch was fast! Please excuse my ignorance - the PR seems to be for "puppet-puppet". Is that puppet-module also what foreman installer is using inside naturally?
In case the testing request is for me: What's the easiest way to get a nightly including the PR (or should I just wait for now)?
Cheers and many thanks,
Oliver
Updated by Anonymous over 7 years ago
It is the puppet module included with foreman-installer. Use "nightly" instead of "1.15" for the Foreman repositories, than you can apply the patch of the PR to /usr/share/foreman-installer/modules/puppet
Before running the installer for the first time, make sure the "puppet strings" face works, this will probably require to install some gems into the Puppet Ruby environment, see https://github.com/puppetlabs/puppet-strings
It might be well the case that more changes in other Foreman components will be required to get everything working in all setups and there's no timeline for that (just to adjust the expectations...).
Updated by Oliver Freyermuth over 7 years ago
Sadly, after this foreman-installer also complains about kafo:
/usr/share/gems/gems/kafo-2.0.0/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)
Maybe it's easier to have this (seemingly non-breaking) change in the next point release, i.e. 1.15.2, and not only the 1.16-nightlies, or does this violate release policies?
Since foreman appears to run just fine (apart from the environment filter bug) with puppet5 apart from this, this would get the "fix" to the end-user faster.
Updated by Anonymous over 7 years ago
FWIW, puppet strings (and kafo) is working fine for me after installing the puppet-strings and rgen (https://tickets.puppetlabs.com/browse/PDOC-168) gems.
Updated by Anonymous over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset puppet-puppet|94ff77740a27d458ce1444db016645ab763cba42.
Updated by The Foreman Bot over 7 years ago
- Pull request https://github.com/theforeman/foreman-installer/pull/235 added
Updated by Anonymous over 7 years ago
- Related to deleted (Refactor #20196: Puppet 5 infra tasks)
Updated by Anonymous over 7 years ago
- Related to Tracker #15096: Puppet 5 support added