cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yitao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-5893) Issue in creating template from volume in vmware hypervisor
Date Fri, 17 Jan 2014 12:51:19 GMT
Yitao created CLOUDSTACK-5893:
---------------------------------

             Summary: Issue in creating template from volume in vmware hypervisor
                 Key: CLOUDSTACK-5893
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5893
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Hypervisor Controller
    Affects Versions: 4.1.0
         Environment: One zone with one pod and two clusters, one for xenserver and one for
vmware. In xen cluster have two xenservers 6.1.0 , and one EXI 5.0.0.Each hypervisor have
it's fc-san shared storage, and ssvm, cpvm all runs in xenserver.
            Reporter: Yitao
            Priority: Critical
             Fix For: 4.1.0


in production environment, i set up one zone with one pod and two clusters, one for xenserver
and one for vmware.
In xen cluster have two xenservers 6.1.0 , and one EXI 5.0.0.Each hypervisor have it's fc-san
shared storage, and ssvm, cpvm all runs in xenserver.
All works well except when creating template from vmware instance , but it's ok on xenserver.
What  weird is if i have two pods, i can make template from vmware instance.Below are logs.

DEBUG [cloud.api.ApiServlet] (catalina-exec-24:) ===START===  10.1.21.110 -- GET  command=createTemplate&response=json&sessionkey=PNVhAvI3UFBE8S9IvNGiTkVwWIE%3D&volumeId=83a10514-ee39-4311-8737-08c2e4067b61&name=vmconverttmpl&displayText=vmconverttmpl&osTypeId=6716dbce-79a1-11e3-b1ad-0758a53412c0&isPublic=true&passwordEnabled=false&isfeatured=true&_=1389868635523

DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-24:) submit async job-527, details:
AsyncJobVO {id:527, userId: 2, accountId: 2, sessionKey: null, instanceType: Template, instanceId:
233, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd, cmdOriginator:
null, cmdInfo: {"sessionkey":"PNVhAvI3UFBE8S9IvNGiTkVwWIE\u003d","volumeId":"83a10514-ee39-4311-8737-08c2e4067b61","ctxUserId":"2","osTypeId":"6716dbce-79a1-11e3-b1ad-0758a53412c0","isPublic":"true","isfeatured":"true","response":"json","id":"233","displayText":"vmconverttmpl","passwordEnabled":"false","name":"vmconverttmpl","_":"1389868635523","ctxAccountId":"2","ctxStartEventId":"1915"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, processStatus: 0, resultCode:
0, result: null, initMsid: 203178712092966, completeMsid: null, lastUpdated: null, lastPolled:
null, created: null}

DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527) Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
for job-527
DEBUG [cloud.api.ApiServlet] (catalina-exec-24:) ===END===  10.1.21.110 -- GET  command=createTemplate&response=json&sessionkey=PNVhAvI3UFBE8S9IvNGiTkVwWIE%3D&volumeId=83a10514-ee39-4311-8737-08c2e4067b61&name=vmconverttmpl&displayText=vmconverttmpl&osTypeId=6716dbce-79a1-11e3-b1ad-0758a53412c0&isPublic=true&passwordEnabled=false&isfeatured=true&_=1389868635523

DEBUG [agent.transport.Request] (Job-Executor-62:job-527) Seq 4-981860715: Sending  { Cmd
, MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 100011, [{"CreatePrivateTemplateFromVolumeCommand":{"_vmName":"i-2-92-VM","_volumePath":"ROOT-92-98","_userSpecifiedName":"vmconverttmpl","_uniqueName":"d40a66ff-d25d-40a1-b2ac-a388e04d55a7","_templateId":233,"_accountId":2,"_primaryPool":{"id":201,"uuid":"7ababa7e-463a-3a77-b162-7bcd8064f02e","host":"VMFS
datastore: /ZJGYJSDC/VMWareHBAStorage","path":"/ZJGYJSDC/VMWareHBAStorage","port":0,"type":"VMFS"},"_secondaryStorageUrl":"nfs://10.1.14.1/opt/exports/secondary","primaryStoragePoolNameLabel":"7ababa7e-463a-3a77-b162-7bcd8064f02e","wait":10800}}]
}

DEBUG [agent.transport.Request] (AgentManager-Handler-14:) Seq 4-981860715: Processing:  {
Ans: , MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 10, [{"UnsupportedAnswer":{"result":false,"details":"Unsupported
command issued:com.cloud.agent.api.CreatePrivateTemplateFromVolumeCommand.  Are you sure you
got the right type of server?","wait":0}}] }

DEBUG [agent.transport.Request] (Job-Executor-62:job-527) Seq 4-981860715: Received:  { Ans:
, MgmtId: 203178712092966, via: 4, Ver: v1, Flags: 10, { UnsupportedAnswer } }
WARN  [agent.manager.AgentManagerImpl] (Job-Executor-62:job-527) Unsupported Command: Unsupported
command issued:com.cloud.agent.api.CreatePrivateTemplateFromVolumeCommand.  Are you sure you
got the right type of server?

ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527) Unexpected exception while
executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
java.lang.ClassCastException: com.cloud.agent.api.UnsupportedAnswer cannot be cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer
     at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:2252)
     at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
     at com.cloud.vm.UserVmManagerImpl.createPrivateTemplate(UserVmManagerImpl.java:256)
     at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
     at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:439)
     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)
DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-62:job-527) Complete async job-527,
jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: com.cloud.agent.api.UnsupportedAnswer
cannot be cast to com.cloud.agent.api.storage.CreatePrivateTemplateAnswer



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message