Damans227 opened a new pull request, #14376:
URL: https://github.com/apache/cloudstack/pull/14376
<!--
**Before:** every start of the system vm fails with:
XML error: target 'vda' duplicated for disk sources '<VOL_X86_UUID>'"
and '<VOL_AARCH64_UUID>'"
**After:** the retry starts from a clean vm, so it gets one root disk from
the template it falls back to.
Fixes #14235
When a system vm cant be placed on hosts of the preferred architecture, it
retries with the other architecture's template. The first try had already made
a root disk and network cards for the vm, and nothing removed them. So the vm
ended up with two root disks on the same slot and could not start on any host.
This removes the first try's disks and network cards before the retry, for both
the secondary storage vm and the console proxy.
### Test:
Added a unit test for the new cleanup step. `VirtualMachineManagerImplTest`,
`ConsoleProxyManagerImplTest`, `SecondaryStorageManagerImplTest` and
`SecondaryStorageManagerTest` pass. Not yet checked on a zone with both arm and
x86 hosts.
-->
--
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]