weizhouapache commented on pull request #6002: URL: https://github.com/apache/cloudstack/pull/6002#issuecomment-1044274034
> Manually tested on KVM with 2 hosts: > > Success cases: > > * Create anti-affinity group > * Attempt deploying 3 VMs assigning them to anti-affinity group -> RESULT: first 2 VMs running one on each host, 3rd deployment fails > * Stop the 2 running VMs > * Deploy VM without start, assigning it to the anti-affinity group > * Start 3 VMs in batch -> RESULT: 2 VMs running on different hosts (screenshot) > > <img alt="Screen Shot 2022-02-17 at 22 06 56" width="867" src="https://user-images.githubusercontent.com/5295080/154598302-d09b630f-e866-4103-bf54-c7510af40c39.png"> > > Failing case: > > * 2 VMs running one on each host > * Attemp to start the third VM on a specific host (different form the last_host_id) -> RESULT 3 VMs running (screenshot) > > <img alt="Screen Shot 2022-02-17 at 22 12 07" width="1059" src="https://user-images.githubusercontent.com/5295080/154598480-18ac1a3e-5630-430e-9afd-c644d0d102e3.png"> @nvazquez thanks for testing. the case seems to be expected behaviour. see below https://github.com/apache/cloudstack/blob/9eefc76fc5ef9abf3d74a5cc6c528ca404c707fd/server/src/main/java/com/cloud/deploy/DeploymentPlanningManagerImpl.java#L297-L301 -- 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]
