-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support to enable/disable VM High Availability manager #10118
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
Support to enable/disable VM High Availability manager #10118
Conversation
…erts - Adds new config 'vm.ha.enabled' with Zone scope, to enable/disable VM High Availability manager. This is enable by default (for backward compatibilty). When enabled, the VM HA WorkItems (for VM Stop, Restart, Migration, Destroy) can be created and the scheduled items are executed. When disabled, new VM HA WorkItems are not allowed and the scheduled items are retried until max retries configured at 'vm.ha.migration.max.retries' (executed in case HA is re-enabled during retry attempts), and then purged after 'time.between.failures' by the cleanup thread that runs regularly at 'time.between.cleanup'. - Adds new config 'vm.ha.alerts.enabled' with Zone scope, to enable/disable alerts for the VM HA operations. This is enabled by default.
@blueorangutan package |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10118 +/- ##
=========================================
Coverage 16.03% 16.04%
- Complexity 12814 12829 +15
=========================================
Files 5637 5637
Lines 493507 493574 +67
Branches 59831 59848 +17
=========================================
+ Hits 79131 79188 +57
+ Misses 405600 405592 -8
- Partials 8776 8794 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
code lgtm
@blueorangutan package |
@sureshanaparti 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 11839 |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11838 |
@blueorangutan package |
@sureshanaparti 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 11853 |
@blueorangutan test |
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-11956)
|
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 , tested manually and the feature works fine
Test Case Execution | Result |
---|---|
Verify that high availability tasks for VMs work as usual when 'vm.ha.enabled' is enabled | Pass |
Verify no alerts are sent to operators when scheduling of VM HA operations fails when 'vm.ha.alerts.enabled' is disabled | Pass |
Exception message should be shown when vm.ha.enabled is disabled and host is kept in maintainence mode | Pass |
The entires in op_ha_work should get purged by cleanup threads | Pass |
Verify that certain tasks are not allowed when 'vm.ha.enabled' is disabled | Pass |
Verify alerts are sent to operators when scheduling of VM HA operations fails when 'vm.ha.alerts.enabled' is enabled | Pass |
…erts (apache#10118) - Adds new config 'vm.ha.enabled' with Zone scope, to enable/disable VM High Availability manager. This is enable by default (for backward compatibilty). When enabled, the VM HA WorkItems (for VM Stop, Restart, Migration, Destroy) can be created and the scheduled items are executed. When disabled, new VM HA WorkItems are not allowed and the scheduled items are retried until max retries configured at 'vm.ha.migration.max.retries' (executed in case HA is re-enabled during retry attempts), and then purged after 'time.between.failures' by the cleanup thread that runs regularly at 'time.between.cleanup'. - Adds new config 'vm.ha.alerts.enabled' with Zone scope, to enable/disable alerts for the VM HA operations. This is enabled by default.
Description
This PR adds support to enable/disable VM High Availability manager.
Both these config settings can defined at zone/global level.
Doc PR: apache/cloudstack-documentation#464
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
New Settings =>
Sample Alert when 'vm.ha.enabled' is false =>
How Has This Been Tested?
Manually tested the VM HA related operations on host maintenance and during host down/alert, enabling & disabling new config 'vm.ha.enabled'.