You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/02/21 05:00:45 UTC

[GitHub] [cloudstack] nxsbi commented on issue #3792: Register iso template get "Stream closed" error. Can not register self build iso template.

nxsbi commented on issue #3792:
URL: https://github.com/apache/cloudstack/issues/3792#issuecomment-782797494


   I am running into this exact issue on 4.15 - 
   
   Stream Closed when trying to add template via internal URL. Template size is 22 GB. I am able to use wget to get the file on SSVM as well management server. 
   The download fails within 1-2 seconds when trying to register template. 
   
   
   INSIDE the SSVM log:
   ```
   2021-02-21 04:45:16,799 INFO  [storage.template.HttpTemplateDownloader] (agentRequest-Handler-3:null) No credentials configured for host=192.168.100.101:8080
   2021-02-21 04:45:16,824 INFO  [storage.template.HttpTemplateDownloader] (pool-1-thread-12:null) Starting download from http://192.168.100.101:8080/templates/win2012sql2014_template.vhd to /mnt/SecStorage/919be86c-d36a-3372-aa6b-f874eb9686a1/template/tmpl/2/236/dnld1015536663169530036tmp_ remoteSize=22859950592 , max size=64424509440
   2021-02-21 04:45:17,294 INFO  [storage.template.DownloadManagerImpl] (pool-1-thread-12:null) Download Completion for jobId: 8b0861d8-0245-4d9e-a7c0-40c0e7367546, status=UNRECOVERABLE_ERROR
   2021-02-21 04:45:17,296 INFO  [storage.template.DownloadManagerImpl] (pool-1-thread-12:null) local: /mnt/SecStorage/919be86c-d36a-3372-aa6b-f874eb9686a1/template/tmpl/2/236/dnld1015536663169530036tmp_, bytes=1179639, error=Stream closed, pct=0
   ```
   
   In the Cloudstack management server log:
   ```
   
   2021-02-20 22:45:15,551 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-391:ctx-6894d94b) (logid:07e7b886) Seq 11-681450918616499348: Executing request
   2021-02-20 22:45:16,532 DEBUG [c.c.a.ApiServlet] (qtp769798433-3726:ctx-a4c4994b) (logid:bbba5f1c) ===START===  192.168.100.101 -- GET  url=http:%2F%2F192.168.100.101:8080%2Ftemplates%2Fwin2012sql2014_template.vhd&name=SQL+Server+2014+on+Win+2012+R2&displaytext=SQL+Server+2014+SP3+on+Win+2012+R2&zoneids=-1&hypervisor=XenServer&format=VHD&ostypeid=7849c78d-ae38-11e8-b45b-d6ba25f3c672&requireshvm=true&details[0].hypervisortoolsversion=true&command=registerTemplate&response=json
   2021-02-20 22:45:16,532 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-391:ctx-6894d94b) (logid:b07c54d8) Seq 11-681450918616499348: Response Received:
   2021-02-20 22:45:16,533 DEBUG [c.c.a.t.Request] (StatsCollector-5:ctx-25552059) (logid:b07c54d8) Seq 11-681450918616499348: Received:  { Ans: , MgmtId: 196482732657985, via: 11(virtsrvr7), Ver: v1, Flags: 10, { GetGPUStatsAnswer } }
   2021-02-20 22:45:16,547 DEBUG [c.c.a.ApiServer] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) CIDRs from which account 'Acct[admin]' is allowed to perform API calls: 0.0.0.0/0,::/0
   2021-02-20 22:45:16,627 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) template 236 is not in store:1, type:Image
   2021-02-20 22:45:16,642 DEBUG [o.a.c.s.i.TemplateDataFactoryImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) template 236 is already in store:1, type:Image
   2021-02-20 22:45:16,650 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Downloading template to data store 1
   2021-02-20 22:45:16,667 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Performing image store createTemplate async callback
   2021-02-20 22:45:16,670 INFO  [o.a.c.s.i.BaseImageStoreDriverImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Updating store ref entry for template SQL Server 2014 on Win 2012 R2
   2021-02-20 22:45:16,677 DEBUG [c.c.h.o.r.Ovm3HypervisorGuru] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) getCommandHostDelegation: class org.apache.cloudstack.storage.command.DownloadCommand
   2021-02-20 22:45:16,679 DEBUG [c.c.h.XenServerGuru] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) We are returning the default host to execute commands because the command is not of Copy type.
   2021-02-20 22:45:16,679 DEBUG [o.a.c.s.RemoteHostEndPoint] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Sending command org.apache.cloudstack.storage.command.DownloadCommand to host: 13
   2021-02-20 22:45:16,683 DEBUG [c.c.a.t.Request] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Seq 13-8825929369739329675: Sending  { Cmd , MgmtId: 196482732657985, via: 13(s-107-VM), Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":"true","description":"SQL Server 2014 SP3 on Win 2012 R2","maxDownloadSizeInBytes":"(60.00 GB) 64424509440","id":"236","resourceType":"TEMPLATE","installPath":"template/tmpl/2/236","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://192.168.100.23/mnt/vmdata01/prod/secondary","_role":"Image"}},"url":"http://192.168.100.101:8080/templates/win2012sql2014_template.vhd","format":"VHD","accountId":"2","name":"236-2-44539f37-7435-3c8d-9187-9519222d6d3b","secUrl":"nfs://192.168.100.23/mnt/vmdata01/prod/secondary","wait":"0"}}] }
   2021-02-20 22:45:16,683 DEBUG [c.c.r.ResourceLimitManagerImpl] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) Updating resource Type = template count for Account = 2 Operation = increasing Amount = 1
   2021-02-20 22:45:16,712 DEBUG [c.c.a.ApiServlet] (qtp769798433-3726:ctx-a4c4994b ctx-53eab4f6) (logid:bbba5f1c) ===END===  192.168.100.101 -- GET  url=http:%2F%2F192.168.100.101:8080%2Ftemplates%2Fwin2012sql2014_template.vhd&name=SQL+Server+2014+on+Win+2012+R2&displaytext=SQL+Server+2014+SP3+on+Win+2012+R2&zoneids=-1&hypervisor=XenServer&format=VHD&ostypeid=7849c78d-ae38-11e8-b45b-d6ba25f3c672&requireshvm=true&details[0].hypervisortoolsversion=true&command=registerTemplate&response=json
   2021-02-20 22:45:17,275 DEBUG [c.c.a.ApiServlet] (qtp769798433-4814:ctx-9d30eacb) (logid:795892ae) ===START===  192.168.100.101 -- GET  listall=true&templatefilter=all&showunique=true&page=1&pagesize=20&command=listTemplates&response=json
   2021-02-20 22:45:17,287 DEBUG [c.c.a.ApiServer] (qtp769798433-4814:ctx-9d30eacb ctx-a256010e) (logid:795892ae) CIDRs from which account 'Acct[admin]' is allowed to perform API calls: 0.0.0.0/0,::/0
   2021-02-20 22:45:17,378 DEBUG [c.c.a.ApiServlet] (qtp769798433-4814:ctx-9d30eacb ctx-a256010e) (logid:795892ae) ===END===  192.168.100.101 -- GET  listall=true&templatefilter=all&showunique=true&page=1&pagesize=20&command=listTemplates&response=json
   2021-02-20 22:45:19,844 DEBUG [c.c.a.t.Request] (AgentManager-Handler-14:null) (logid:) Seq 13-8825929369739329675: Processing:  { Ans: , MgmtId: 196482732657985, via: 13, Ver: v1, Flags: 10, [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"8b0861d8-0245-4d9e-a7c0-40c0e7367546","downloadPct":"0","errorString":"Stream closed","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecStorage/919be86c-d36a-3372-aa6b-f874eb9686a1/template/tmpl/2/236/dnld1015536663169530036tmp_","installPath":"template/tmpl/2/236","templateSize":"(0 bytes) 0","templatePhySicalSize":"(0 bytes) 0","result":"true","details":"Stream closed","wait":"0"}}] }
   2021-02-20 22:45:19,845 DEBUG [o.a.c.s.i.BaseImageStoreDriverImpl] (RemoteHostEndPoint-4:ctx-a9402e56) (logid:1ff8d677) Performing image store createTemplate async callback
   2021-02-20 22:45:19,851 INFO  [o.a.c.s.i.BaseImageStoreDriverImpl] (RemoteHostEndPoint-4:ctx-a9402e56) (logid:1ff8d677) Updating store ref entry for template SQL Server 2014 on Win 2012 R2
   2021-02-20 22:45:19,868 WARN  [c.c.a.AlertManagerImpl] (RemoteHostEndPoint-4:ctx-a9402e56) (logid:1ff8d677) AlertType:: 28 | dataCenterId:: 1 | podId:: null | clusterId:: null | message:: Failed to register template: b25729b9-d0b3-4fe5-aee9-e0ec83d5191a with error: Stream closed
   2021-02-20 22:45:19,955 ERROR [o.a.c.s.i.BaseImageStoreDriverImpl] (RemoteHostEndPoint-4:ctx-a9402e56) (logid:1ff8d677) Failed to register template: b25729b9-d0b3-4fe5-aee9-e0ec83d5191a with error: Stream closed
   
   
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org