You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: To get the best support experience for bug fixes, please go to https://cloud.google.com/support-hub and follow the instructions. In comparison, Bug reports filed in this repo only have best effort support, and do not have guaranteed response / resolution SLOs
Describe the bug
A clear and concise description of what the bug is.
Normally to test locally I set the environment variable can be set to GCE_METADATA_HOST but in healthcheck ops_agent has hard coded https://github.com/GoogleCloudPlatform/ops-agent/blob/master/internal/healthchecks/network_check.go#L68 the url and therefore does not allow to be tested easily with meta data server implementations. So I am now looking to test an app locally that has jmx so want to run this and see ops agent integration while debugging the app. This though failed as it turns out the ops-agent fails to respect the GCE_METADATA_HOST google-cloud-ops-agent-fluent-bit.service does respect this as does google-cloud-ops-agent-diagnostics.service so issues is only in as it does not leverage metadata class to validate if on gce and this library respects this enviroment variable
To Reproduce
Steps to reproduce the behavior:
Start a VM locally using vagrant with image supported by ops agent '...' any
Install Ops Agent version '...' following the steps '...' any
Should start without error
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Project ID (This info is critical for debugging. It's preferred to be provided in a Google Cloud Support case instead of here, because all GitHub issues are public) methodical-bee-162815
VM ID (This info is critical for debugging. It's preferred to be provided in a Google Cloud Support case instead of here, because the GitHub issues are public) its my laptop
VM distro / OS: [e.g. Debian 11] ubuntu 20.04
Ops Agent version [e.g. 2.14.0] 2.46.1
Ops Agent configuration standard
Ops Agent log standard
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I think that health check is non-blocking. The Ops Agent service should still start regardless of that health check failing. We should be able to make the health checks aware of that environment variable in the future, but it shouldn't block what you're trying to do currently as the Ops Agent should still start correctly.
It's worth noting that we currently only support use cases on a GCE VM, so anything Ops Agent related like the health checks actively make that assumption. We don't make any claims that it will work in any other environment, so there could be other things that break.
NOTE: To get the best support experience for bug fixes, please go to https://cloud.google.com/support-hub and follow the instructions. In comparison, Bug reports filed in this repo only have best effort support, and do not have guaranteed response / resolution SLOs
Describe the bug
A clear and concise description of what the bug is.
Normally to test locally I set the environment variable can be set to GCE_METADATA_HOST but in healthcheck ops_agent has hard coded https://github.com/GoogleCloudPlatform/ops-agent/blob/master/internal/healthchecks/network_check.go#L68 the url and therefore does not allow to be tested easily with meta data server implementations. So I am now looking to test an app locally that has jmx so want to run this and see ops agent integration while debugging the app. This though failed as it turns out the ops-agent fails to respect the GCE_METADATA_HOST google-cloud-ops-agent-fluent-bit.service does respect this as does google-cloud-ops-agent-diagnostics.service so issues is only in as it does not leverage metadata class to validate if on gce and this library respects this enviroment variable
To Reproduce
Steps to reproduce the behavior:
[Network Check] Result: ERROR, Detail: Get "http://metadata.google.internal": dial tcp 169.254.169.254:80:
All other programs and agents such as fluent bit work fine bar ops-egent
8. See error
Network Check] Result: ERROR, Detail: Get "http://metadata.google.internal": dial tcp 169.254.169.254:80:
Expected behavior
Should start without error
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: