Cloud Director Placement Failing when changing Storage Policy for VM Due to Affinity Requirements
search cancel

Cloud Director Placement Failing when changing Storage Policy for VM Due to Affinity Requirements

book

Article ID: 433774

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

When updating VM Storage Policy all Storage is being rejected except for the current location of the VM listing Affinity Requirements.

Filename: /opt/vmware/vcloud-director/logs/vcloud-container-debug.log 

####-##-## ##:##:##,### | DEBUG    | task-service-activity-pool-### | AffinityDatastoreFilter        | Message[INFO]: Cannot use datastore cluster [vcId=########-####-####-####-############, moref=group-p#####] for subject [type:VIRTUAL_MACHINE, URI:########-####-####-####-############ because of affinity requirements. | requestId=########-####-####-####-############,request=POST https://[Cloud Director Site]/api/vApp/vm-d########-####-####-####-############/action/reconfigureVm,requestTime=#############,remoteAddress=###.###.###.###:56146,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 40.0.0-alpha vcd=########-####-####-####-############,task=########-####-####-####-############ activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:########-####-####-####-############) 

Environment

Cloud Director 10.6

Cause

Disabled Methods exist on VM in vCenter:

MigrateVM_Task

RelocateVM_Task

Resolution

Remove Disabled methods (MigrateVM_Task and RelocateVM_Task) from VM.

Please refer to the following documentation to remove Disabled Methods from VM in vCenter - 'Delete from disk' and 'remove from Inventory' options grayed out for Virtual Machines on vSphere Client