Issue #1273 has been updated by flakrat.
I am getting the same result with 0.24.5 clients on RHEL 4 and CentOS 5
systems. Very rarely does the puppetd successfully restart, normally it's as
the bug reports it triggers a refresh and dies disappears.
I don't have any additional details than provided by the reporter. Here's my
puppet_client.pp class:
class puppet_client {
package {"puppet":
ensure => latest,
notify => Service["puppet"],
}
package {"facter":
ensure => latest,
}
file {"/etc/puppet/puppet.conf":
source => ["puppet://$server/files/site/etc/puppet/puppet.conf.$fqdn",
"puppet://$server/files/site/etc/puppet/puppet.conf"],
owner => "root",
group => "root",
mode => 644,
require => Package["puppet"],
}
service { "puppet":
ensure => running,
enable => true,
require => Package["puppet"],
subscribe => Package["puppet"],
}
}
----------------------------------------
Bug #1273: Can't restart puppetd from puppetd
http://projects.reductivelabs.com/issues/show/1273
Author: ask
Status: Needs more information
Priority: Normal
Assigned to: community
Category: service
Target version:
Complexity: Unknown
Patch: None
Affected version:
Keywords:
It doesn't seem to be possible to restart puppetd from within puppetd.
<pre>
remote_file { "/etc/puppet.conf":
source => "puppet/puppet.conf",
mode => 444,
notify => Service[[puppet]],
}
service { "puppet":
ensure => true,
hasrestart => true,
restart => "kill -HUP @/var/run/puppet/puppetd.pid@",
hasstatus => true,
}
</pre>
Gives me
<pre>
May 31 17:06:50 diesel puppetdr27733:
(//Node[diesel]/dbserver/baseclass/centos/Remote_file[/etc/puppet.conf]/File[/etc/puppet.conf]/source)
replacing from source puppet:///dist/puppet/puppet.conf with contents
{md5}b71014d9e6b6b189591a2ea7bd4b1cf3
May 31 17:06:50 diesel puppetdr27825: Could not create PID file:
/var/run/puppet/puppetd.pid
May 31 17:06:50 diesel puppetdr27733:
(//Node[diesel]/dbserver/baseclass/centos/Service[puppet]/ensure) ensure
changed 'stopped' to 'running'
May 31 17:06:50 diesel puppetdr27733:
(//Node[diesel]/dbserver/baseclass/centos/Service[puppet]) Triggering 'refresh'
from 1 dependencies
</pre>
but puppetd doesn't actually restart.
I get the same result without the "restart" service parameter.
See also ticket #793.
----------------------------------------
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://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---