Skip to content

host anti-affinity is not working  #7202

@kiranchavala

Description

@kiranchavala
ISSUE TYPE
  • Bug report
COMPONENT NAME
Compute
CLOUDSTACK VERSION
4.18 nightly
4.17.2

CONFIGURATION
OS / ENVIRONMENT

Centos 7 , 1 management , 1 pod , 1 cluster with 2 kvm hypervisor hosts

SUMMARY

host anti-affinity is not working

STEPS TO REPRODUCE

1. Create a affinity group of type "host anti-affinity (Strict)".

2. Deploy 2 vm without any affinity group attached 

3. Check the vm's host ( they can be deployed on the same host)

Note: Make sure the vm's are deployed on 1 single host in the cluster

3. Stop the vm's

4. Change the affinity group  of the vms to  "host anti-affinity (Strict)"

Note: Make sure the affinity group is attached to the vm

5. Start the vm 

6. The Vm 's still remains on the same host in the cluster

Made sure to uncheck the option to start on Last host 
![start](https://user-images.githubusercontent.com/1401014/218453831-ed4070bf-707d-4d39-80fc-36477a7e74a2.png)



EXPECTED RESULTS
The vm's should go to different host in the cluster
ACTUAL RESULTS
The vm's  are not going  to different hosts  in the cluster

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions