Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Cookbook downloads fail when using Ruby AWS SDK gem (`aws-sdk`) #8466
When this native retry routine is disabled,
We recently introduced a new custom Ohai plugin to our deployment that exposed this behaviour. This plugin leveraged the
When the plugin loads and the EC2 client establishes a connection, the "seahorse" client activates a patch on the native Ruby
I think this will be reproducable on ALL version of Chef, but was primarily tested on Chef version
ALL -- reproducable on Windows, RHEL and Debian variants
This behaviour is difficult to isolate and reproduce. It seems to only occur when the resultant cookbook downloads reach a point of critical mass.
I can reproduce it with certain combinations of cookbooks, but not others -- the larger the runlist, the better the chance of seeing an EOF error.
I have not been able to fully discern the common denominator.
The only relevant output on a standard run is this:
No stack trace file is produced when this exeception occurs, but by inserting a
Once the "seahorse" patch is applied and the native Ruby
@tas50 Agreed, we cannot call this a Chef problem. Injecting a patch on Ruby core was a poor decision, but given the precedence for this, it might be prudent for Chef to protect its users against this. I would be happy to submit a lil retry patch for EOF akin to the other HTTP error rescue block.