[
https://issues.apache.org/jira/browse/CLOUDSTACK-9956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171418#comment-16171418
]
ASF subversion and git services commented on CLOUDSTACK-9956:
-------------------------------------------------------------
Commit 3f69c83f96f927f4a84b2d4b29bce168caf0530d in cloudstack's branch
refs/heads/master from [~sudharmaj]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=3f69c83 ]
CLOUDSTACK-9956: File search on the vmware datastore may select wrong file if
there are multiple files with same name (#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. Because of 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.
> File search on the vmware datastore may select wrong file if there are
> multiple files with same name
> ----------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9956
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9956
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: sudharma jain
>
> 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 as during volume
> operations and the operation fails.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)