Error: "VM does not comply with compute policy "##########"" for one or more Virtual Machine(s)
search cancel

Error: "VM does not comply with compute policy "##########"" for one or more Virtual Machine(s)

book

Article ID: 408748

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Virtual Machine(s) has the following warning message displayed in the UI:
    VM does not comply with compute policy "<compute-policy>"
  • The virtual machine(s) is/are part of the correct VM groups and satisfies the Placement policy applied.
  • The following message is displayed for the affected virtual machine(s):
    Virtual machine is expected to be part of vm groups [######, ######] as per its policy. It is currently part of only [######] vm groups.
  • The Organization VDCs where the virtual machines reside are backed by a multi-cluster Provider VDC.
  • In the Organization VDCs, the allocation setting for the allocation model is set to Elasticity.

Environment

VMware Cloud Director 10.6.1
VMware Cloud Director 10.6.1.1

Cause

This is a known issue affecting VMware Cloud Director versions 10.6.1 and 10.6.1.1.

The issue is caused due to a failed backend validation of the vmgroups which will in turn cause the message to be displayed in the UI.

Resolution

This issue is resolved in VMware Cloud Director 10.6.1.2 available at Broadcom Downloads.

If you still encounter this issue after upgrading to 10.6.1.2 contact VMware Cloud Director Support and note this Article ID 408748 in the problem description as the resolution will require a database edit. For more information, see Creating and managing Broadcom support cases.

If an immediate upgrade is not possible, use the following API sequence to force a refresh:

  1. Identify the affected VM ID.
  2. Trigger a compliance check: POST https://{vcd-fqdn}/api/vApp/vm-{id}/action/checkComputePolicyCompliance
  3. If non-compliance is confirmed, reapply the policy: POST https://{vcd-fqdn}/api/vApp/vm-{id}/action/reapplyComputePolicy
  4. Reconnect the vCenter Server instance in the VCD Provider UI to force a full metadata sync.