Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

creatClusterEx fails with "A specified parameter was not correct"

$
0
0

Hi All,

 

I am trying to create a new cluster on a vCenter using the creatCluster method. The commands fails with "A specified parameter was not correct" error message.

I call the method like this:

$parent->CreateClusterEx('name'=>"Cluster2",'spec'=>$clusterSpec);

 

Here is the data::dumper output for the $clusterSpec :

$VAR1 = bless( {
                 'dasConfig' => bless( {
                                         'vmMonitoring' => 'vmMonitoringDisabled',
                                         'hostMonitoring' => 'disabled',
                                         'enabled' => 0
                                       }, 'ClusterDasConfigInfo' )
               }, 'ClusterConfigSpec' );

 

And here the data::Dumper output for the fault error returned by the clusterCreateEX method:

VAR1 = bless( {
                 'detail' => bless( {}, 'InvalidArgument' ),
                 'fault_string' => 'A specified parameter was not correct.
',
                 'name' => 'InvalidArgumentFault'
               }, 'SoapFault' );

 

 

When i removed the "spec" passed to the method (i.e create a cluster with default settings), it passed.

 

Can anyone help understand what i'm doing wrong here?

 

Regards,

Dori


Viewing all articles
Browse latest Browse all 1577

Trending Articles



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