You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ciobanu Cristian <cr...@istream.today> on 2017/10/30 09:23:18 UTC
File upload task failed to complete due to: Error writing request body to server
Hello,
Any idea how to fix this issue? I get this issue only when I try to
deploy a VM on this particular host ( logs ) :
Logs exported from SSVM:
2017-10-30 08:36:56,466 DEBUG [cloud.agent.Agent] (Agent-Handler-1:null)
Received response: Seq 94-43: { Ans: , MgmtId: 52230178461, via: 94, Ver:
v1, Flags: 100010,
[{"com.cloud.agent.api.PingAnswer":{"_command":{"hostType":"Storage",
"hostId":94,"wait":0},"result":true,"wait":0}}] }
2017-10-30 08:37:49,056 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-5:null) Processing command:
com.cloud.agent.api.GetStorageStatsCommand
2017-10-30 08:37:49,056 INFO [storage.resource.NfsSecondaryStorageResource]
(agentRequest-Handler-5:null) Determined host 172.1.2.4 corresponds to IP
172.1.2.4
2017-10-30 08:37:55,139 ERROR [vmware.mo.HypervisorHostHelper]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) File upload
task failed to complete due to: Error writing request body to server
2017-10-30 08:37:55,140 INFO [vmware.mo.HttpNfcLeaseMO]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) close
ProgressReporter, interrupt reporter runner to let it quit
2017-10-30 08:37:55,140 ERROR [vmware.mo.HypervisorHostHelper]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) Aborting the
lease on b263251970913d2ab563ae8d61c4f67f after import operation failed.
2017-10-30 08:37:55,141 INFO [vmware.mo.HttpNfcLeaseMO] (Thread-6:null)
ProgressReporter is interrupted, quiting
2017-10-30 08:37:55,142 INFO [vmware.mo.HttpNfcLeaseMO] (Thread-6:null)
ProgressReporter stopped
2017-10-30 08:37:55,306 INFO [vmware.util.VmwareHelper]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) [ignored]failed
toi get message for exception: File upload task failed to complete due to:
Error writing request body to server
2017-10-30 08:37:55,306 ERROR [storage.resource.VmwareStorageProcessor]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) Unable to copy
template to primary storage due to exception:Exception: java.lang.Exception
Message: File upload task failed to complete due to: Error writing request
body to server
java.lang.Exception: File upload task failed to complete due to: Error
writing request body to server
at
com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.importVmFromOVF(Hypervis
orHostHelper.java:1561)
at
com.cloud.hypervisor.vmware.mo.HostMO.importVmFromOVF(HostMO.java:749)
at
com.cloud.storage.resource.VmwareStorageProcessor.copyTemplateFromSecondaryT
oPrimary(VmwareStorageProcessor.java:207)
at
com.cloud.storage.resource.VmwareStorageProcessor.copyTemplateToPrimaryStora
ge(VmwareStorageProcessor.java:349)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(Storag
eSubsystemCommandHandlerBase.java:85)
at
com.cloud.storage.resource.VmwareStorageSubsystemCommandHandler.execute(Vmwa
reStorageSubsystemCommandHandler.java:187)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageC
ommands(StorageSubsystemCommandHandlerBase.java:55)
at
com.cloud.storage.resource.VmwareSecondaryStorageResourceHandler.executeRequ
est(VmwareSecondaryStorageResourceHandler.java:115)
at
com.cloud.storage.resource.PremiumSecondaryStorageResource.executeRequest(Pr
emiumSecondaryStorageResource.java:57)
at com.cloud.agent.Agent.processRequest(Agent.java:525)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:833)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11
45)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:6
15)
at java.lang.Thread.run(Thread.java:745)
2017-10-30 08:37:55,307 DEBUG
[storage.resource.VmwareSecondaryStorageResourceHandler]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) Command
execution answer: {"result":false,"details":"Unable to copy template to
primary storage due to exception:Exception: java.lang.Exception\nMessage:
File upload task failed to complete due to: Error writing request body to
server\n","wait":0}
2017-10-30 08:37:55,308 DEBUG
[storage.resource.VmwareSecondaryStorageResourceHandler]
(agentRequest-Handler-4:job-5229/job-5231, cmd: CopyCommand) Done executing
{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"templ
ate/tmpl/2/260/9ac00ab4-4666-32e0-8656-6c3de1b1faa6.ova","origUrl":"http://1
49.202.xx.xx/userdata/963e8e86-941a-44b7-8605-ed80104cc8b4.ova","uuid":"a3e6
e56d-6466-4f99-b5db-b1045568c3b6","id":260,"format":"OVA","accountId":2,"che
cksum
":"d24d767ebe0a526e0edfbef726764a8a","hvm":true,"displayText":"CentOS-6.7-Mi
nimalv1","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://172
.1.2.4/secondaryE01","_role":"Image"}},"name":"260-2-2134937f-a3b3-34ee-8a63
-239f6c5
6f3c6","hypervisorType":"VMware"}},"destTO":{"org.apache.cloudstack.storage.
to.TemplateObjectTO":{"origUrl":"http://149.202.xx.xx/userdata/963e8e86-941a
-44b7-8605-ed80104cc8b4.ova","uuid":"a3e6e56d-6466-4f99-b5db-b1045568c3b6","
id":260,
"format":"OVA","accountId":2,"checksum":"d24d767ebe0a526e0edfbef726764a8a","
hvm":true,"displayText":"CentOS-6.7-Minimalv1","imageDataStore":{"org.apache
.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"30a334bb-2799-43c7-a8f9-
a3dabbb6 d9d5","id":5,"poolType":"VMFS","host":"VMFS datastore:
datastore-1348","path":"datastore-1348","port":0,"url":"VMFS://VMFS
datastore:
datastore-1348/datastore-1348/?ROLE=Primary&STOREUUID=30a334bb-2799-43c7-a8f
9-a3dabbb6d9d5"}},"name":"
260-2-2134937f-a3b3-34ee-8a63-239f6c56f3c6","hypervisorType":"VMware"}},"exe
cuteInSequence":true,"options":{},"options2":{},"wait":10800}
2017-10-30 08:37:55,308 DEBUG [cloud.agent.Agent]
(agentRequest-Handler-4:null) Seq 94-7960112341377351694: { Ans: , MgmtId:
52230178461, via: 94, Ver: v1, Flags: 110,
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":f
alse,"details":"Unable to copy template to primary storage due to
exception:Exception: java.lang.Exception\nMessage: File upload task failed
to complete due to: Error writing request body to server\n","wait":0}}] }
2017-10-30 08:37:56,221 DEBUG [cloud.agent.Agent] (UgentTask-5:null) Sending
ping: Seq 94-44: { Cmd , MgmtId: -1, via: 94, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingStorageCommand":{"changes":{},"hostType":"Storage
","hostId":94,"w ait":0}}] }
Thank you,
Cristian
RE: File upload task failed to complete due to: Error writing request body to server
Posted by Ciobanu Cristian <cr...@istream.today>.
Hi Boris,
After I have uploaded a new template I was able to use the previous one, but again I have the same issue with the last added..
Thanks
Cristian
-----Original Message-----
From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
Sent: Tuesday, October 31, 2017 9:21 AM
To: users@cloudstack.apache.org
Subject: Re: File upload task failed to complete due to: Error writing request body to server
Hi Cristian,
Have you tried reinstalling the template and recreating SSVM?
boris.stoyanov@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue
> On Oct 30, 2017, at 2:01 PM, Ciobanu Cristian <cr...@istream.today> wrote:
>
> Hi Boris,
>
> I use local storage and the template is successfully installed, I'm able to deploy to other host (same cluster ) using this template, the only issue is that it may take longer, the copy progress take longer, same issue for second host also ( not working one ) but there I end with this :
> vSphere event:
> ===============================
> Deploy OVF template
> b263251970913d2ab563ae8d61c4f67f
> The task was canceled by
> a user.
> VSPHERE.LOCAL\Administrator
> VCENTER001
> ===============================
>
> for example, right now is stuck on 2% (vSphere ) will end with canceled by user...
> ===============================
> Deploy OVF template
> b263251970913d2ab563ae8d61c4f67f
> 2%
> VSPHERE.LOCAL\Administrator
> VCENTER001
> 10/30/2017 1:57:34 PM
> ===============================
>
> I'm able to deploy VMs only from template which were used before this issue...
>
> Thank you,
> Cristian
>
> -----Original Message-----
> From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
> Sent: Monday, October 30, 2017 11:31 AM
> To: users@cloudstack.apache.org
> Subject: Re: File upload task failed to complete due to: Error writing
> request body to server
>
> Hi Cristian,
> are you using local storage? Can you confirm template is properly downloaded and deployable on other hosts?
> —Boris Stoyanov
>
> boris.stoyanov@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue
>
>
>
> On Oct 30, 2017, at 11:23 AM, Ciobanu Cristian <cr...@istream.today>> wrote:
>
> Error
> writing request body to server
>
>
Re: File upload task failed to complete due to: Error
writing request body to server
Posted by Boris Stoyanov <bo...@shapeblue.com>.
Hi Cristian,
Have you tried reinstalling the template and recreating SSVM?
boris.stoyanov@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue
> On Oct 30, 2017, at 2:01 PM, Ciobanu Cristian <cr...@istream.today> wrote:
>
> Hi Boris,
>
> I use local storage and the template is successfully installed, I'm able to deploy to other host (same cluster ) using this template, the only issue is that it may take longer, the copy progress take longer, same issue for second host also ( not working one ) but there I end with this :
> vSphere event:
> ===============================
> Deploy OVF template
> b263251970913d2ab563ae8d61c4f67f
> The task was canceled by
> a user.
> VSPHERE.LOCAL\Administrator
> VCENTER001
> ===============================
>
> for example, right now is stuck on 2% (vSphere ) will end with canceled by user...
> ===============================
> Deploy OVF template
> b263251970913d2ab563ae8d61c4f67f
> 2%
> VSPHERE.LOCAL\Administrator
> VCENTER001
> 10/30/2017 1:57:34 PM
> ===============================
>
> I'm able to deploy VMs only from template which were used before this issue...
>
> Thank you,
> Cristian
>
> -----Original Message-----
> From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
> Sent: Monday, October 30, 2017 11:31 AM
> To: users@cloudstack.apache.org
> Subject: Re: File upload task failed to complete due to: Error writing request body to server
>
> Hi Cristian,
> are you using local storage? Can you confirm template is properly downloaded and deployable on other hosts?
> —Boris Stoyanov
>
> boris.stoyanov@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue
>
>
>
> On Oct 30, 2017, at 11:23 AM, Ciobanu Cristian <cr...@istream.today>> wrote:
>
> Error
> writing request body to server
>
>
RE: File upload task failed to complete due to: Error writing request body to server
Posted by Ciobanu Cristian <cr...@istream.today>.
Hi Boris,
I use local storage and the template is successfully installed, I'm able to deploy to other host (same cluster ) using this template, the only issue is that it may take longer, the copy progress take longer, same issue for second host also ( not working one ) but there I end with this :
vSphere event:
===============================
Deploy OVF template
b263251970913d2ab563ae8d61c4f67f
The task was canceled by
a user.
VSPHERE.LOCAL\Administrator
VCENTER001
===============================
for example, right now is stuck on 2% (vSphere ) will end with canceled by user...
===============================
Deploy OVF template
b263251970913d2ab563ae8d61c4f67f
2%
VSPHERE.LOCAL\Administrator
VCENTER001
10/30/2017 1:57:34 PM
===============================
I'm able to deploy VMs only from template which were used before this issue...
Thank you,
Cristian
-----Original Message-----
From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
Sent: Monday, October 30, 2017 11:31 AM
To: users@cloudstack.apache.org
Subject: Re: File upload task failed to complete due to: Error writing request body to server
Hi Cristian,
are you using local storage? Can you confirm template is properly downloaded and deployable on other hosts?
—Boris Stoyanov
boris.stoyanov@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue
On Oct 30, 2017, at 11:23 AM, Ciobanu Cristian <cr...@istream.today>> wrote:
Error
writing request body to server
Re: File upload task failed to complete due to: Error
writing request body to server
Posted by Boris Stoyanov <bo...@shapeblue.com>.
Hi Cristian,
are you using local storage? Can you confirm template is properly downloaded and deployable on other hosts?
—Boris Stoyanov
boris.stoyanov@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue
On Oct 30, 2017, at 11:23 AM, Ciobanu Cristian <cr...@istream.today>> wrote:
Error
writing request body to server