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
As a Sensu operator, I'd expect to be able to manually execute a check via the web UI or sensuctl if that check executes normally when scheduled.
Current Behavior
Currently, I have a check with an agent entity and proxy entity that does execute when scheduled but cannot manually execute via sensuctl or the web UI. This is the error:
2023-05-02 09:36:52 {"check":"scrape-snmp","component":"schedulerd","level":"warning","msg":"no matching entities, check will not be published","namespace":"default","time":"2023-05-02T15:36:52Z"}
Possible Solution
Steps to Reproduce (for bugs)
Sensu Docker image
Add check and proxy entity
Let the check execute normally to show its functions as desired
Manually execute check via sensuctl command or in the web UI
See the error above in the logs
Context
Your Environment
Sensu version used (sensuctl, sensu-backend, and/or sensu-agent): 6.9.2
Installation method (packages, binaries, docker, etc.): Sensu Docker image
Operating System and version (e.g. Ubuntu 14.04): Alpine from the Docker image
The text was updated successfully, but these errors were encountered:
Verified that an edge condition where requesting an adhoc execution of a check with proxy_requests configured results in incorrect behavior scheduling. This should be a relatively simple patch to fix.
diff --git a/backend/schedulerd/executor.go b/backend/schedulerd/executor.go
index a6b30570e..0675b4b9c 100644
--- a/backend/schedulerd/executor.go
+++ b/backend/schedulerd/executor.go
@@ -198,7 +198,8 @@ func (a *AdhocRequestExecutor) listenQueue(ctx context.Context) {
continue
}
- if err = a.processCheck(ctx, &check); err != nil {
+ checkCtx := corev2.SetContextFromResource(ctx, &check)
+ if err = a.processCheck(checkCtx, &check); err != nil {
select {
case a.listenQueueErr <- err:
case <-ctx.Done():
As pointed out in the sensu-engineering slack thread, this use case isn't very obviously useful, and isn't something users are very likely to run into.
Expected Behavior
As a Sensu operator, I'd expect to be able to manually execute a check via the web UI or sensuctl if that check executes normally when scheduled.
Current Behavior
Currently, I have a check with an agent entity and proxy entity that does execute when scheduled but cannot manually execute via sensuctl or the web UI. This is the error:
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: