-
Notifications
You must be signed in to change notification settings - Fork 1.3k
webhook: fixes, filter enhancement #12023
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
Conversation
- Adds filter functionality for webhooks. Currently, event type filter is supported - Assorted fixes Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12023 +/- ##
============================================
+ Coverage 17.51% 17.76% +0.25%
- Complexity 15585 15858 +273
============================================
Files 5914 5923 +9
Lines 529867 530451 +584
Branches 64722 64815 +93
============================================
+ Hits 92782 94228 +1446
+ Misses 426635 425682 -953
- Partials 10450 10541 +91
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15699 |
|
@shwstppr , I understand you need it for your work, but shall we separate out the upgrade code to another PR? |
|
@DaanHoogland yes, I just added a direct 4220to4230 path here for testing but we may need 4220to4221 and 4221to4230 upgrade paths. Will discuss and create a separate PR for upgrade paths |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14809)
|
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 15781 |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 15847 |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16206 |
kiranchavala
left a comment
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.
Hi @shwstppr
As discussed could you please add checks for conflicting rules , currently we are allowing them
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16218 |
|
@kiranchavala conflicting rules issue should be addressed with the latest commit |
kiranchavala
left a comment
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.
LGTM
Conflicting rules are addressed with a error message
Existing Filters for a webhook is checked before the webhook is delivered
2026-01-05 05:34:32,882 DEBUG [o.a.c.m.w.WebhookServiceImpl] (qtp253011924-20:[ctx-3586a40b, ctx-27425efe]) (logid:9eaf936f) Skipping delivering Event {"description":"{\"eventDateTime\":\"2026-01-05 05:34:32 +0000\",\"DataCenter\":\"b33b4f35-75ab-48db-a3e1-6c964d13c0d6\",\"entityuuid\":\"239d1c74-7078-4ea1-9aab-26f9980fe9b0\",\"NetworkOffering\":\"dadc4f8a-2111-4883-ae05-129e743d4db4\",\"Network\":\"239d1c74-7078-4ea1-9aab-26f9980fe9b0\",\"description\":\"Successfully completed creating network. Network Id: 204\",\"event\":\"NETWORK.CREATE\",\"Domain\":\"08ae40b9-e9f4-11f0-98c5-1e004000041c\",\"user\":\"588f4873-e9f4-11f0-98c5-1e004000041c\",\"account\":\"588e6b04-e9f4-11f0-98c5-1e004000041c\",\"entity\":\"Network\",\"status\":\"Completed\"}","eventId":140,"eventType":"NETWORK.CREATE","eventUuid":"c0c03d48-d2b7-4c4e-978a-0ff4f503985d","resourceType":"Network","resourceUUID":"239d1c74-7078-4ea1-9aab-26f9980fe9b0"} to Webhook {"id":1,"name":"kiran-webhook","payloadUrl":"http:\/\/10.0.33.232:8080","uuid":"dc42575a-f261-468d-975b-782db0b92212"} as it doesn't match filters
If there are no filters for a webhook then the events are delivered successfully
2026-01-05 05:42:08,075 DEBUG [o.a.c.m.w.WebhookDeliveryThread] (Webhook-Job-Executor-4:[]) (logid:) Delivering event: VOLUME.CREATE for Webhook {"id":1,"name":"kiran-webhook","payloadUrl":"http:\/\/10.0.33.232:8080","uuid":"dc42575a-f261-468d-975b-782db0b92212"}
DaanHoogland
left a comment
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.
clgtm
Description
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Added filters and checked if delivery for certain events is skipped
Filters:
Logs:
How did you try to break this feature and the system with this change?