Remi Bergsma created CLOUDSTACK-8809: ----------------------------------------
Summary: Secondary Storage does not clean-up after time-out Key: CLOUDSTACK-8809 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8809 Project: CloudStack Issue Type: Bug Security Level: Public (Anyone can view this level - this is the default.) Components: Secondary Storage Affects Versions: 4.4.4, 4.6.0 Environment: NFS sec storage Reporter: Remi Bergsma No cleanup after timeout of download Download completes: /201# ls -alhmnt/SecStorage/90a6bfcc-34cf-38a8-9ed0-2388f7f5dc23/template/tmpl/2/ total 21G drwxrwxrwx 2 root root 4.0K Sep 4 19:58 . drwxrwxrwx 3 root root 4.0K Sep 4 19:22 .. -rw-r--r-- 1 root root 21G Sep 4 19:58 dnld642546716524937645tmp_.tmp -rw-r--r-- 1 root root 0 Sep 4 19:22 template.properties Post processing times out. /var/log/cloud/cloud.out:2015-09-04 19:54:34,673 ERROR [storage.template.DownloadManagerImpl] (pool-1-thread-1:null) Failed post download script: timeout /var/log/cloud/cloud.out:2015-09-04 19:54:37,751 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Seq 3-4183844053827190926: { Ans: , MgmtId: 90520732674658, via: 3, Ver: v1, Flags: 10, [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"b376f8ff-6a01-4b4c-be09-9802fb8548d8","downloadPct":100,"errorString":"Failed post download script: timeout","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/90a6bfcc-34cf-38a8-9ed0-2388f7f5dc23/template/tmpl/2/201/dnld642546716524937645tmp_","installPath":"template/tmpl/2/201/88dc715f-25fa-37d7-899b-69d767e867f5.vhd","templateSize":0,"templatePhySicalSize":0,"checkSum":"6eb85d82cb18032eba0cc8fe8a84a583","result":true,"details":"Failed post download script: timeout","wait":0}}] } Next time it adds files: /201# ls -alhmnt/SecStorage/90a6bfcc-34cf-38a8-9ed0-2388f7f5dc23/template/tmpl/2/ total 21G drwxrwxrwx 2 root root 4.0K Sep 4 20:00 . drwxrwxrwx 3 root root 4.0K Sep 4 19:22 .. -rw-rw-rw- 1 root root 115M Sep 4 20:00 dnld3183717903388064186tmp_ -rw-r--r-- 1 root root 21G Sep 4 19:58 dnld642546716524937645tmp_.tmp -rw-r--r-- 1 root root 0 Sep 4 20:00 template.properties The template will now not work due to the multiple files. We should clean up. -- This message was sent by Atlassian JIRA (v6.3.4#6332)