-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: add metadata for cloud provider and instance class to diagnostics #37272
server: add metadata for cloud provider and instance class to diagnostics #37272
Conversation
For the cloud storage stuff, what we did was write tests that check env vars that configured a given cloud and then call skip on the test if they're missing. That meant the tests are usually skipped which isn't great but if you run them by hand on a given cloud, you can confirm it works as expected. I like testing against the captured string snapshots here since that can be run anywhere, but similar skipped-if-not-on-aws tests could complement them (though I wouldn't hold up this change for them) |
Track the cloud provider and the machine type for nodes in the diagnostics report at /_status/diagnostics/local. Include tooling to capture this data for VMs running on AWS, GCP, and Azure. Release note: None
@dt Can I get you to take a quick peek at the |
whoops, sorry I didn't notice the revisions! |
bors r+ |
bors r+ |
37272: server: add metadata for cloud provider and instance class to diagnostics r=sploiselle a=sploiselle Track the cloud provider and the machine type for nodes in the diagnostics report at `/_status/diagnostics/local`. Include tooling to capture this data for VMs running on AWS, GCP, and Azure. All other platforms return empty strings. @dt @BramGruneir Do we have anything that would let us simply test the metadata endpoints that this code uses, given that they're internal to remote VMs? Release note: None Co-authored-by: Sean Loiselle <himself@seanloiselle.com>
Build succeeded |
38008: server: add metadata for cloud provider region to diagnostics r=sploiselle a=sploiselle Track the name of the cloud provider's region where nodes are located at `/_status/diagnostics/local`. Include functions to capture this data for VMs running on AWS, GCP, and Azure. All other platforms return empty strings. Also refactor prior PR (#37272) with a more modular/extensible design. Co-authored-by: Sean Loiselle <himself@seanloiselle.com>
Track the cloud provider and the machine type for nodes in the diagnostics report at
/_status/diagnostics/local
. Include tooling to capture this data for VMs running on AWS, GCP, and Azure. All other platforms return empty strings.@dt @BramGruneir Do we have anything that would let us simply test the metadata endpoints that this code uses, given that they're internal to remote VMs?
Release note: None