You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2019/07/12 19:08:51 UTC

[vcl] branch develop updated: VCL-1084 - set cache mode for libvirt VMs

This is an automated email from the ASF dual-hosted git repository.

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git


The following commit(s) were added to refs/heads/develop by this push:
     new d9fe39d  VCL-1084 - set cache mode for libvirt VMs
d9fe39d is described below

commit d9fe39d2bec1b1208771b2cad30d64dfc931554b
Author: Josh Thompson <jf...@ncsu.edu>
AuthorDate: Fri Jul 12 15:02:53 2019 -0400

    VCL-1084 - set cache mode for libvirt VMs
    
    libvirt.pm: modified generate_domain_xml: chagned call to is_file_on_local_disk from $self->os->nathost_os->is_file_on_local_disk to $self->vmhost_os->is_file_on_local_disk
---
 managementnode/lib/VCL/Module/Provisioning/libvirt.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/managementnode/lib/VCL/Module/Provisioning/libvirt.pm b/managementnode/lib/VCL/Module/Provisioning/libvirt.pm
index 04cccc6..6f2dea8 100644
--- a/managementnode/lib/VCL/Module/Provisioning/libvirt.pm
+++ b/managementnode/lib/VCL/Module/Provisioning/libvirt.pm
@@ -1776,7 +1776,7 @@ sub generate_domain_xml {
 	my $image_type = $self->data->get_vmhost_datastore_imagetype_name();
 	my $vmhost_vmpath = $self->data->get_vmhost_profile_vmpath();
 	my $add_disk_cache = 0;
-	if (! $self->os->nathost_os->is_file_on_local_disk($vmhost_vmpath)) {
+	if (! $self->vmhost_os->is_file_on_local_disk($vmhost_vmpath)) {
 		# set disk cache to none if vmpath on NFS so live migration will work
 		$add_disk_cache = 1;
 	}