From 4c9b717e9aeadaf5327e8c6975d27bf89befc511 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Fri, 17 Feb 2017 00:02:33 +0200 Subject: [PATCH] NSX|V: ensure that the DRS is 'should' and not 'must' The host-group rules may conflicts with a NSX anti-affinity rule. This may occur if there are 3 or less hosts in the cluster. Change-Id: I5592b48e305a34e3609fcdbf3f5559fb0f1f0bea --- vmware_nsx/dvs/dvs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/dvs/dvs.py b/vmware_nsx/dvs/dvs.py index d2e1bd2017..5047313d51 100644 --- a/vmware_nsx/dvs/dvs.py +++ b/vmware_nsx/dvs/dvs.py @@ -528,7 +528,7 @@ class DvsManager(object): policy_class = 'ns0:ClusterVmHostRuleInfo' rules_info = client_factory.create(policy_class) rules_info.enabled = True - rules_info.mandatory = True + rules_info.mandatory = False rules_info.name = name rules_info.vmGroupName = vm_group_name rules_info.affineHostGroupName = host_group_name