[jira] [Commented] (CLOUDSTACK-7678) volumes are getting uploaded successfully with wrong url
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221532#comment-14221532 ] ASF subversion and git services commented on CLOUDSTACK-7678: - Commit 9ac93d3e435bf7150b68c92cc1b6b630b197bc56 in cloudstack's branch refs/heads/master from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=9ac93d3 ] CLOUDSTACK-7678:volumes are getting uploaded successfully with wrong url. > volumes are getting uploaded successfully with wrong url > - > > Key: CLOUDSTACK-7678 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7678 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Volumes >Affects Versions: 4.5.0 >Reporter: prashant kumar mishra >Assignee: Min Chen > Fix For: 4.5.0 > > Attachments: Logs_Db.rar > > > steps to reproduce > - > try to upload a volume with wrong url > (ex:http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova) > expected > > upload volume should fail with error message > actual > > volume got uploaded without any error ;volume state=Allocated ,status=empty > LOG > > 2014-10-07 14:06:28,065 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) submit async job-578, details: > AsyncJobVO {id:578, userId: 2, accountId: 2, instanceType: None, instanceId: > null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,067 DEBUG [c.c.a.ApiServlet] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) ===END=== 10.252.193.17 -- GET > command=uploadVolume&response=json&sessionkey=O23XzQurR1dEYRv5vCw7aueeRKo%3D&name=vol&zoneId=41d605d3-1f77-4878-9559-4710a3b1a8f4&format=OVA&url=http%3A%2F%2F10.147.28.7%2Ftemplates%2F4.2%2Fsystemvmtemplate-4.2-vh7.wrong.ova&_=1412670977063 > 2014-10-07 14:06:28,082 INFO [o.a.c.f.j.i.AsyncJobMonitor] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Add job-578 into job monitoring > 2014-10-07 14:06:28,082 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Executing AsyncJobVO {id:578, > userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,250 DEBUG [c.c.a.m.DirectAgentAttache] > (DirectAgentCronJob-436:ctx-fb02db4a) Ping from 1(10.147.40.11) > 2014-10-07 14:06:28,251 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Process host VM state report from ping > process. host: 1 > 2014-10-07 14:06:28,255 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-20-VM > 2014-10-07 14:06:28,258 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-40-VM > 2014-10-07 14:06:28,277 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-42-VM > 2014-10-07 14:06:28,323 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: fa4150b3b46f4386862d37b942a07ca7 > 2014-10-07 14:06:28,401 DEBUG [c.c.v.VirtualMachinePowerStateSyncI
[jira] [Commented] (CLOUDSTACK-7678) volumes are getting uploaded successfully with wrong url
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221564#comment-14221564 ] ASF subversion and git services commented on CLOUDSTACK-7678: - Commit b85183ede7c1a94b8d8fcdec744ac0c1b9b56df9 in cloudstack's branch refs/heads/4.5 from [~minchen07] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=b85183e ] CLOUDSTACK-7678:volumes are getting uploaded successfully with wrong url. > volumes are getting uploaded successfully with wrong url > - > > Key: CLOUDSTACK-7678 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7678 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Volumes >Affects Versions: 4.5.0 >Reporter: prashant kumar mishra >Assignee: Min Chen > Fix For: 4.5.0 > > Attachments: Logs_Db.rar > > > steps to reproduce > - > try to upload a volume with wrong url > (ex:http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova) > expected > > upload volume should fail with error message > actual > > volume got uploaded without any error ;volume state=Allocated ,status=empty > LOG > > 2014-10-07 14:06:28,065 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) submit async job-578, details: > AsyncJobVO {id:578, userId: 2, accountId: 2, instanceType: None, instanceId: > null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,067 DEBUG [c.c.a.ApiServlet] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) ===END=== 10.252.193.17 -- GET > command=uploadVolume&response=json&sessionkey=O23XzQurR1dEYRv5vCw7aueeRKo%3D&name=vol&zoneId=41d605d3-1f77-4878-9559-4710a3b1a8f4&format=OVA&url=http%3A%2F%2F10.147.28.7%2Ftemplates%2F4.2%2Fsystemvmtemplate-4.2-vh7.wrong.ova&_=1412670977063 > 2014-10-07 14:06:28,082 INFO [o.a.c.f.j.i.AsyncJobMonitor] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Add job-578 into job monitoring > 2014-10-07 14:06:28,082 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Executing AsyncJobVO {id:578, > userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,250 DEBUG [c.c.a.m.DirectAgentAttache] > (DirectAgentCronJob-436:ctx-fb02db4a) Ping from 1(10.147.40.11) > 2014-10-07 14:06:28,251 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Process host VM state report from ping > process. host: 1 > 2014-10-07 14:06:28,255 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-20-VM > 2014-10-07 14:06:28,258 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-40-VM > 2014-10-07 14:06:28,277 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-42-VM > 2014-10-07 14:06:28,323 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: fa4150b3b46f4386862d37b942a07ca7 > 2014-10-07 14:06:28,401 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl
[jira] [Commented] (CLOUDSTACK-7678) volumes are getting uploaded successfully with wrong url
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221565#comment-14221565 ] Min Chen commented on CLOUDSTACK-7678: -- Before persisting volume in DB, we also use HTTP HEAD method to check if URL is inaccessible. If so, report error, and no entry is created and no success job is returned. > volumes are getting uploaded successfully with wrong url > - > > Key: CLOUDSTACK-7678 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7678 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Volumes >Affects Versions: 4.5.0 >Reporter: prashant kumar mishra >Assignee: Min Chen > Fix For: 4.5.0 > > Attachments: Logs_Db.rar > > > steps to reproduce > - > try to upload a volume with wrong url > (ex:http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova) > expected > > upload volume should fail with error message > actual > > volume got uploaded without any error ;volume state=Allocated ,status=empty > LOG > > 2014-10-07 14:06:28,065 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) submit async job-578, details: > AsyncJobVO {id:578, userId: 2, accountId: 2, instanceType: None, instanceId: > null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,067 DEBUG [c.c.a.ApiServlet] > (catalina-exec-10:ctx-e194f749 ctx-d4dd2a52) ===END=== 10.252.193.17 -- GET > command=uploadVolume&response=json&sessionkey=O23XzQurR1dEYRv5vCw7aueeRKo%3D&name=vol&zoneId=41d605d3-1f77-4878-9559-4710a3b1a8f4&format=OVA&url=http%3A%2F%2F10.147.28.7%2Ftemplates%2F4.2%2Fsystemvmtemplate-4.2-vh7.wrong.ova&_=1412670977063 > 2014-10-07 14:06:28,082 INFO [o.a.c.f.j.i.AsyncJobMonitor] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Add job-578 into job monitoring > 2014-10-07 14:06:28,082 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] > (API-Job-Executor-47:ctx-af7d36d6 job-578) Executing AsyncJobVO {id:578, > userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: > org.apache.cloudstack.api.command.admin.volume.UploadVolumeCmdByAdmin, > cmdInfo: > {"sessionkey":"O23XzQurR1dEYRv5vCw7aueeRKo\u003d","cmdEventType":"VOLUME.UPLOAD","ctxUserId":"2","httpmethod":"GET","format":"OVA","url":"http://10.147.28.7/templates/4.2/systemvmtemplate-4.2-vh7.wrong.ova","zoneId":"41d605d3-1f77-4878-9559-4710a3b1a8f4","response":"json","ctxDetails":"{\"com.cloud.dc.DataCenter\":\"41d605d3-1f77-4878-9559-4710a3b1a8f4\"}","name":"vol","_":"1412670977063","ctxAccountId":"2","ctxStartEventId":"982"}, > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: > null, initMsid: 7407677735140, completeMsid: null, lastUpdated: null, > lastPolled: null, created: null} > 2014-10-07 14:06:28,250 DEBUG [c.c.a.m.DirectAgentAttache] > (DirectAgentCronJob-436:ctx-fb02db4a) Ping from 1(10.147.40.11) > 2014-10-07 14:06:28,251 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Process host VM state report from ping > process. host: 1 > 2014-10-07 14:06:28,255 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-20-VM > 2014-10-07 14:06:28,258 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-40-VM > 2014-10-07 14:06:28,277 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: i-4-42-VM > 2014-10-07 14:06:28,323 INFO [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Unable to find matched VM in CloudStack > DB. name: fa4150b3b46f4386862d37b942a07ca7 > 2014-10-07 14:06:28,401 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl] > (DirectAgentCronJob-436:ctx-fb02db4a) Process VM state report. host: 1, > number of records in report: 7 > 2014-10-07 1