Skip to content

DRS doesn't take into account affinity rules #12473

@bhouse-nexthop

Description

@bhouse-nexthop

problem

It appears DRS doesn't take into account affinity rules when rebalancing. I've got 5 VMs in a non-strict host anti-affinity group (I do non-strict since I have 5 total hosts, and if I take one down for maintenance its ok to co-locate during that duration).

I manually put one VM on each host, then run DRS and I can see it tries to move those VMs in the anti-affinity group so they're co-located on the same host even though there are other eligible VMs that can be moved to rebalance instead.

versions

4.22.0.0 on Ubuntu 24.04 with KVM

The steps to reproduce the bug

Steps in problem description

What to do about it?

DRS should be affinity-aware

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions