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

Getting 500 EOF while deploying a vm using perl

$
0
0

I'm new to perl. I just went through some sample scripts that came with the perl sdk and then I started writing the scripts(so the question Im asking might have a silly answer) I'm using Perl SDK 5.0.0-422456. And Im using  vCenter 5.0.0

 

The problem I'm facing is when I'm trying to import a VM. Since the HttpNfcLease object has to be regularly updated to prevent it from expiring , I'm using a chunked uploading of the .vmdk files. the problem is if my chunk size is below 20bytes , the script runs and the VM is imported just fine. But if the chunk size is above 20 bytes , the script just stops with the error 500 EOF. Using the 20bytes chunk size is not feasible because it was taking days or even weeks to import a VM of size 20GB+

 

I'm attaching the script I wrote and the output I'm getting  when I run the script with a size of 1024 bytes.

 

When the chunked uploading was not working , I tried multithreading(the new thread updates the HttpNfcLeaseProgress) and forking(parent process keeps updating the progress while waiting for the child process to end and the child process does the uploading) but both of it didnt work. the script just crashed when the multithreading or the forking began. I think its a problem of the SDK.

 

btw im using ActivPerl 5.8.8

 

If no one can solve this issue can someone provide me with some pointers as to how to do this task(or maybe even a completed script)?


Viewing all articles
Browse latest Browse all 1577

Trending Articles



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