"Internal Server Error" error seen when deploying vApps using an SDRS backed storage policy.
search cancel

"Internal Server Error" error seen when deploying vApps using an SDRS backed storage policy.

book

Article ID: 322127

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • Deploying vApps from a template with a specific storage policy return the following error in the UI: 
[ <TASK_ID>] Internal Server Error - Internal Server Error - com.vmware.vim.binding.impl.vim.storageDrs.StorageMigrationActionImpl cannot be cast to com.vmware.vim.binding.vim.storageDrs.StoragePlacementAction
  • In the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log , the stacktrace contains lines such as: 
  • StorageMigrationActionImpl cannot be cast to com.vmware.vim.binding.vim.storageDrs.StoragePlacementAction
  • com.vmware.vcloud.fabric.storage.placement.sdrs.impl.SdrsPlacementManagerImpl.populateHomeAndDiskRecommendations(SdrsPlacementManagerImpl.java:657)
  • com.vmware.vcloud.fabric.storage.placement.sdrs.impl.SdrsPlacementManagerImpl.processSdrsResults(SdrsPlacementManagerImpl.java:1034)
  • com.vmware.vcloud.fabric.storage.placement.sdrs.impl.SdrsPlacementManagerImpl.selectDatastoreInStoragePod(SdrsPlacementManagerImpl.java:207)


Environment

VMware Cloud Director for Service Provider 9.x

Cause

This issue occurs because vCenter Server is sending StorageMigrationActions along with StoragePlacementActions to vCloud Director as part of the Storage DRS recommendations which will be used during the VM placement process.

Resolution

This is a known issue affecting all vCloud Director for Service Providers 9.x versions.

This issue is resolved in VMware Cloud Director 10.x and above, all of which are available at VMware Downloads




Workaround:
To workaround the issue, disable Storage DRS as per KB 2032910

Additional Information

To be alerted when this article is updated, click Subscribe to Article in the Actions box.