server: prevent duplicate HA works and alerts#10624
server: prevent duplicate HA works and alerts#10624DaanHoogland merged 4 commits intoapache:4.19from
Conversation
Fixes apache#10367 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10624 +/- ##
============================================
+ Coverage 15.16% 15.17% +0.01%
- Complexity 11326 11343 +17
============================================
Files 5414 5412 -2
Lines 474804 475091 +287
Branches 57909 57973 +64
============================================
+ Hits 72002 72096 +94
- Misses 394749 394930 +181
- Partials 8053 8065 +12
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:
|
|
@blueorangutan package |
|
@DaanHoogland 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. |
|
@DaanHoogland @sureshanaparti just a heads up, I'm still investigating more on this. I'm looking into AgentManagerImpl to not call HA process using HighAvailabilityManagerImpl multiple times. |
@shwstppr will re-check once these changes are updated, thanks for letting us know. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12900 |
|
@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 12962 |
|
@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-12884)
|
|
@shwstppr any update on this? |
|
@Pearl1594 I'm looking into this. I'll update today or tomorrow. |
server/src/main/java/com/cloud/ha/HighAvailabilityManagerImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@DaanHoogland @Pearl1594 @sureshanaparti this is ready for review now @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. |
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm (only style remark)
| List<VMInstanceVO> reorderedVMList = new ArrayList<VMInstanceVO>(); | ||
| if ((vms != null) && !vms.isEmpty()) { | ||
| int skippedHAVms = 0; | ||
| if (CollectionUtils.isNotEmpty(vms)) { |
There was a problem hiding this comment.
I think this block could go in its own method.
|
@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 13244 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-13196)
|
|
@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-13199)
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Description
Fixes #10367
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?