Issue #21055 has been updated by Andrew Parker.

>From Joshua Partlow:

Andrew and I worked out we think is way to reproduce this on the command line:
With:
  * pe-puppet checked out
  * a local bundle install
  * no puppet master running
  * no cert information for the local node in ~/.puppet:

Prior to Nick's patch:
<pre>
jpartlow@percival:~/work/puppetlabs/pe-puppet$ bundle exec puppet agent 
--onetime --waitforcert 2 | tee foo.log
</pre>

Will hang with the following in syslog:
<pre>
Jun  3 15:09:34 percival puppet-agent[9339]: Could not request certificate: No 
such file or directory - getaddrinfo
</pre>

After Nick's patch is applied (and remembering to kill the puppet agent daemon 
produced in the previous run) we see:
<pre>
jpartlow@percival:~/work/puppetlabs/pe-puppet$ bundle exec puppet agent 
--onetime --waitforcert 2 | tee foo.log
jpartlow@percival:~/work/puppetlabs/pe-puppet$
</pre>

So we do return on the command line and syslog has the following:
<pre>
Jun  3 15:10:44 percival puppet-agent[9404]: Reopening log files
Jun  3 15:10:44 percival puppet-agent[9404]: Could not request certificate: No 
such file or directory - getaddrinfo
</pre>

----------------------------------------
Bug #21055: puppet agent does not release stdin/out/err before waiting for 
certificates
https://projects.puppetlabs.com/issues/21055#change-92135

* Author: Andrew Parker
* Status: Accepted
* Priority: Normal
* Assignee: Andrew Parker
* Category: agent
* Target version: 3.3.0
* Affected Puppet version: 3.2.1
* Keywords: 
* Branch: 
----------------------------------------
When the `puppet agent` starts and tries to wait for certificates, it has not 
yet fully daemonized itself and so stops other programs from continuing. This 
showed up in the PE installer when it tried to execute `( service pe-puppet 
restart ) | tee logfile.log` (example command). 


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to