Author: acoburn
Date: Fri Aug 22 14:05:14 2014
New Revision: 1619812
URL: http://svn.apache.org/r1619812
Log:
VCL-774
When using vSphere provisioning, the _get_file_info subroutine is unnecessarily
slow (measured in minutes rather than seconds) especially on systems with many
VMs (e.g. vCenter clusters). This is due to an overly comprehensive query
definition, when in fact only VmDiskFileQuery, FileQuery and FolderFileQuery
need to be used.
This commit eliminates the unnecessary query parameters.
Modified:
vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm
Modified:
vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm
URL:
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm?rev=1619812&r1=1619811&r2=1619812&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm
(original)
+++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/vSphere_SDK.pm
Fri Aug 22 14:05:14 2014
@@ -2483,13 +2483,7 @@ sub _get_file_info {
my @file_queries = (
$vm_disk_file_query,
FileQuery->new(),
- FloppyImageFileQuery->new(),
FolderFileQuery->new(),
- IsoImageFileQuery->new(),
- VmConfigFileQuery->new(),
- VmLogFileQuery->new(),
- VmNvramFileQuery->new(),
- VmSnapshotFileQuery->new(),
);
my $hostdb_search_spec = HostDatastoreBrowserSearchSpec->new(