You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "pavanaravapalli (via GitHub)" <gi...@apache.org> on 2025/11/24 22:24:47 UTC

[PR] Fix: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

pavanaravapalli opened a new pull request, #12127:
URL: https://github.com/apache/cloudstack/pull/12127

   PR fixes https://github.com/apache/cloudstack/issues/12126. 
   ### Description
   
   This PR...
   <!--- Describe your changes in DETAIL - And how has behaviour functionally changed. -->
   
   <!-- For new features, provide link to FS, dev ML discussion etc. -->
   <!-- In case of bug fix, the expected and actual behaviours, steps to reproduce. -->
   
   <!-- When "Fixes: #<id>" is specified, the issue/PR will automatically be closed when this PR gets merged -->
   <!-- For addressing multiple issues/PRs, use multiple "Fixes: #<id>" -->
   <!-- Fixes: # -->
   
   <!--- ******************************************************************************* -->
   <!--- NOTE: AUTOMATION USES THE DESCRIPTIONS TO SET LABELS AND PRODUCE DOCUMENTATION. -->
   <!--- PLEASE PUT AN 'X' in only **ONE** box -->
   <!--- ******************************************************************************* -->
   
   ### 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?
   
   <!-- Please describe in detail how you tested your changes. -->
   <!-- Include details of your testing environment, and the tests you ran to -->
   
   #### How did you try to break this feature and the system with this change?
   
   <!-- see how your change affects other areas of the code, etc. -->
   
   <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) document -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3576346628

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3586485890

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3590742392

   <b>[SF] Trillian test result (tid-14879)</b>
   Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
   Total time taken: 51927 seconds
   Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12127-t14879-kvm-ol8.zip
   Smoke tests completed. 149 look OK, 1 have errors, 0 did not run
   Only failed and skipped tests results shown below:
   
   
   Test | Result | Time (s) | Test File
   --- | --- | --- | ---
   test_01_unmanage_vm_cycle_persistent_domain | `Error` | 68.43 | test_vm_lifecycle_unmanage_kvm_import.py
   test_01_unmanage_vm_cycle_persistent_domain | `Error` | 68.44 | test_vm_lifecycle_unmanage_kvm_import.py
   ContextSuite context=TestUnmanageKvmVM>:teardown | `Error` | 240.96 | test_vm_lifecycle_unmanage_kvm_import.py
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-5477360453

   @pavanaravapalli are you still going to work on this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-6469517719

   @nvazquez , moving it to unplanned as there is no-one assigned and no concrete work going on or planned for 24.x/25.y


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli closed pull request #12127: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation.
URL: https://github.com/apache/cloudstack/pull/12127


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3809906644

   @vladimirpetrov a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3575995414

   @pavanaravapalli , looks good. Please forgive me if I am mistaken, but didn’t we agree that leaving metadata in unmanaged VMs should be optional?
   I see you unconditionally remove it on un-manage.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3585925870

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3810134293

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3575996250

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "nvazquez (via GitHub)" <gi...@apache.org>.
nvazquez commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-6467080163

   No problem @pavanaravapalli - I have moved this PR for the 25.0 milestone in case you also consider reopening it. In case you open a new PR please reference this PR as a follow-up.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3585028469

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3576829722

   @DaanHoogland 
   
   Thanks for checking. I wasn’t fully aligned with leaving the metadata as-is without a cleanup option, since it can lead to repetitive manual work and also raises data-security concerns when unmanaged VMs keep CS details.
   
   As this PR is still in progress, I plan to add a toggle (either a global config or a KVM agent properties flag) to control metadata cleanup on unmanage.
   Which one do you prefer?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-6465370899

   > Hi @pavanaravapalli is this PR ready for review or still in progress?
   
   Hi @nvazquez 
   
   Apologies, I haven’t had a chance to work on this PR. I’ll close it for now and open a new one when I’m able to actively work on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3576000554

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "vladimirpetrov (via GitHub)" <gi...@apache.org>.
vladimirpetrov commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3862419204

   Hi @pavanaravapalli, sorry for the late answer - yes, I confirm that the environment was created with the latest packages from your PR. Attaching the agent logs.
   [agent.log.2026-01-30.gz](https://github.com/user-attachments/files/25136869/agent.log.2026-01-30.gz)
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3584727556

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3585917605

   @blueorangutan test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3586293969

   I believe the Jenkins build issues aren’t related to my code changes; they seem to be caused by the DB schema upgrade.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3827964493

   Okay i will check it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed pull request #12127: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation.
URL: https://github.com/apache/cloudstack/pull/12127


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3586062766

   <b>[SF] Trillian Build Failed (tid-14876)<b/>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3586493530

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3588458265

   @blueorangutan test


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "vladimirpetrov (via GitHub)" <gi...@apache.org>.
vladimirpetrov commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3824625258

   I'm getting the following error when trying to unmanage instance @pavanaravapalli:
   
   <img width="388" height="111" alt="image" src="https://github.com/user-attachments/assets/d3bc9d3a-a906-4872-92b3-b29bdcb1e96d" />
   
   ```
   2026-01-30 16:31:41,120 DEBUG [c.c.a.t.Request] (API-Job-Executor-39:[ctx-c0e7c82c, job-48, ctx-89088ece]) (logid:64a7100b) Seq 1-5360972406431160699: Sending  { Cmd , MgmtId: 32988536504755, via: 1(ref-tr
   l-10755-k-Mol9-vladimir-petrov-kvm1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.UnmanageInstanceCommand":{"instanceName":"i-2-5-VM","executeInSequence":"false","isConfigDriveAttached":"false","isLibvi
   rtMetadataCleanUpEnabled":"true","wait":"0","bypassHostMaintenance":"false"}}] }
   2026-01-30 16:31:41,164 DEBUG [c.c.a.t.Request] (AgentManager-Handler-15:[]) (logid:) Seq 1-5360972406431160699: Processing:  { Ans: , MgmtId: 32988536504755, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent
   .api.Answer":{"result":"false","details":"java.lang.NullPointerException: Cannot invoke "com.cloud.agent.api.to.VirtualMachineTO.setExcludeMetadata(boolean)" because "vmSpec" is null
           at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtUnmanageInstanceCommandWrapper.execute(LibvirtUnmanageInstanceCommandWrapper.java:71)
           at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtUnmanageInstanceCommandWrapper.execute(LibvirtUnmanageInstanceCommandWrapper.java:62)
           at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
           at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2282)
           at com.cloud.agent.Agent.processRequest(Agent.java:813)
           at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1295)
           at com.cloud.utils.nio.Task.call(Task.java:83)
           at com.cloud.utils.nio.Task.call(Task.java:29)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
           at java.base/java.lang.Thread.run(Thread.java:1583)
   ","wait":"0","bypassHostMaintenance":"false"}}] }
   2026-01-30 16:31:41,164 DEBUG [c.c.a.t.Request] (API-Job-Executor-39:[ctx-c0e7c82c, job-48, ctx-89088ece]) (logid:64a7100b) Seq 1-5360972406431160699: Received:  { Ans: , MgmtId: 32988536504755, via: 1(ref
   -trl-10755-k-Mol9-vladimir-petrov-kvm1), Ver: v1, Flags: 10, { Answer } }
   2026-01-30 16:31:41,164 DEBUG [c.c.v.ClusteredVirtualMachineManagerImpl] (API-Job-Executor-39:[ctx-c0e7c82c, job-48, ctx-89088ece]) (logid:64a7100b) Failed to persist domain XML for Instance: i-2-5-VM on h
   ost ID: 1
   2026-01-30 16:31:41,165 ERROR [c.c.v.UserVmManagerImpl] (API-Job-Executor-39:[ctx-c0e7c82c, job-48, ctx-89088ece]) (logid:64a7100b) Could not unmanage VM VM instance {"id":5,"instanceName":"i-2-5-VM","stat
   e":"Running","type":"User","uuid":"b4ad6cd5-68b2-47ea-9044-303c39cf7148"} com.cloud.utils.exception.CloudRuntimeException: Failed to persist domain XML for Instance: i-2-5-VM on host ID: 1
           at com.cloud.vm.VirtualMachineManagerImpl.persistDomainForKVM(VirtualMachineManagerImpl.java:2103)
           at com.cloud.vm.VirtualMachineManagerImpl.unmanage(VirtualMachineManagerImpl.java:2037)
           at com.cloud.vm.UserVmManagerImpl.unmanageUserVM(UserVmManagerImpl.java:9541)
           at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
           at java.base/java.lang.reflect.Method.invoke(Method.java:580)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at jdk.proxy3/jdk.proxy3.$Proxy221.unmanageUserVM(Unknown Source)
           at org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.unmanageVMInstance(UnmanagedVMsManagerImpl.java:2466)
           at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
           at java.base/java.lang.reflect.Method.invoke(Method.java:580)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:109)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
           at jdk.proxy3/jdk.proxy3.$Proxy541.unmanageVMInstance(Unknown Source)
           at org.apache.cloudstack.api.command.admin.vm.UnmanageVMInstanceCmd.execute(UnmanageVMInstanceCmd.java:125)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
           at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:698)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
           at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
           at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:646)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
           at java.base/java.lang.Thread.run(Thread.java:1583)
   ```
   
   when the global setting vm.unmanage.libvirt.metadata.cleanup = true. When it's set to 'false', the operation is successful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "nvazquez (via GitHub)" <gi...@apache.org>.
nvazquez commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-6459001985

   Hi @pavanaravapalli is this PR ready for review or still in progress?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3584722766

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3586857465

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] WIP: clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3575015417

   ## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/12127?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 3.58%. Comparing base ([`8171d95`](https://app.codecov.io/gh/apache/cloudstack/commit/8171d9568c941877e0290f77051ed45f31a73544?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`4ed2729`](https://app.codecov.io/gh/apache/cloudstack/commit/4ed272939f5189000e0c72890dc0805f38bafabb?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   > :exclamation:  There is a different number of reports uploaded between BASE (8171d95) and HEAD (4ed2729). Click for more details.
   > 
   > <details><summary>HEAD has 3 uploads less than BASE</summary>
   >
   >| Flag | BASE (8171d95) | HEAD (4ed2729) |
   >|------|------|------|
   >|uitests|2|1|
   >|unittests|2|0|
   ></details>
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@              Coverage Diff              @@
   ##               main   #12127       +/-   ##
   =============================================
   - Coverage     17.56%    3.58%   -13.98%     
   =============================================
     Files          5912      445     -5467     
     Lines        529383    37536   -491847     
     Branches      64660     6901    -57759     
   =============================================
   - Hits          92984     1347    -91637     
   + Misses       425941    36025   -389916     
   + Partials      10458      164    -10294     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/12127/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/12127/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `3.58% <ø> (ø)` | |
   | [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/12127/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/cloudstack/pull/12127?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "vladimirpetrov (via GitHub)" <gi...@apache.org>.
vladimirpetrov commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3809900678

   @blueorangutan package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] clean up CloudStack metadata (zone, pod, cluster, host details) for vm (kvm) unmanage operation. [cloudstack]

Posted by "pavanaravapalli (via GitHub)" <gi...@apache.org>.
pavanaravapalli commented on PR #12127:
URL: https://github.com/apache/cloudstack/pull/12127#issuecomment-3828809755

   > Cannot invoke "com.cloud.agent.api.to.VirtualMachineTO.setExcludeMetadata(boolean)" because "vmSpec" is null
   >         at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtUnmanageInstanc
   
   @vladimirpetrov 
   
   just wanted to confirm is agent binaries replaced with the PR changes and can i have agent error logs as well if possible. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org