Tomas - Its not the same, there have been fixes made in ACS master/4.4. But as Min pointed out in current ACS it works fine and deletes only the symlink. To work around the situation in 4.2.1 you can try setting extract.url.expiration.interval (the value is in seconds ) in global settings to a large value (say 14400000 -- 4000 hrs ) so that the download url never expire and do not delete the template. Hope it helps.
Thanks, -Nitin On 23/07/14 10:48 AM, "Min Chen" <min.c...@citrix.com> wrote: >In current ACS master, Template is not deleted from secondary storage when >extractTemplate is called, just its symlink is deleted. > >Thanks >-min > >On 7/23/14 4:15 AM, "Tomasz Zięba" <t.a.zi...@gmail.com> wrote: > >>Hello, >> >>Could someone confirm that download template deletes the vhd file from >>secondary storage. >> >>We are testing on the ACS version 4.2.1 but the code responsible for >>removing is the same in version 4.4 >> >>https://github.com/apache/cloudstack/blob/8b6dc7ce2f0058b9cf29bd9c72e4e0d >>b >>9162fe6e/services/secondary-storage/server/src/org/apache/cloudstack/stor >>a >>ge/template/UploadManagerImpl.java >> >>funkcja: handleDeleteEntityDownloadURLCommand >> >> >>-- >>Regards, >>Tomasz Zięba >>Twitter: @TZieba >>LinkedIn: pl.linkedin.com/pub/tomasz-zięba-ph-d/3b/7a8/ab6/ >><http://pl.linkedin.com/pub/tomasz-zi%C4%99ba-ph-d/3b/7a8/ab6/> >