jmsperu commented on PR #14233:
URL: https://github.com/apache/cloudstack/pull/14233#issuecomment-7112274093

   Tested on 4.22.1.1 (KVM, Ubuntu 24.04). Needs #13558 (167320eb) underneath 
to compile on the 4.22.1.1 tag.
   
   Scenario: vm.destroy.forcestop=true, stop cloudstack-agent on the VM's host, 
wait for the host to show Disconnected, then destroyVirtualMachine with 
expunge=true.
   
   - Without the PR: job succeeds in about 10 s, VM row goes to Expunging and 
is removed, the NIC address is freed, the root disk is deleted, and the libvirt 
domain keeps running on the host. When the agent reconnects there is only a 
DEBUG line ("Unable to find matched VM in CloudStack DB"), no alert.
   - With the PR: job fails in about 3 s with "Unable to stop VM ... Host with 
specified id is not in the right state: Disconnected", log shows "Not releasing 
the resources of VM ...", VM stays Running in the DB with its NIC and volume. A 
second destroy once the agent is back expunges it cleanly and no domain is left 
behind.
   
   LGTM from a functional 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to