Symptoms
example:
$MyNewClusterConf = New-Object Vmware.Vim.ClusterConfigSpecEx
$MyNewClusterConf.DrsConfig = $MySourceCluster.ConfigurationEx.DrsConfig
example:
createClusterEx($MyNewClusterConf.Name,$MyNewClusterConf)
Exception calling "CreateClusterEx" with "2" argument(s): "The HTTP service located at https://VCENTER_IP/sdk is unavailable. This could be because the service is too busy or because no endpoint
was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later."
2024-07-18T11:10:37.083Z In(05) host-2308 <vpxd> Service is dumping core. Coredump count 4. CurrReq: 0
core.vpxd-worker.xxxx
vSphere 7.x
vSphere 8.x
This is a known issue due to "Scalable Shares" DRS setting introduced in vSphere 7.0.
createClusterEx
before initializing DRS configurationReconfigureComputeResource_Task
Example:
$MyNewClusterConf = New-Object Vmware.Vim.ClusterConfigSpecEx
$MyNewClusterConf.DrsConfig = $MySourceCluster.ConfigurationEx.DrsConfig
ReconfigureComputeResource_Task($MyNewClusterConf ,$false)