Closed dhrupadb closed 7 years ago
Can we build a test package to validate this change?
Built a package and validated it on an ec2 instance. One question - there's still a "Unsuccessful HTTP request" logged by wg_curl_get_or_post
. To make it clear to the user that the error was benign
wg_get_from_gcp_metadata_server
and wg_get_from_aws_metadata_server
pointing out that we succeeded in finding metadata associated with that provider.OR
wg_curl_get_or_post
. Add a ignore_failure
flag which doesn't log the unsuccessful HTTP request message conditionally. Thoughts?
I'd vote for the latter. @qingling128 and @bmoyles0117, opinions?
The latter sounds good to me. As to the name ignore_failure
, how about expect_failure
?
PTAL. Confirmed that change is WAI.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
ℹ️ Googlers: Go here for more info.
dhrupadb was at Google at the time.
Make logs more informative when running on AWS. As GCP gets checked first, customers may interpret the message from the metadata server as an error.