[
https://issues.apache.org/jira/browse/CLOUDSTACK-6254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939367#comment-13939367
]
Paul Angus commented on CLOUDSTACK-6254:
----------------------------------------
Using 4.2.1:
Here is the linked file on the secondary storage VM
root@s-1-VM:/var/www/html/userdata# ls -l
total 1
lrwxrwxrwx 1 root root 113 Mar 14 18:06
4d1381d2-5eb7-4585-953d-7d5470587a70.vhd ->
/mnt/SecStorage/2502671f-280b-3b17-9d3d-146db788fa9f/template/tmpl/2/202/7df99541-a771-4a45-9334-4456d0b5410c.vhd
during the night the flowing runs:
2014-03-14 23:56:04,398 DEBUG [cloud.storage.StorageManagerImpl]
(StorageManager-Scavenger-1:null) Removing download url
https://192-168-1-131.realhostip.com/userdata/4d1381d2-5eb7-4585-953d-7d5470587a70.vhd
for template id 202
2014-03-14 23:56:04,403 DEBUG [agent.transport.Request]
(StorageManager-Scavenger-1:null) Seq 2-429852496: Sending { Cmd , MgmtId:
345049357617, via: 2, Ver: v1, Flags: 100111,
[{"com.cloud.agent.api.storage.DeleteEntityDownloadURLCommand":{"path":"template/tmpl/2/202/7df99541-a771-4a45-9334-4456d0b5410c.vhd","extractUrl":"https://192-168-1-131.realhostip.com/userdata/4d1381d2-5eb7-4585-953d-7d5470587a70.vhd","type":"VOLUME","parentPath":"2502671f-280b-3b17-9d3d-146db788fa9f","accountId":0,"wait":0}}]
}
And the link on the SSVM and the file in secondary storage both are removed
> Template disappears when download cleanedup
> -------------------------------------------
>
> Key: CLOUDSTACK-6254
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6254
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.2.1, 4.3.0
> Reporter: Alex Hitchins
> Assignee: Alex Hitchins
>
> In 4.2.1, the template VHD file gets removed from the template directory
> after it has been downloaded. This issue occurs when the secondary storage
> server is cleaning up the symlink in /var/www/html/.
> Along with removing the symlink, the actual vhd is also removed.
> It looks like maybe the SSVM is seeing the template as a volume and thinks
> that it is removing a hard link.
--
This message was sent by Atlassian JIRA
(v6.2#6252)