SudharmaJain opened a new pull request #2153: CLOUDSTACK-9956 File search on 
the vmware datastore may select wrong file if there are multiple files with 
same name.
URL: https://github.com/apache/cloudstack/pull/2153
 
 
   if there are multiple files with the same name on vmware datastore, search 
operation may select any one file during volume related operations. This 
involves volume attach/detach, volume download, volume snapshot etc.
   
   While using NetApp as the backup solution. This has .snapshot folder on the 
datastore and sometimes files from this folder gets selected during volume 
operations and the operation fails. During wrong selection of file following 
exception can be observed while volume deletion. 
   
   2017-02-23 19:39:05,750 ERROR [c.c.s.r.VmwareStorageProcessor] 
(DirectAgent-304:ctx-a1dbf5d8 ac.local) delete volume failed due to Exception: 
java.lang.RuntimeException
   Message: Cannot delete file [4cbcd46d44c53f5c8244c0aad26a97e1] 
.snapshot/hourly.2017-02-23_1605/r-97-VM/ROOT-97.vmdk
   
    To fix this behavior I have added a global configuration by name 
vmware.search.exclude.folders which can be comma separated list of folder 
paths.  
   
   I have also added a unit test to test the new method.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to