-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[cmd/opampsupervisor] RemoteConfigStatus is not populated with failed on invalid config #34785
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Yep, this is absolutely something that's missing right now. It's tracked here: Looks like there was a PR opened for this but it slipped through the cracks somehow. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
not stale :( |
@Asarew I'm not well placed to help here as I am not familiar with the spec enough. Do you have a link to the section of the spec this behavior breaks? Additionally, would it make sense to have a spec change to add the behavior you are asking for, or is it already specified there? Lastly, would you be open to offer an integration test based on what you offered? That'd help heaps move this forward. |
Component(s)
cmd/opampsupervisor
Is your feature request related to a problem? Please describe.
When passing down "invalid" remote configuration from the otel controller to the supervisor, the supervisor doesn't report back in the RemoteConfigStatus status == failed. It does report back Unhealthy in the ComponentHealth with a LastError, but relying on that seems to break the opamp specification and it doesn't specify any details.
What is happening:
Pushed down valid yaml but with invalid collector config:
First message send by supervisor has RemoteConfigStatus: (with corresponding LastRemoteConfigHash)
receive ComponentHealth.Healthy == false every 5 seconds with ComponentHealth.LastError:
agent.log file gets rewritten every 5 seconds with:
Describe the solution you'd like
Call the collector validate command before starting and the agent. if that fails report the error message back in the RemoteConfigStatus.ErrorMessage with the correct status of Failed.
Describe alternatives you've considered
"Reuse" the ComponentHealth as the RemoteConfigStatus for now, but in my opinion that's a bad implementation of the opamp spec from both the controller as the supervisor.
Additional context
No response
The text was updated successfully, but these errors were encountered: