PranaliM commented on issue #2244: CLOUDSTACK-10054:Volume download times out in 3600 seconds URL: https://github.com/apache/cloudstack/pull/2244#issuecomment-326184896 **Test LGTM** based on manual testing results for Volume download. Did negative testing for this. Set the value of 'vmware.package.ova.timeout ' to a very low value - 1 sec and verified that the tar command execution failed. The following logs were logged in the SSVM logs: DownloadURLCommand) **Timed out: tar -cf** 71be3dc6833f4b6fa0d092c598d30103.ova 71be3dc6833f4b6fa0d092c598d30103.ovf 71be3dc6833f4b6fa0d092c598d30103-disk0.vmdk . When the default value of 3600 is set, the download of 2GB volume executed successfully. vmware.manager.VmwareStorageManagerImpl] (agentRequest-Handler-8:job-139, cmd: CreateEntityDownloadURLCommand) Executing: tar -cf f843a272433545e18ced51d21a321882.ova f843a272433545e18ced51d21a321882.ovf f843a272433545e18ced51d21a321882-disk0.vmdk 2017-08-30 14:25:35,230 DEBUG [vmware.manager.VmwareStorageManagerImpl] (agentRequest-Handler-8:job-139, cmd: CreateEntityDownloadURLCommand) **Execution is successful.** The above test shows that the value of timeout passed as the global parameter, is honored. Also verified the same for template Download. **PS**: There is an observation on the UI related to the volume download. Even if the tar operation fails on the SSVM due to timeout, on the UI the link to download the volume is still created and displayed to the end-user. This is incorrect behavior. The UI should indicate a failure if the background operation fails. ---------------------------------------------------------------- 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
