-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
template downloading fails #2820
Comments
Web server from template download is going has no errors. Downloading just stops. |
After upgrading to 4.11.1 problem still exists |
Issue still present in latest 4.11.2 RC3 for RAW - stream closed message. |
@rhtyd Is there a workaround for this? |
Could this have to do with this hardcored max size defined here: DownloadManagerImpl.java It is set to: TemplateDownloader.java This equates to Hmm, ok seems like this should work at least for us... But it doesnt. Any ideas where to search? |
Can someone confirm that HttpTemplateDownloader is used for this? |
@DaanHoogland I saw you did some work on this. Do you have an idea what we can do about this? |
@DennisKonrad It does not ring a bell in terms of code. It does sound like a sequence of characters that is interpreted somewhere in the stack as end of stream. Does the result match the start of the original file or is it corrupted? HttpTemplateDownloader does the actual downloading on secondary storage. You can add debug statements to it to get more information but keep in mind those statements end up on the ssvm, not on the management server. |
@DaanHoogland For small files it is working. But for files with multiple gb it seems to enter the „copyBytes“ only once. Theres Therefor I suspect the large filesize is the Problem here. Unfortunately it‘s very work intensive for me to Test changes to this piece of code so Im trying to get a strong indication of whats wrong First. Also my java Programming Skills are more like basic Knowledge :/ |
Any news on this? |
@izenk Kinda, Because the code is running within the storage vm it's hard for us to test it. We are currently in the process of setting up a testenvironment to narrow down the cause of this problem. Any help on how to speed this up is much appreciated. |
top of head guess: file server, network and vm are the suspects, @DennisKonrad. as you hav already pproven the isolated code of course. So my first step would be to prove it against the fileserver (testing the network is unfortunately implied on that path). If it fails go for another (type of) fileserver over the same networkpath. As a side track, invewtigating the iptables and logging on the SSVM might shed some light as well. |
I seems to NOT have issues with qcow2 template (~14GB realistic size (du -hs), though image is 100GB). |
This issue solved itself for us without us doing something really. We updated maybe or something and after that it just worked. |
still present in master - just tested...only RAW templates seems affected. (i.e. could download qcow2 template 50GB (du -hs shows 49GB), while after converted same template to RAW format, I again get stream closed error message... |
Still present in master - RAW templates don't work - can tested by downloading the raw image from here: http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina.img |
tested that image in #3993. I'm not sure if that is enough testing though, @izenk @DennisKonrad @andrijapanicsb have an opinion? |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
ADVANCED NETWORKING
OS / ENVIRONMENT
CentOS Linux release 7.4.1708
SUMMARY
When trying to add template from UI, uploading process fails with error: Stream closed
May be important:
template size is 104 GB
template format is RAW
STEPS TO REPRODUCE
UI
Templates -> Add Template -> fill form (downloading from http)
EXPECTED RESULTS
ACTUAL RESULTS
Downloading fails with error: Stream closed
The text was updated successfully, but these errors were encountered: