Issue #20146 has been updated by Vincent Janelle.
Root cause seems to be in lib/puppet/settings.rb:
def service_user_available?
return @service_user_available if defined?(@service_user_available)
if self[:user]
user = Puppet::Type.type(:user).new :name => self[:user], :audit =>
:ensure
@service_user_available = user.exists?
else
@service_user_available = false
end
end
'false' eventually gets converted to '0', and the puppet user cannot create
files as root.
----------------------------------------
Bug #20146: rrdgraph report handler fails on first run
https://projects.puppetlabs.com/issues/20146#change-94603
* Author: Alex Jurkiewicz
* Status: Unreviewed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* Affected Puppet version:
* Keywords:
* Branch:
----------------------------------------
We run 3.1.1 with the following master config (snipped everything not rrd*):
[master]
reports=tagmail,rrdgraph
rrddir = $vardir/rrd
rrdinterval = $runinterval
rrdgraph = true
I clean rrd directory: `rm -rf /var/lib/puppet/rrd/*`
Then we run puppet on the client and on master see errors like this in syslog:
Apr 9 10:51:09 master01 puppet-master[10343]: Not sending tagmail report;
no changes
Apr 9 10:51:09 master01 puppet-master[10343]: Failed to set owner to '0':
Operation not permitted - /var/lib/puppet/rrd/app01.fqdn
Apr 9 10:51:09 master01 puppet-master[10343]:
(/File[/var/lib/puppet/rrd/app01.fqdn]/ensure) change from absent to directory
failed: Failed to set owner to '0': Operation not permitted -
/var/lib/puppet/rrd/app01.fqdn
Apr 9 10:51:09 master01 puppet-master[10343]: Report processor failed: Got
2 failure(s) while initializing: Failed to set owner to '0': Operation not
permitted - /var/lib/puppet/rrd/app01.fqdn; change from absent to directory
failed: Failed to set owner to '0': Operation not permitted -
/var/lib/puppet/rrd/app01.fqdn
However, on the master the directory is created:
/var/lib/puppet/rrd # cd app01.fqdn
/var/lib/puppet/rrd/app01.fqdn # ls -ld
drwxr-xr-x 2 puppet puppet 4096 Apr 9 11:02 ./
But the directory is empty. Running the client again populates it with
rrd/png/html files as expected.
BTW I found two maybe related tickets: #9166 and #4204.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.