weizhouapache commented on issue #5527: URL: https://github.com/apache/cloudstack/issues/5527#issuecomment-1042013827
> Hi @havengit I have tried some scenarios on KVM with a cluster of 2 hosts: > > Case 1: SUCCESS Deploy VM1 - select host anti-affinity -> VM running on host 1 Deploy VM2 - select host anti-affinity -> VM running on host 2 Deploy VM3 - select host anti-affinity -> ERROR <img alt="Screen Shot 2022-02-16 at 12 09 53" width="392" src="https://user-images.githubusercontent.com/5295080/154294709-fedda2aa-da95-486a-a5a1-be225e88f5e8.png"> > > Case 2: ERROR Deploy 3 VMs without selecting any affinity group -> VMs distributed across the 2 hosts Stop 3 VMs Add VMs to anti affinity group Start 3 VMs at the same time -> 3 VMs running (even starting them one by one) > > Will work on it @nvazquez I suspect, the root cause of this issue is, affinity group is not checked when start a vm with last host id. I have fixed a similar issue with guest os preference in #4338, unfortunately it seems to be broken by #3600 which reverted the change cc @GabrielBrascher . I have created a PR to fix it #6000 we need more logs to confirm it. if so, we need to add check for affinity group in `checkVmProfileAndHost` method. -- 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]
