Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9AFCDD29 for ; Wed, 26 Sep 2012 17:55:07 +0000 (UTC) Received: (qmail 40275 invoked by uid 500); 26 Sep 2012 17:55:07 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 40245 invoked by uid 500); 26 Sep 2012 17:55:07 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 40236 invoked by uid 99); 26 Sep 2012 17:55:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Sep 2012 17:55:07 +0000 Date: Thu, 27 Sep 2012 04:55:07 +1100 (NCT) From: "Jessica Wang (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: <1238757137.129374.1348682107481.JavaMail.jiratomcat@arcas> In-Reply-To: <366512943.74338.1347534307669.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CLOUDSTACK-91) no error message when we upload volume whose size is greater than storage.max.volume.upload.size value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-91?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 3463987#comment-13463987 ]=20 Jessica Wang commented on CLOUDSTACK-91: ---------------------------------------- It=E2=80=99s API error. API should return error like the following, then a dialog box will display = error message "blah ~ blah ~ blah ~". http://localhost:8080/client/api?command=3DuploadVolume&name=3Deee&zoneId= =3Decba26e2-6b56-40ea-aff5-d802d0625b55&format=3DRAW&url=3Dhttp%3A%2F%2F10.= 147.28.6%2Ftemplates%2Fwindows%2Fwindows7.vhd&response=3Djson&sessionkey=3D= %2FERJV1gT83gmThJVdHSobr0UQZ4%3D&_=3D1348681574687 { "uploadvolumeresponse": { "jobid": "d36199c8-85e5-4bca-9760-9471b39ab58c" } } http://localhost:8080/client/api?command=3DqueryAsyncJobResult&jobId=3Dd361= 99c8-85e5-4bca-9760-9471b39ab58c&response=3Djson&sessionkey=3D%2FERJV1gT83g= mThJVdHSobr0UQZ4%3D&_=3D1348681579831 { "queryasyncjobresultresponse": { "accountid": "b217d255-6a08-4e39-b325-c8ef620cc1f8", "userid": "3552de4f-bfa0-45cd-87d6-14cdbefa6af2", "cmd": "com.cloud.api.commands.UploadVolumeCmd", "jobstatus": 2, "jobprocstatus": 0, "jobresultcode": 530, "jobresulttype": "object", "jobresult": { "errorcode": 431, "errortext": "blah ~ blah ~ blah ~" }, "created": "2012-09-26T10:46:14-0700", "jobid": "d36199c8-85e5-4bca-9760-9471b39ab58c" } } =20 > no error message when we upload volume whose size is greater than storag= e.max.volume.upload.size value > -------------------------------------------------------------------------= ------------------------------ > > Key: CLOUDSTACK-91 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-91 > Project: CloudStack > Issue Type: Bug > Components: UI > Affects Versions: pre-4.0.0 > Environment: Git Revision: 03df2fa9dd45c938f72cd1866044b09d1b0cc9= 78 > Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git > Reporter: shweta agarwal > Assignee: Saksham Srivastava > Fix For: pre-4.0.0 > > > set global config storage.max.volume.upload.size =3D1 > Restart management server=20 > Upload a volume whose size>1GB > Actual Result: > Volume goes into uploaderror state without giving error/ reason message= =20 > Expected Result: > A message to user/admin should be displayed stating reason for failure > Additional information : > Notice management server Logs shows following entries : > 2012-09-13 16:17:14,170 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-17:null) submit async job-44, details: AsyncJobVO {id:44, userId: 2, = accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: = com.cloud.api.commands.UploadVolumeCmd, cmdOriginator: null, cmdInfo: {"res= ponse":"json","sessionkey":"D8lyN/UREAYgQ3VEbVwqaEnVauE\u003d","ctxUserId":= "2","name":"http://10.147.28.6/templates/centos5.5hvm.vhd.gz","_":"13475333= 73880","ctxAccountId":"2","format":"VHD","ctxStartEventId":"192","url":"htt= p://10.147.28.6/templates/centos5.5hvm.vhd.gz","zoneId":"3df3d65a-fd70-4a52= -942c-b29c3acf1dba"}, cmdVersion: 0, callbackType: 0, callbackAddress: null= , status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 34505= 2566032, completeMsid: null, lastUpdated: null, lastPolled: null, created: = null} > 2012-09-13 16:17:14,176 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-1:job-44) Executing com.cloud.api.commands.UploadVolumeCmd for job-44 > 2012-09-13 16:17:14,240 DEBUG [agent.transport.Request] (Job-Executor-1:j= ob-44) Seq 3-845807624: Sending { Cmd , MgmtId: 345052566032, via: 3, Ver:= v1, Flags: 100011, [{"storage.DownloadCommand":{"hvm":false,"maxDownloadSi= zeInBytes":1073741824,"id":16,"resourceType":"VOLUME","url":"http://10.147.= 28.6/templates/centos5.5hvm.vhd.gz","format":"VHD","accountId":2,"name":"ht= tp://10.147.28.6/templates/centos5.5hvm.vhd.gz","secUrl":"nfs://10.147.28.7= /export/home/sadhu/xen-sec","wait":0}}] } > 2012-09-13 16:17:14,251 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-1:job-44) Complete async job-44, jobStatus: 1, resultCode: 0, result: = com.cloud.api.response.VolumeResponse@6a3bf5e8 > 2012-09-13 16:17:14,280 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Exec= utor-1:job-44) Done executing com.cloud.api.commands.UploadVolumeCmd for jo= b-44 > 2012-09-13 16:17:14,677 DEBUG [cloud.server.StatsCollector] (StatsCollect= or-2:null) HostStatsCollector is running... > 2012-09-13 16:17:14,686 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-6:null) Seq 1-1440743435: Executing request > 2012-09-13 16:17:14,799 DEBUG [cloud.server.StatsCollector] (StatsCollect= or-1:null) VmStatsCollector is running... > 2012-09-13 16:17:14,814 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-3:null) Seq 1-1440743436: Executing request > 2012-09-13 16:17:14,951 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-6:null) Seq 1-1440743435: Response Received: > 2012-09-13 16:17:14,952 DEBUG [agent.transport.Request] (StatsCollector-2= :null) Seq 1-1440743435: Received: { Ans: , MgmtId: 345052566032, via: 1, = Ver: v1, Flags: 10, { GetHostStatsAnswer } } > 2012-09-13 16:17:15,116 DEBUG [xen.resource.CitrixResourceBase] (DirectAg= ent-3:null) Vm cpu utilization 0.135 > 2012-09-13 16:17:15,116 DEBUG [xen.resource.CitrixResourceBase] (DirectAg= ent-3:null) Vm cpu utilization 0.13999999999999999 > 2012-09-13 16:17:15,116 DEBUG [xen.resource.CitrixResourceBase] (DirectAg= ent-3:null) Vm cpu utilization 0.135 > 2012-09-13 16:17:15,116 DEBUG [xen.resource.CitrixResourceBase] (DirectAg= ent-3:null) Vm cpu utilization 0.12499999999999999 > 2012-09-13 16:17:15,116 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-3:null) Seq 1-1440743436: Response Received: > 2012-09-13 16:17:15,117 DEBUG [agent.transport.Request] (StatsCollector-1= :null) Seq 1-1440743436: Received: { Ans: , MgmtId: 345052566032, via: 1, = Ver: v1, Flags: 10, { GetVmStatsAnswer } } > 2012-09-13 16:17:15,129 DEBUG [cloud.server.StatsCollector] (StatsCollect= or-3:null) StorageCollector is running... > 2012-09-13 16:17:15,185 DEBUG [agent.transport.Request] (StatsCollector-3= :null) Seq 3-845807625: Received: { Ans: , MgmtId: 345052566032, via: 3, V= er: v1, Flags: 10, { GetStorageStatsAnswer } } > 2012-09-13 16:17:15,192 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-7:null) Seq 1-1440743437: Executing request > 2012-09-13 16:17:15,810 DEBUG [agent.manager.DirectAgentAttache] (DirectA= gent-7:null) Seq 1-1440743437: Response Received: > 2012-09-13 16:17:15,810 DEBUG [agent.transport.Request] (StatsCollector-3= :null) Seq 1-1440743437: Received: { Ans: , MgmtId: 345052566032, via: 1, = Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > 2012-09-13 16:17:17,278 DEBUG [agent.transport.Request] (AgentManager-Han= dler-6:null) Seq 3-845807624: Processing: { Ans: , MgmtId: 345052566032, v= ia: 3, Ver: v1, Flags: 10, [{"storage.DownloadAnswer":{"jobId":"fb652cd6-2c= d0-479a-a423-645f5783abf6","downloadPct":0,"errorString":"Download file siz= e is too large","downloadStatus":"DOWNLOAD_ERROR","downloadPath":"/mnt/SecS= torage/14ff52ce-7cce-3300-bfd3-38d6e7244e46/volumes/16/dnld6190746463725337= 402tmp_","templateSize":0,"templatePhySicalSize":0,"result":false,"details"= :"Download file size is too large","wait":0}}] } > 2012-09-13 16:17:19,251 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina= -exec-18:null) Async job-44 completed > This clearly shows MS log has information of size exceeding the allowable= limits. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira