[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714549#comment-13714549
 ] 

Min Chen commented on CLOUDSTACK-3513:
--------------------------------------

Based on latest BVT 
log(http://jenkins-ccp.citrix.com/job/BVT_Advanced_KVM_602_Multi/177/) on KVM, 
the original hanging failure is gone, the reason why the testcase still failed 
is because an issue of listIso with both id and zoneId passed as the parameter, 
that is the testcase failed at "Check zone ID of the copied ISO" instead of 
previous copyIso execution. From log, copyIso async job is executed 
successfully for this automation run:

2013-07-19 03:57:35,155 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Executing 
org.apache.cloudstack.api.command.user.iso.CopyIsoCmd for job-123 = [ 
83abbfd5-ea00-469c-b5c8-67bb80d40646 ]
2013-07-19 03:57:35,207 DEBUG [storage.image.TemplateDataFactoryImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) template 
204 is not in store:2, type:Image
2013-07-19 03:57:35,207 DEBUG [storage.image.TemplateServiceImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Setting 
source template url to 
https://10-223-122-75.realhostip.com/copy/SecStorage/f075e82d-2e08-36c6-b6ba-25b692666b98/template/tmpl/15/204/204-15-4ed4e5d5-65e0-3eda-8c94-f7780c34dc14.iso
2013-07-19 03:57:35,207 DEBUG [storage.image.TemplateServiceImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Mark 
template_store_ref entry as Creating
2013-07-19 03:57:35,216 DEBUG [storage.image.TemplateServiceImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Invoke 
datastore driver createAsync to create template on destination store
2013-07-19 03:57:35,222 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) 
Downloading template to data store 2
2013-07-19 03:57:35,228 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) 
Performing image store createTemplate async callback
2013-07-19 03:57:35,236 DEBUG [cloudstack.storage.RemoteHostEndPoint] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Sending 
command org.apache.cloudstack.storage.command.DownloadCommand to host: 10
2013-07-19 03:57:35,237 DEBUG [agent.manager.AgentManagerImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) 
AgentManager sending request
2013-07-19 03:57:35,237 DEBUG [agent.manager.AgentAttache] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Request 
seq: 1211695136
2013-07-19 03:57:35,237 DEBUG [agent.manager.AgentAttache] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) waiting 
to send 1211695136
2013-07-19 03:57:35,237 DEBUG [agent.manager.AgentAttache] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) entering 
synchronize block for sending 1211695136
2013-07-19 03:57:35,237 DEBUG [agent.transport.Request] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Seq 
10-1211695136: Sending  { Cmd , MgmtId: 29066118877352, via: 10, Ver: v1, 
Flags: 100011, 
[{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":true,"description":"Test
 ISO 
2","checksum":"b11099d68763f87ee90eab7af1d4dd1e","maxDownloadSizeInBytes":53687091200,"id":204,"resourceType":"TEMPLATE","installPath":"template/tmpl/15/204","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","_role":"Image"}},"url":"http://people.apache.org/~tsp/dummy.iso","format":"ISO","accountId":15,"name":"204-15-4ed4e5d5-65e0-3eda-8c94-f7780c34dc14","secUrl":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","wait":0}}]
 }
2013-07-19 03:57:48,433 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Complete 
async job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ], jobStatus: 1, 
resultCode: 0, result: 
org.apache.cloudstack.api.response.TemplateResponse@26a6e9f8
2013-07-19 03:57:48,442 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-155:job-123 = [ 83abbfd5-ea00-469c-b5c8-67bb80d40646 ]) Done 
executing org.apache.cloudstack.api.command.user.iso.CopyIsoCmd for job-123 = [ 
83abbfd5-ea00-469c-b5c8-67bb80d40646 ]
                
> [Automation] Failed to copy iso and template between zones
> ----------------------------------------------------------
>
>                 Key: CLOUDSTACK-3513
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3513
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Automation, ISO, Template
>    Affects Versions: 4.2.0
>         Environment: 4.2 
> Automation
>            Reporter: Rayees Namathponnan
>            Assignee: Min Chen
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-3513.rar
>
>
> bvt test cases failed 
> 1) integration.smoke.test_templates.TestTemplates.test_06_copy_template
> 2) integration.smoke.test_iso.TestISO.test_06_copy_iso
> Steps to reproduce 
> 1) Register ISO 
> 2) copy ISO to another zone
> 3) iso not getting copied to second zone, 
> i didnt observe any error in ms log, please see the attached log.
> Job 220
> i didnt see any response (job 220) even after 5 minute
> 2013-07-13 02:52:00,982 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-108:job-220 = [ ccea3738-731d-4745-bdd0-5d81bbf126b6 ]) 
> Executing org.apache.cloudstack.api.command.user.iso.Cop
> yIsoCmd for job-220 = [ ccea3738-731d-4745-bdd0-5d81bbf126b6 ]
> 2013-07-13 02:52:00,985 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-9:null) submit async job-220 = [ 
> ccea3738-731d-4745-bdd0-5d81bbf126b6 ], details: AsyncJobVO {id:220, userId: 2
> , accountId: 2, sessionKey: null, instanceType: Template, instanceId: 209, 
> cmd: org.apache.cloudstack.api.command.user.iso.CopyIsoCmd, cmdOriginator: 
> null, cmdInfo: {"id":"b1106f0c-d183-4c75
> -99ae-02993d3a91c7","response":"json","sessionkey":"blwF0jxkh/BXBlAaOW4fzjITizc\u003d","destzoneid":"cfd13d3f-38dd-4ccf-baea-dc5d859dbdea","cmdEventType":"TEMPLATE.COPY","ctxUserId":"2","htt
> pmethod":"GET","_":"1373698373159","ctxAccountId":"2","sourcezoneid":"b76325a6-71dc-486d-98cd-346ea1c3a511","ctxStartEventId":"915"},
>  cmdVersion: 0, callbackType: 0, callbackAddress: null, s
> tatus: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 
> 29066118877352, completeMsid: null, lastUpdated: null, lastPolled: null, 
> created: null}
> 2013-07-13 02:52:00,988 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) 
> ===END===  10.216.51.171 -- GET  
> command=copyIso&id=b1106f0c-d183-4c75-99ae-02993d3a91c7&sourcezoneid=b76325a6-71d
> c-486d-98cd-346ea1c3a511&destzoneid=cfd13d3f-38dd-4ccf-baea-dc5d859dbdea&response=json&sessionkey=blwF0jxkh%2FBXBlAaOW4fzjITizc%3D&_=1373698373159
> 2013-07-13 02:52:01,010 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (Job-Executor-108:job-220 = [ ccea3738-731d-4745-bdd0-5d81bbf126b6 ]) 
> template 209 is not in store:2, type:Image
> 2013-07-13 02:52:01,035 DEBUG [agent.transport.Request] 
> (Job-Executor-108:job-220 = [ ccea3738-731d-4745-bdd0-5d81bbf126b6 ]) Seq 
> 10-544932010: Sending  { Cmd , MgmtId: 29066118877352, via: 10, Ver: v1, 
> Flags: 100011, 
> [{"org.apache.cloudstack.storage.command.DownloadCommand":{"hvm":true,"description":"test","checksum":"b11099d68763f87ee90eab7af1d4dd1e","maxDownloadSizeInBytes":53687091200,"id":209,"resourceType":"TEMPLATE","installPath":"template/tmpl/2/209","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","_role":"Image"}},"url":"http://people.apache.org/~tsp/dummy.iso","format":"ISO","accountId":2,"name":"209-2-f327a840-fc0b-3784-b292-b04cf483c01e","secUrl":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary3","wait":0}}]
>  }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to