Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Adding failover host to the vSphere HA fails with error “ A specified parameter was not correct “ in vCO workflow

$
0
0

Hi,

 

I am trying to configure vSphere HA through vCenter Orchestrator workflow, I am facing strange error when I try to add failover host in HA. It works for some cluster and hosts but it could not for others, it throws following error

 

error Task 'ReconfigureComputeResource_Task' error: A specified parameter was not correct.

 

Following is my code snippet from my workflow


var clusterConfigSpec = new VcClusterConfigSpecEx();

clusterConfigSpec.dasConfig = new VcClusterDasConfigInfo();

 

clusterConfigSpec.dasConfig.admissionControlPolicy = new VcClusterFailoverHostAdmissionControlPolicy();

var fHosts = [];

for(var i in inFailoverHosts){

var vcSysHost = System.getModule("com.vmware.PTLAB").getHostSystemMatchingName(inFailoverHosts[i]);

                System.log("%%%%%% vcSysHost "+vcSysHost.name);

                fHosts.push(vcSysHost);

}

 

clusterConfigSpec.dasConfig.admissionControlPolicy.failoverHosts = fHosts;

reconfigTask = cluster.reconfigureComputeResource_Task(clusterConfigSpec, true);

 

Please help me to resolve the issue.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>