Issue #2211 has been updated by John Florian. File error-with-backtrace added
Luke, Please see the new attachment (error-with-backtrace). I revised the exception handler at this key point to have it print a backtrace. I have been able to trace this down to where puppet is trying to determine what package managers are available and one of the tests it runs is '/bin/rpm --version', which makes sense as a test. I followed this problem down further to where it calls Process.waitpid2 to see if that command succeeded or not and it appears like it begins waiting too soon. In other words, it's as if the process hasn't been spawned yet, so waitpid2 raises an error essentially saying there is no such process. I'm not sure how that would be possible though or why having an IP address bound to the interface makes any difference. We started strace'ing the whole mess and oddly enough things work then, but we suspect that is because strace is slowing things down enough that the PID does exist by the time waitpid2 is called. I'll keep digging and post any findings. ---------------------------------------- Bug #2211: puppet won't install packages if network interface does not have an IP address bound http://projects.reductivelabs.com/issues/2211 Author: John Florian Status: Needs more information Priority: High Assigned to: Luke Kanies Category: Target version: 0.25.0 Complexity: Unknown Affected version: 0.24.8 Keywords: It is no longer possible to have puppet install packages via yum/rpm if the network interface is not bound to an IP address. Our use case requires using puppet in the non-daemon mode and this is possible for us because the system will have all necessary manifests and other necessary files locally. This worked just fine with 0.24.6 on Fedora 10, but began failing upon the upgrade to 0.24.8. See the attachments for failure messages and a code diff that seems to have introduced the regression. If I revert this one change, things work nicely once again. Looks like a very simple fix if it weren't for the ominous looking comment in the code. :-) -- 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 -~----------~----~----~----~------~----~------~--~---
