-
Notifications
You must be signed in to change notification settings - Fork 175
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
5002-manual check execution bugfix #5042
Conversation
2f17c12
to
fd92f77
Compare
backend/schedulerd/executor.go
Outdated
//display matched entities | ||
matchedEntityJson, _ := json.Marshal(matchedEntities) | ||
matchedEntityJsonData := string(matchedEntityJson) | ||
logger.WithFields(fields).Infof("matched entities: %s", matchedEntityJsonData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of a log here but it should probably be at the Debug level, as we might not want to view this under normal operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of a log here but it should probably be at the Debug level, as we might not want to view this under normal operations.
Removed the logs from code
Nice clean fix, the draft status can be removed. Well done! |
LGTM. Just make sure you sign-off your commits ( |
Don't forget to add a changelog entry. |
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
Signed-off-by: manisha kumari <[email protected]>
9cb2b06
to
1b44a38
Compare
Added the changelog.md. |
Closed #5002
Description
Each manual execution of a check via the web UI or sensuctl, must execute normally as it runs when scheduled.
Change in behavior
Manual execution of check used to throw an error of -'no matching entity found". With the changes made in context pass, the behaviour and fixed and matching entities are found.
Added
Nothing added ,only modification in existing function
Changed
The adhoc request of check execution is now processsed with the Context from resource that that an added namespace key in it.
changes are made listenQueue() and ProcessCheck() in executor.go in schedulered directory.
Fixed
This fixes the entity fetch for the manual executed check and is shown in logs after execution.
Change verification
Added log snippet of scheduler , which comes on manual check execution .
Snippet of testcase execution is also attached.