You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "manasaveloori (JIRA)" <ji...@apache.org> on 2013/07/11 12:55:49 UTC
[jira] [Created] (CLOUDSTACK-3473) Copy ISO is failing with
CloudRuntimeException
manasaveloori created CLOUDSTACK-3473:
-----------------------------------------
Summary: Copy ISO is failing with CloudRuntimeException
Key: CLOUDSTACK-3473
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3473
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: ISO
Affects Versions: 4.2.0
Environment: 4.2 stable branch
Reporter: manasaveloori
Priority: Critical
Fix For: 4.2.0
Attachments: management-server.zip
Steps:
1. Create advanced zone 1 with Primary-LocalStorage Secondary-NFS Host-Xen
2. Create advanced zone 1 with Primary-LocalStorage Secondary-NFS Host-VMware
3. Register ISO in zone 1 .
4. Copy the ISO to zone2.
Observation:
Copy ISO command is failing with following exception:
2013-07-11 21:14:27,164 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===START=== 10.252.192.69 -- GET command=copyIso&id=80cbf735-48f9-407b-8406-dbc4a6f1e7bb&sourcezoneid=77ba1e4f-6940-4598-9736-0442e48bb622&destzoneid=47f59def-6265-49dc-bd68-8f7742fcad1d&response=json&sessionkey=keOxX86Woh7SzEYT5URKqFORYbM%3D&_=1373538013773
2013-07-11 21:14:27,205 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-14:null) submit async job-50, details: AsyncJobVO {id:50, userId: 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId: 205, cmd: org.apache.cloudstack.api.command.user.iso.CopyIsoCmd, cmdOriginator: null, cmdInfo: {"response":"json","id":"80cbf735-48f9-407b-8406-dbc4a6f1e7bb","sessionkey":"keOxX86Woh7SzEYT5URKqFORYbM\u003d","destzoneid":"47f59def-6265-49dc-bd68-8f7742fcad1d","cmdEventType":"TEMPLATE.COPY","ctxUserId":"2","httpmethod":"GET","_":"1373538013773","ctxAccountId":"2","sourcezoneid":"77ba1e4f-6940-4598-9736-0442e48bb622","ctxStartEventId":"197"}, cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 6805241462820, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-07-11 21:14:27,209 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) ===END=== 10.252.192.69 -- GET command=copyIso&id=80cbf735-48f9-407b-8406-dbc4a6f1e7bb&sourcezoneid=77ba1e4f-6940-4598-9736-0442e48bb622&destzoneid=47f59def-6265-49dc-bd68-8f7742fcad1d&response=json&sessionkey=keOxX86Woh7SzEYT5URKqFORYbM%3D&_=1373538013773
2013-07-11 21:14:27,213 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-50:job-50) Executing org.apache.cloudstack.api.command.user.iso.CopyIsoCmd for job-50
2013-07-11 21:14:27,284 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-50:job-50) copyAsync inspecting src type TEMPLATE copyAsync inspecting dest type TEMPLATE
2013-07-11 21:14:27,299 DEBUG [agent.transport.Request] (Job-Executor-50:job-50) Seq 6-20447500: Sending { Cmd , MgmtId: 6805241462820, via: 6, Ver: v1, Flags: 100111, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/205/205-2-649b39cb-b33e-3924-86e9-dc3722c4dc62.iso","origUrl":"http://10.147.28.7/ISO/RHEL/rhel-6.0-install-CD.iso","uuid":"80cbf735-48f9-407b-8406-dbc4a6f1e7bb","id":205,"format":"ISO","accountId":2,"checksum":"5a9cee003ea44992762b7dbf1841caf7","hvm":true,"displayText":"rhelxen","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/manasa/secondaryxen","_role":"Image"}},"name":"205-2-649b39cb-b33e-3924-86e9-dc3722c4dc62"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/205","origUrl":"http://10.147.28.7/ISO/RHEL/rhel-6.0-install-CD.iso","uuid":"80cbf735-48f9-407b-8406-dbc4a6f1e7bb","id":205,"format":"ISO","accountId":2,"checksum":"5a9cee003ea44992762b7dbf1841caf7","hvm":true,"displayText":"rhelxen","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.147.28.7/export/home/manasa/secondaryVMw","_role":"Image"}},"name":"205-2-649b39cb-b33e-3924-86e9-dc3722c4dc62"}},"wait":10800}}] }
2013-07-11 21:14:27,633 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:null) SeqA 5-1273: Processing Seq 5-1273: { Cmd , MgmtId: -1, via: 5, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] }
2013-07-11 21:14:27,643 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-3:null) SeqA 5-1273: Sending Seq 5-1273: { Ans: , MgmtId: 6805241462820, via: 5, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-07-11 21:14:27,938 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-104:null) Ping from 1
2013-07-11 21:14:28,932 DEBUG [agent.transport.Request] (AgentManager-Handler-6:null) Seq 6-20447500: Processing: { Ans: , MgmtId: 6805241462820, via: 6, Ver: v1, Flags: 110, [{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server?","wait":0}}] }
2013-07-11 21:14:28,933 DEBUG [agent.transport.Request] (Job-Executor-50:job-50) Seq 6-20447500: Received: { Ans: , MgmtId: 6805241462820, via: 6, Ver: v1, Flags: 110, { UnsupportedAnswer } }
2013-07-11 21:14:28,933 WARN [agent.manager.AgentManagerImpl] (Job-Executor-50:job-50) Unsupported Command: Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server?
2013-07-11 21:14:28,938 DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-6:null) Seq 6-20447500: No more commands found
2013-07-11 21:14:28,942 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-50:job-50) copy template failed for image store secondaryVMw:Unsupported command issued:org.apache.cloudstack.storage.command.CopyCommand. Are you sure you got the right type of server?
2013-07-11 21:14:28,943 DEBUG [db.Transaction.Transaction] (Job-Executor-50:job-50) Rolling back the transaction: Time = 1676 Name = -AsyncJobManagerImpl$1.run:477-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1110-ThreadPoolExecutor$Worker.run:603-Thread.run:679; called by -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptComplete:56-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:131-TemplateManagerImpl.copyTemplate:737-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-CopyTemplateCmd.execute:124-ApiDispatcher.dispatch:155-AsyncJobManagerImpl$1.run:513-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334
2013-07-11 21:14:28,958 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-50:job-50) Unexpected exception while executing org.apache.cloudstack.api.command.user.iso.CopyIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to copy template
at com.cloud.template.TemplateManagerImpl.copyTemplate(TemplateManagerImpl.java:742)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.user.template.CopyTemplateCmd.execute(CopyTemplateCmd.java:124)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:513)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
2013-07-11 21:14:28,959 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-50:job-50) Complete async job-50, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to copy template
2013-07-11 21:14:29,328 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-5:null) SeqA 3-1601: Processing Seq 3-1601: { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] }
2013-07-11 21:14:29,338 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-5:null) SeqA 3-1601: Sending Seq 3-1601: { Ans: , MgmtId: 6805241462820, via: 3, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
Note:Verifying /var/www/html/.htaccess files of both SSVMS, observed that the public IPS are not registered.
Attaching the MS logs.
--
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