Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232894

Did I find an API bug? : Adding multiple disks soap error

$
0
0

I am able to add the disks linearly like below:

my $vmSpec =VirtualMachineConfigSpec->new(deviceChange =>[$devSpecs[0]]); $vmView->ReconfigVM(spec => $vmSpec);my $vmSpec =VirtualMachineConfigSpec->new(deviceChange =>[$devSpecs[1]]); $vmView->ReconfigVM(spec => $vmSpec);my $vmSpec =VirtualMachineConfigSpec->new(deviceChange =>[$devSpecs[2]]); $vmView->ReconfigVM(spec => $vmSpec);

However, when I attempt to add all the disks at once I get a SOAP fault

my $vmSpec =VirtualMachineConfigSpec->new(deviceChange => \@devSpecs); $vmView->ReconfigVM(spec => $vmSpec);

The Error:

SOAP Fault:-----------Fault string:Cannot complete the operation because the file or folder /vmfs/volumes/ba5e81fe-201a6c4e/paul-vm1/paul-vm1_0_3.vmdk already exists Fault detail:FileAlreadyExists

Is there anyone out there that knows what is going on?


Viewing all articles
Browse latest Browse all 232894

Trending Articles