Issue #19789 has been updated by eric sorenson.

Category set to error reporting
Status changed from Needs Decision to Accepted
Assignee set to Roger Kennedy
Keywords set to errors

Sure seems reasonable to trap and append to these errors; you're right Roger 
that this is the message that bubbles up directly from the system call.

Is this something you'd be willing to work up a pull request to address?

----------------------------------------
Feature #19789: Always print the system that is being attempted when an error 
occurs. 
https://projects.puppetlabs.com/issues/19789#change-94614

* Author: Gerard Hickey
* Status: Accepted
* Priority: Normal
* Assignee: Roger Kennedy
* Category: error reporting
* Target version: 
* Affected Puppet version: 
* Keywords: errors
* Branch: 
----------------------------------------
When a failure to connect to a hostname occurs, the hostname attempted should 
be included in the error output. For example: 

    root@lvs2b1c-705546:/var/lib/puppet# puppet agent -t
    Info: Creating a new SSL key for lvs2b1c-705546.example.com
    Error: Could not request certificate: getaddrinfo: Name or service not 
known 
    Exiting; failed to retrieve certificate and waitforcert is disabled

The contents of the current puppet.conf is 

    [main]
    
    server = puppet.example.com
    ca_server = puppet-ca.example.comm
    
     [agent]
     
     environment = common 
     logdir = /var/log/puppet
     rundir = /var/run/puppet
     vardir = /var/lib/puppet
     ssldir = $vardir/ssl
     
     waitforcert = 30

The failure is clearly in the puppet.conf, but without knowing what host is 
being attempted (and believing that the puppet.conf is correct) a bunch of 
needless time can be spent trying to fix problems that don't exist (like 
resolver problems). 


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


Reply via email to