server: event for HA vm start#9202
Conversation
Fixes apache#8021 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9202 +/- ##
============================================
- Coverage 14.95% 4.29% -10.67%
============================================
Files 5378 363 -5015
Lines 469930 29387 -440543
Branches 59422 5138 -54284
============================================
- Hits 70301 1261 -69040
+ Misses 391842 27983 -363859
+ Partials 7787 143 -7644
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, just wondering if we could call the methods just startForHA(..) instead of type specific names? I know the services to call are different, so it's only cosmetic.
Co-authored-by: dahn <daan.hoogland@gmail.com>
|
@DaanHoogland separate methods are called allow publishing of events of different types. Initially, I did the same. |
|
@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. |
not sure if we understand each other @shwstppr , couldn't |
|
oh. I thought you meant using a single method. That can be changed. I based the on the existing methods in the service, eg: https://github.com/apache/cloudstack/pull/9202/files#diff-94dd8d188fcf167c1fe8196f66e9817665641c95eda7f3c8fa03c2876ad1a1a2R60 |
I was just seeing the possiboility for some polimorphism. retrieve the interface and run a generic method on it. I am not sure if this will give us much cleanup or maintainability in this case though. Do as you see fit. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9917 |
|
yes, currently it won't benefit. Will try to explore a generic interface like BaseVmManager in the coming weeks |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@blueorangutan package |
|
@rohityadavcloud 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]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9992 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10504)
|
|
Tested. Working as expected. I could see events for Stop & Start after destroying the vm from host.
|


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