Bug 33046 - service puppet reload fails in facter (unlike service puppet restart)
: service puppet reload fails in facter (unlike service puppet restart)
Status: NEW
: Sisyphus
(All bugs in Sisyphus/puppet-server)
: unstable
: all Linux
: P3 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2017-01-25 18:32 by
Modified: 2017-01-25 18:32 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2017-01-25 18:32:50
ruby-facter-2.0.1-alt1.noarch
puppet-server-4.7.0-alt2.noarch

I have a fresh clean installation of puppet-server.

service puppetmaster start
service puppetmaster reload

It fails with errors in facter (it thinks is is not root, i.e., uid==0, and
fails to read additional configuration from the home directory) -- from
journalctl -r:

янв 25 18:24:15 puppet.localdomain systemd[1]: puppetmaster.service: Failed
with result 'exit-code'.
янв 25 18:24:15 puppet.localdomain systemd[1]: puppetmaster.service: Unit
entered failed state.
янв 25 18:24:15 puppet.localdomain systemd[1]: puppetmaster.service: Main
process exited, code=exited, status=1/FAILURE
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/bin/puppet:4:in `<main>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/puppet/util/command_line.rb:12:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/puppet.rb:10:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter.rb:30:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter.rb:35:in `<module:Facter>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter/util/fact.rb:2:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter/util/resolution.rb:2:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter/util/config.rb:5:in `<top (required)>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter/util/config.rb:60:in `<module:Config>'
янв 25 18:24:15 puppet.localdomain puppet[1652]:         from
/usr/lib/ruby/site_ruby/facter/util/config.rb:49:in
`setup_default_ext_facts_dirs'
янв 25 18:24:15 puppet.localdomain puppet[1652]:
/usr/lib/ruby/site_ruby/facter/util/config.rb:49:in `expand_path': couldn't
find HOME environment -- expanding `~' (ArgumentError)
янв 25 18:24:15 puppet.localdomain puppet[1652]: Notice: Restarting with
'/usr/bin/puppet master --no-daemonize'
янв 25 18:24:15 puppet.localdomain puppet[1652]: Notice: Processing restart
янв 25 18:24:14 puppet.localdomain puppet[1652]: Notice: Caught HUP; storing
restart
янв 25 18:24:14 puppet.localdomain systemd[1]: Reloaded Puppet master server.
янв 25 18:24:14 puppet.localdomain systemd[1]: Reloading Puppet master server.

But service puppetmaster restart succeeds:

янв 25 18:27:02 puppet.localdomain puppet[1695]: Notice: Starting Puppet master
version 4.7.0
янв 25 18:27:02 puppet.localdomain puppet[1695]:    (at
/usr/lib/ruby/site_ruby/puppet/application/master.rb:210:in `main')
янв 25 18:27:02 puppet.localdomain puppet[1695]: Warning: The WEBrick Puppet
master server is deprecated and will be removed in a future release. Please use
Puppet Server instead. See
http://links.puppetlabs.com/deprecate-rack-webrick-servers for more
information.
янв 25 18:27:00 puppet.localdomain systemd[1]: Started Puppet master server.

I have not yet tried the new version from the test-only task:

#175947 TESTED #3 [test-only] sisyphus ruby-facter.git=2.0.1-alt2
puppet.git=4.8.1-alt1