Backport of 'Retry GCS default credentials after a latched metadata timeout'

What does this MR do and why?

Backport of !266794 (merged) to 19.5.

With GCS object storage and google_application_default: true, a single GCE metadata-server timeout makes google-cloud-env cache "not on GCE" for the life of the process. Every later Fog::Storage.new then fails with Your credentials were not found until the process restarts. The fix adds an initializer that resets the latched credentials cache and retries once when this happens.

The cherry-pick was clean. fog-google, googleauth and google-cloud-env are at the same versions on this branch as on master.

Related to #636314 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • This MR is backporting a bug fix, documentation update, or spec fix, previously merged in the default branch.
  • The MR that fixed the bug on the default branch has been deployed to GitLab.com (not applicable for documentation or spec changes).
  • The MR title is descriptive (e.g. "Backport of 'title of default branch MR'"). This is important, since the title will be copied to the patch blog post.
  • Required labels have been applied to this merge request
  • This MR has been approved by a maintainer (only one approval is required).
  • Ensure the E2E Omnibus GitLab EE pipeline (triggered by thee2e:test-on-omnibus-ee job) has succeeded. If it has failed (or shows warnings), investigate the failures. If you determine the failures are unrelated, you may proceed. If you need assistance investigating, request help in the #s_developer_experience Slack channel to confirm the failures are unrelated to the merge request.

Note to the merge request author and maintainer

If you have questions about the patch release process, please:

Edited by Hordur Freyr Yngvason

Merge request reports

Loading
Loading