Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it. We invite you to submit your ideas using the form below. Please be sure to include the problem for which you are solving and the benefits of implementing the idea.

We do our best to implement as many Ideas as we can. Our Product team will evaluate all submitted ideas in a timely manner and will disposition each into one of the following categories: will integrate into the product roadmap, further research is needed, unlikely to implement.

Thanks for collaborating with us!

Update Chef Infra Client connectivity ERRORS to WARN while retrying

When running Chef Infra Client and communicating with external resources on the Chef Infra Server, such as data-collector, the client will report an ERROR if connection cannot be established and retry up to 5 times.


Could this ERROR that is happening during the retries be downgraded to a WARN level event and only report as an ERROR if 5/5 attempts fail? There are times in networks due to connectivity, server load or other outside factors which could cause initial attempts to fail but it is not truly a fault event until the 5/5 threshold is reached:


Example:

[2021-06-22T15:34:49+00:00] ERROR: Connection refused connecting to https://chef-local.local/organizations/localorg/nodes/mynode.local, retry 1/5
[2021-06-22T15:34:54+00:00] ERROR: Connection refused connecting to https://chef-local.local/organizations/localorg/nodes/mynode.local, retry 2/5
[2021-06-22T15:34:59+00:00] ERROR: Server returned error 502 for https://chef-local.local/organizations/localorg/nodes/mynode.local, retrying 3/5 in 15s

In this example, the Chef Infra Server was not able to respond to the first three attempts, but successfully completed on the 4th attempt. This could be potentially downgraded to a WARN level event until all of the attempts have been exhausted and communication failed.

  • Collin McNeese
  • Jun 22 2021
  • Completed
  • Attach files
  • Admin
    Tim Smith commented
    27 Aug 04:29pm

    This will ship in Infra Client 17.5

  • Ram Joshi commented
    23 Aug 09:55pm

    Have created a PR to fix this issue: https://github.com/chef/chef/pull/11945

  • Ram Joshi commented
    23 Aug 07:55pm

    Any updates on this?

  • +1