[4.22] Prevent unmanaging VM from CloudStack if it is part of a CKS cluster#12800
[4.22] Prevent unmanaging VM from CloudStack if it is part of a CKS cluster#12800nvazquez wants to merge 2 commits intoapache:4.22from
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12800 +/- ##
=========================================
Coverage 17.61% 17.61%
- Complexity 15661 15669 +8
=========================================
Files 5917 5917
Lines 531411 531420 +9
Branches 64972 64974 +2
=========================================
+ Hits 93585 93601 +16
+ Misses 427271 427264 -7
Partials 10555 10555
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:
|
server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java
Outdated
Show resolved
Hide resolved
|
@blueorangutan package |
|
@nvazquez 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17119 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-15632) |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-15633) |
|
@blueorangutan test |
|
@kiranchavala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-15649) |
|
@blueorangutan package |
|
@nvazquez 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 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17137 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-15651) |
kiranchavala
left a comment
There was a problem hiding this comment.
Unable to deploy systemvm's with the pr packages
Getting the following exceptions
2026-03-16 05:00:29,098 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:[ctx-1d43103b, job-15992/job-15994, ctx-46eb4f82]) (logid:f4bd0cb7) Invocation exception, caused by: java.lang.NullPointerException: Cannot invoke "com.cloud.hypervisor.HypervisorGuru.implement(com.cloud.vm.VirtualMachineProfile)" because "hvGuru" is null
2026-03-16 05:00:29,098 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-2:[ctx-1d43103b, job-15992/job-15994, ctx-46eb4f82]) (logid:f4bd0cb7) Rethrow exception java.lang.NullPointerException: Cannot invoke "com.cloud.hypervisor.HypervisorGuru.implement(com.cloud.vm.VirtualMachineProfile)" because "hvGuru" is null
2026-03-16 05:00:29,098 DEBUG [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-2:[ctx-1d43103b, job-15992/job-15994]) (logid:f4bd0cb7) Done with run of VM work job: com.cloud.vm.VmWorkStart for VM 4, job origin: 15992
2026-03-16 05:00:29,098 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-2:[ctx-1d43103b, job-15992/job-15994]) (logid:f4bd0cb7) Unable to complete AsyncJob {"accountId":1,"cmd":"com.cloud.vm.VmWorkStart","cmdInfo":"rO0ABXNyABhjb20uY2xvdWQudm0uVm1Xb3JrU3RhcnR9cMGsvxz73gIAC0oABGRjSWRMAAZhdm9pZHN0ADBMY29tL2Nsb3VkL2RlcGxveS9EZXBsb3ltZW50UGxhbm5lciRFeGNsdWRlTGlzdDtMAAljbHVzdGVySWR0ABBMamF2YS9sYW5nL0xvbmc7TAAGaG9zdElkcQB-AAJMAAtqb3VybmFsTmFtZXQAEkxqYXZhL2xhbmcvU3RyaW5nO0wAEXBoeXNpY2FsTmV0d29ya0lkcQB-AAJMAAdwbGFubmVycQB-AANMAAVwb2RJZHEAfgACTAAGcG9vbElkcQB-AAJMAAlyYXdQYXJhbXN0AA9MamF2YS91dGlsL01hcDtMAA1yZXNlcnZhdGlvbklkcQB-AAN4cgATY29tLmNsb3VkLnZtLlZtV29ya5-ZtlbwJWdrAgAESgAJYWNjb3VudElkSgAGdXNlcklkSgAEdm1JZEwAC2hhbmRsZXJOYW1lcQB-AAN4cAAAAAAAAAABAAAAAAAAAAEAAAAAAAAABHQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAAAHBwcHBwcHBwcHA","cmdVersion":0,"completeMsid":null,"created":"Mon Mar 16 05:00:23 UTC 2026","id":15994,"initMsid":32985667600753,"instanceId":null,"instanceType":null,"lastPolled":null,"lastUpdated":null,"processStatus":0,"removed":null,"result":null,"resultCode":0,"status":"IN_PROGRESS","userId":1,"uuid":"509eb5a5-24e5-4bc3-b0e2-71b170c42f2f"}, job origin: 15992 java.lang.NullPointerException: Cannot invoke "com.cloud.hypervisor.HypervisorGuru.implement(com.cloud.vm.VirtualMachineProfile)" because "hvGuru" is null
2026-03-16 05:00:29,124 WARN [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:[ctx-c3c3424a]) (logid:6d3a850d) Unable to allocate console proxy standby capacity for zone [Zone {"id": "1", "name": "ref-trl-11326-k-Mol8-kiran-chavala", "uuid": "ebe31a7b-1e2c-4891-b408-2133ce560d8d"}] due to [null]. java.lang.NullPointerException
Description
This PR prevents unmanaging a VM from CloudStack if it belongs to a CKS cluster
Fixes: #12783
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?