Skip to content

Conversation

@shwstppr
Copy link
Contributor

Description

Fixes #10367

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov
Copy link

codecov bot commented Mar 27, 2025

Codecov Report

Attention: Patch coverage is 29.72973% with 26 lines in your changes missing coverage. Please review.

Project coverage is 15.17%. Comparing base (95c2481) to head (e7ba4de).
Report is 41 commits behind head on 4.19.

Files with missing lines Patch % Lines
...java/com/cloud/ha/HighAvailabilityManagerImpl.java 47.61% 7 Missing and 4 partials ⚠️
...java/com/cloud/ha/dao/HighAvailabilityDaoImpl.java 0.00% 11 Missing ⚠️
...java/com/cloud/agent/manager/AgentManagerImpl.java 20.00% 4 Missing ⚠️
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     
Flag Coverage Δ
uitests 4.29% <ø> (+<0.01%) ⬆️
unittests 15.89% <29.72%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@shwstppr
Copy link
Contributor Author

@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.

@sureshanaparti
Copy link
Contributor

@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.

@sureshanaparti sureshanaparti self-requested a review March 27, 2025 08:58
@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12900

@Pearl1594 Pearl1594 added this to the 4.19.3 milestone Mar 28, 2025
@Pearl1594 Pearl1594 moved this to In Progress in ACS 4.20.1 Mar 28, 2025
@shwstppr
Copy link
Contributor Author

shwstppr commented Apr 6, 2025

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12962

@shwstppr
Copy link
Contributor Author

shwstppr commented Apr 6, 2025

@blueorangutan test

@blueorangutan
Copy link

@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-12884)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 48859 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10624-t12884-kvm-ol8.zip
Smoke tests completed. 133 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland DaanHoogland linked an issue Apr 8, 2025 that may be closed by this pull request
@Pearl1594
Copy link
Contributor

@shwstppr any update on this?

@shwstppr
Copy link
Contributor Author

@Pearl1594 I'm looking into this. I'll update today or tomorrow.

@shwstppr
Copy link
Contributor Author

shwstppr commented May 2, 2025

@DaanHoogland @Pearl1594 @sureshanaparti this is ready for review now

@blueorangutan package

@blueorangutan
Copy link

@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.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm (only style remark)

List<VMInstanceVO> reorderedVMList = new ArrayList<VMInstanceVO>();
if ((vms != null) && !vms.isEmpty()) {
int skippedHAVms = 0;
if (CollectionUtils.isNotEmpty(vms)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this block could go in its own method.

shwstppr added 2 commits May 2, 2025 17:21
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr
Copy link
Contributor Author

shwstppr commented May 2, 2025

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13244

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-13196)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 48668 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10624-t13196-kvm-ol8.zip
Smoke tests completed. 132 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_03_secured_to_nonsecured_vm_migration Error 404.78 test_vm_life_cycle.py

@shwstppr
Copy link
Contributor Author

shwstppr commented May 4, 2025

@blueorangutan test

@blueorangutan
Copy link

@shwstppr a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-13199)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 46152 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr10624-t13199-kvm-ol8.zip
Smoke tests completed. 133 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@shwstppr shwstppr marked this pull request as ready for review May 5, 2025 06:12
@DaanHoogland DaanHoogland self-assigned this May 6, 2025
Copy link
Contributor

@Pearl1594 Pearl1594 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM

@DaanHoogland
Copy link
Contributor

tested with z(){ z|z& }; z& on the host running the VM. Between host down and vm starting only one alert per type was reported:

Screenshot 2025-05-06 at 10 40 08

@DaanHoogland DaanHoogland merged commit 919c979 into apache:4.19 May 6, 2025
25 of 26 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ACS 4.20.1 May 6, 2025
@DaanHoogland DaanHoogland deleted the fix-multiplehaworksalerts branch May 6, 2025 08:42
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Multiple alerts for HA on VM and host

5 participants