Repository navigation
Conversation
|
@blueorangutan package |
|
@Damans227 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 ✖️ debian ✖️ suse15. SL-JID 18352 |
17b9459 to
bf05e6c
Compare
|
@blueorangutan package |
|
@Damans227 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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13478 +/- ##
============================================
+ Coverage 20.92% 21.15% +0.22%
- Complexity 21142 21529 +387
============================================
Files 6057 6080 +23
Lines 549556 551522 +1966
Branches 73477 73885 +408
============================================
+ Hits 114991 116668 +1677
+ Misses 421116 421075 -41
- Partials 13449 13779 +330
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18353 |
|
@blueorangutan package |
|
@Damans227 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 18355 |
|
@blueorangutan package |
|
@Damans227 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 18371 |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
505b120 to
d1a357c
Compare
|
@blueorangutan package |
|
@blueorangutan package |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19312 |
|
[SF] Trillian Build Failed (tid-17031) |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@Damans227 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 19963 |
…very management server collects
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
[SF] Trillian test result (tid-17543)
|
# Conflicts: # engine/schema/src/main/resources/META-INF/db/schema-42300to2400.sql
@Damans227 could you please review these comments and address what's needed? And also resolve the conflicts. Thank you! |
|
@RosiKyu these are copilot's comments from nov 3. 8 were fixed in the nov 9 and 10 commits, and i replied on the domain admin one since it uses the same access check as every other list api. ill fix the conflicts next. |
|
@Damans227 can we merge this PR ? |
|
@harikrishna-patnala yes, its ready from my side. good to merge |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues allow alerts to fire after rule deletion and preset-resource submissions to create unintended account- or cloud-wide rules.
12 open issues
Prevent alert firing from racing with rule deletion · New Set the preset resource ID before the resource fetch completes · New Preserve authorized project-rule history without an implicit project filter · New Use agent sampling duration and deterministic ordering for VM rates · New Load all resources in the Monitoring selector Load all resources for the resource filter Normalize VM rate metrics across hypervisors Synchronize rule deletion with alert evaluation Lock rule renames during name validation Preserve cooldown state after alert history cleanup Calculate host network throughput from byte deltas Document that an empty message clears the custom message · New
2 resolved since last review
Review effort: Balanced
| // Rule first, so an alert fired by a run in progress is cleared with the history. | ||
| boolean removed = ruleDao.remove(cmd.getId()); | ||
| alertDao.removeByAlertRuleId(cmd.getId()); | ||
| return removed; |
There was a problem hiding this comment.
fixed in bf203af. the alert now checks the rule again after its saved. if the rule was deleted in between, the alert is removed and not sent
| this.fetchResources().then(() => { | ||
| this.form.resourceid = this.resource.id | ||
| }) |
There was a problem hiding this comment.
fixed in bf203af. the resource is set right away now, not after the list loads
| accountManager.checkAccess(CallContext.current().getCallingAccount(), null, true, rule); | ||
| alertRuleIds = new ArrayList<>(List.of(rule.getId())); | ||
| } | ||
| List<Long> visibleRuleIds = listVisibleRuleIds(cmd); |
There was a problem hiding this comment.
no change here. this matches the other list apis, project items only show with projectid, and the ui passes it in project view
| long millis = latest.get(0).getTimestamp().getTime() - latest.get(1).getTimestamp().getTime(); | ||
| return millis > 0 ? millis : null; |
There was a problem hiding this comment.
no change here. it needs two servers to collect the same vm in the same second. that sample is skipped and the next run picks it up
| private String severity; | ||
|
|
||
| @Parameter(name = ApiConstants.MESSAGE, type = CommandType.STRING, | ||
| description = "new alert message", length = 4096) |
…resource on the create form
|
Thanks @Damans227 @blueorangutan package |
|
@nvazquez 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 20262 |



Description
This PR adds resource alerts. You set a rule on a VM, volume, host or storage pool, like "cpu above 80%", and CloudStack checks it every minute. When it goes over, an alert is fired and sent out.
New global settings: resourcealert.evaluation.interval, resourcealert.repeat.interval.default, resourcealert.history.retention.days, resourcealert.per.user.limit
Doc PR: apache/cloudstack-documentation#686
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
Rules list

Settings

New rule form

Rule details

Alert history of a rule

Alerts tab on a resource page

Alert received by a webhook

Alert deliveries on the webhook

Alert email

Alert on the event bus (RabbitMQ)

How Has This Been Tested?
Tested on a KVM lab with 2 management servers, 2 hosts and NFS storage. Went through the UI end to end, and checked everything with cmk and the management server logs.
Main thing tested was delivery, all three ways:
Also tested:
How did you try to break this feature and the system with this change?