Issue #3370 has been updated by Robert Nagy.

Markus,

No other processes are accessing the yaml files at the time it's running. The 
client has nothing do with it so puppetd can be running on any platform, i've 
tried OpenBSD and Linux running puppetd, the problem happens on the machine 
running puppetmasterd.

If i start with a clean installation i run puppetmasterd and start puppetd on 
the client, everything is fine. Then I kill puppetmasterd with SIGINT or 
SIGTERM and start it up again. At this point all the yaml files are looking 
good, contents are fine. Then I start puppetd on the client and suddenly the 
error messages pops up and the client will use it's local cache. At this time 
on the server running puppetmasterd the .yaml file for the host is truncated to 
0 size. And as you asked if i run puppetd e.g. 10 times w/o restarting 
puppetmasterd, it is still fine.

I am thinking that this is an OpenBSD only issue because if ruby uses OpenBSD's 
pthread library it might cause problems, for example we cannot deal with 
non-blocking stdin/out/err. I am using the same setup with other operating 
systems too where it works just fine.
----------------------------------------
Bug #3370: YAML read/write locks broken on OpenBSD
http://projects.reductivelabs.com/issues/3370

Author: Robert Nagy
Status: Needs more information
Priority: Normal
Assigned to: Robert Nagy
Category: file
Target version: 0.25.5
Affected version: 0.25.4
Keywords: 
Branch: 


commit:"45144a1b9da2839fd9f8a182a8f82ecb06e17292" that introduces read and 
write locks broke puppet on OpenBSD.

What happens is that on the first run of puppetd everything is fine, then 
puppetmasterd gets restarted and this error occurs:

http://pastebin.ca/1841149

Then /etc/puppet/ssl gets removed and everything is fine again but only on the 
first run, then the same thing happens.

Running --compile comes down to this:
http://pastebin.ca/1841436

Reverting the changes makes puppet work again as expected.


-- 
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.

Reply via email to