Author: arkurth Date: Tue Nov 2 19:19:52 2010 New Revision: 1030185 URL: http://svn.apache.org/viewvc?rev=1030185&view=rev Log: VCL-394 Changed file permissions from 0644 to 0755 for the image directory and files stored in the repository. Image retrieval fails if the remote directory doesn't have execute permissions. The command to check if the files/directory exists returns 'permission denied'.
Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm?rev=1030185&r1=1030184&r2=1030185&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm (original) +++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VMware.pm Tue Nov 2 19:19:52 2010 @@ -664,7 +664,7 @@ sub capture { # VMware's methods to copy the files will set the permissions to 0700 # This prevents image retrieval from working when other management nodes attempt to retrieve the image # Attempt to call the VM host OS's set_file_permissions subroutine if the repository is mounted on the VM host - if ($self->is_repository_mounted_on_vmhost() && $self->vmhost_os->can('set_file_permissions') && $self->vmhost_os->set_file_permissions($repository_directory_path, '0644', 1)) { + if ($self->is_repository_mounted_on_vmhost() && $self->vmhost_os->can('set_file_permissions') && $self->vmhost_os->set_file_permissions($repository_directory_path, '0755', 1)) { notify($ERRORS{'OK'}, 0, "set file permissions on the image repository directory mounted on the VM host: $repository_directory_path"); } elsif (-d $repository_directory_path) {