Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-10-12 Thread Claire Cadman (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Claire Cadman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Claire Cadman  
 
 
Labels: 
 doc_reviewed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.53356.1602508500049%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-28 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Release Notes: 
 Bug Fix  
 
 
Release Notes Summary: 
 Puppet agents now always log errors that occur when trying to connect to each server in its "server_list" setting at the "err" level. Previously, the errors were only logged at the "debug" level or at the "err" level if the no servers were available.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.44707.1601318700143%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-28 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10664  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
 Passed CI in c1cd3f8c5f  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.44704.1601318460142%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-16 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10664  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
 Merged to master in https://github.com/puppetlabs/puppet/commit/23402d8b0085db5f17e9ad2e1267e28e6dcd729d  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.37421.1600276380132%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-15 Thread Charlie Sharpsteen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen commented on  PUP-10664  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
 Yes, I think we should log all errors that result in the agent failing over to the next server in the list even if the run is ultimately successful. The error messages have important context that may be needed to restore the first server in the list to a healthy state.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.36494.1600193220093%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-14 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 6.19.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.36003.1600133220100%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-14 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Platform Core KANBAN  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.35997.1600130760031%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-14 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10664  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
 There are two parts to this: 1. The current intended behavior is to not log errors if we eventually find a server to connect to. In other words, only log the exceptions at the error level if we exhaust the server list:  
 
 
 
 
 $ bx puppet agent -t --server_list localhost:8141,localhost:8140  
 
 
 Info: Using configured environment 'production'  
 
 
 Info: Retrieving pluginfacts  
 
 
 ..
  
 
 
 
  But if you run with debugging you'll see the first failure followed by the second success:  
 
 
 
 
 $ bx puppet agent -td --server_list localhost:8141,localhost:8140  
 
 
 ...  
 
 
 Debug: Resolving service 'puppet' using Puppet::HTTP::Resolver::ServerList  
 
 
 Debug: Creating new connection for https://localhost:8141  
 
 
 Debug: Starting connection for https://localhost:8141  
 
 
 Debug: Unable to connect to server from server_list setting: Request to https://localhost:8141/status/v1/simple/master failed after 0.002 seconds: Failed to open TCP connection to 

Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-14 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper assigned an issue to Josh Cooper  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Assignee: 
 Josh Cooper  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.35198.1600095540033%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-11 Thread Charlie Sharpsteen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Charlie Sharpsteen  
 
 
Team: 
 Coremunity  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.34825.1599858720029%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-11 Thread Charlie Sharpsteen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Charlie Sharpsteen  
 

  
 
 
 
 

 
 At the beginning of each run, the Puppet agent performs a health check to locate a functional Puppet Server to make API calls to. If this health check fails, the run fails with the following message:{noformat}Error: Could not run Puppet configuration client: Could not select a functional puppet master from server_list: 'localhost:8140'{noformat}In order to facilitate troubleshooting, the messages logged at error level should include some detail of what happened to the health check.h2. Reproduction Case  - Install Puppet 6 on CentOS 7:{code:bash}yum install -y http://yum.puppetlabs.com/puppet6-release-el-6.noarch.rpmyum install -y puppetserver{ coode code }  - Configure the agent to check in locally and bootstrap the Puppet Server CA:{code:bash}source /etc/profile.d/puppet-agent.shpuppet config set server $(hostname -f)puppetserver ca setupsystemctl start puppetserver{code}  - Provoke a health check failure by running the Puppet agent with the server url set to {{localhoost}}:{code:bash}puppet agent -t --server_list=localhost:8140{code}h3. OutcomeThe error message is very terse and just states that a healthy server could not be found:{noformat}# puppet --version6.18.0# puppet agent -t --server_list=localhost:8140Error: Could not run Puppet configuration client: Could not select a functional puppet master from server_list: 'localhost:8140'{noformat}h3. Expected OutcomeRaising the log level to DEBUG reveals that the health check failed due to a SSL validation error. These details should be logged at ERROR level so that the root cause of connection failures is visible for post-mortem debugging:{noformat}# puppet agent -t --server_list=localhost:8140 --debug...Debug: Unable to connect to server from server_list setting: Server hostname 'localhost' did not match server certificate; expected one of dull-sanatorium.delivery.puppetlabs.net, DNS:puppet, DNS:dull-sanatorium.delivery.puppetlabs.net...Error: Could not run Puppet configuration client: Could not select a functional puppet master from server_list: 'localhost:8140'{noformat}   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-11 Thread Charlie Sharpsteen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Change By: 
 Charlie Sharpsteen  
 
 
Priority: 
 Normal Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.371698.1599857641000.34815.1599857760088%40Atlassian.JIRA.


Jira (PUP-10664) Puppet 6 should log connection error details when a functional puppet master cannot be located

2020-09-11 Thread Charlie Sharpsteen (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Charlie Sharpsteen created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10664  
 
 
  Puppet 6 should log connection error details when a functional puppet master cannot be located   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Affects Versions: 
 PUP 6.18.0  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2020/09/11 1:54 PM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Charlie Sharpsteen  
 

  
 
 
 
 

 
 At the beginning of each run, the Puppet agent performs a health check to locate a functional Puppet Server to make API calls to. If this health check fails, the run fails with the following message:  
 
 
 
 
 Error: Could not run Puppet configuration client: Could not select a functional puppet master from server_list: 'localhost:8140'
  
 
 
 
  In order to facilitate troubleshooting, the messages logged at error level should include some detail of what happened to the health check. Reproduction Case 
 
Install Puppet 6 on CentOS 7: 
  
 
 
 
 
 yum install -y