"Hub "Resources" violates VM host affinity rule" error when attempting to deploy a vApp from a vApp Template
search cancel

"Hub "Resources" violates VM host affinity rule" error when attempting to deploy a vApp from a vApp Template

book

Article ID: 325596

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • When deploying a vApp from a vApp Template the following error message is observed:
The operation failed because no suitable resource was found. Hub "Resources" violates VM host affinity rule. - PlacementException NO_FEASIBLE_PLACEMENT_SOLUTION
  • vApp Template VM is associated with an Affinity rule to 'Keep VMs on host'.
  • Attempt is made to deploy¬†vApp from vApp template to an alternate Organization VDC associated with different Provider VDC using resources from a different cluster.



Environment

VMware Cloud Director for Service Provider 8.x

Cause

This is expected behaviour in vCloud Director for Service Providers.
When a VM group is assigned to a vApp Template VM vCloud Director will attempt to retain this configuration on any vApp VMs deployed from this template.
In a vCloud Director environment with multiple ESXi host clusters, the VM group that the vApp Template VM is a member of needs to exist on the destination ESXi host cluster backing the Organization VDC where the vApp VM is to be deployed.

Resolution

To resolve this issue remove the vApp Template VM from the VM affinity group.