Damans227 opened a new pull request, #14425: URL: https://github.com/apache/cloudstack/pull/14425
Fixes #11984 When a vm fails to start on a XenServer or XCP-ng host, the cleanup removes the vm, its disks and network cards, but leaves its iso storage repositories (`<vm>-ISO` and `<vm>-CONFIGDRIVE-ISO`) behind. The stop that follows finds no vm and skips them, and the next start attempt creates another one with the same name. After a few retries there are several repositories with that name, and from then on even a normal stop cant remove them, because the lookup gives up when it finds more than one. This removes both repositories in the start failure cleanup, the same way a normal stop does. ### Test: Added a unit test that fails a vm start and checks both iso repositories of that vm are removed. -- 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]
