cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-2970) Object_Store_Refactor - KVM - Not able to create a template from root volume.
Date Thu, 13 Jun 2013 00:05:19 GMT
Sangeetha Hariharan created CLOUDSTACK-2970:
-----------------------------------------------

             Summary: Object_Store_Refactor - KVM - Not able to create a template from root
volume.
                 Key: CLOUDSTACK-2970
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2970
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server
    Affects Versions: 4.2.0
         Environment: Build from object_store
            Reporter: Sangeetha Hariharan
            Priority: Blocker
             Fix For: 4.2.0


Object_Store_Refactor - KVM - Not able to create a template from root volume.

Steps to reproduce the problem:

Deploy a Vm.
Stop Vm.

Create template from root volume.

This fails.

Following exception seen in logs:
2013-06-12 16:42:48,763 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-22:null) submit
async job-15, details: AsyncJobVO {id:15, userId: 2, accountId: 2, session
Key: null, instanceType: Template, instanceId: 203, cmd: org.apache.cloudstack.api.command.user.template.CreateTemplateCmd,
cmdOriginator: null, cmdInfo: {"sessionkey":"
dBQf+73KAmghD7VZDXCmxes5DtM\u003d","volumeId":"6d1db4f4-7554-4665-8214-f7da27a990cb","ctxUserId":"2","httpmethod":"GET","osTypeId":"fabc244a-d3b3-11e2-b186-06f4b000042b"
,"isPublic":"true","isfeatured":"true","response":"json","id":"203","displayText":"Temp-from-root","passwordEnabled":"false","name":"Temp-from-root","_":"1371080621521",
"ctxAccountId":"2","ctxStartEventId":"54"}, cmdVersion: 0, callbackType: 0, callbackAddress:
null, status: 0, processStatus: 0, resultCode: 0, result: null, initMsid: 76
47994577963, completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-06-12 16:42:48,765 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) ===END===  10.217.252.50
-- GET  command=createTemplate&response=json&sessionkey=dBQf%2B73KA
mghD7VZDXCmxes5DtM%3D&volumeId=6d1db4f4-7554-4665-8214-f7da27a990cb&name=Temp-from-root&displayText=Temp-from-root&osTypeId=fabc244a-d3b3-11e2-b186-06f4b000042b&isPublic
=true&passwordEnabled=false&isfeatured=true&_=1371080621521
2013-06-12 16:42:48,766 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-15:job-15) Executing
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for
job-15
2013-06-12 16:42:48,813 DEBUG [agent.transport.Request] (Job-Executor-15:job-15) Seq 1-113377366:
Sending  { Cmd , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 100111,
 [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"6d1db4f4-7554-4665-8214-f7da27a990cb","volume
Type":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"22f8647a-607f-303b-b7bc-a3235a7943ff","id":1,"poolType":"NetworkFilesystem","hos
t":"10.223.110.232","path":"/export/home/sangeetha/kvm-objectstore/primary","port":2049}},"name":"ROOT-3","size":147456,"path":"a9394ac8-a6b8-4cec-80f6-dcedcb6a1494","vo
lumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"QCOW2","id":3}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/203","uuid":
"e834aa19-4bd5-43d3-83c3-84e041facc15","id":203,"format":"RAW","accountId":2,"hvm":true,"displayText":"Temp-from-root","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{
"_url":"nfs://10.223.110.232/export/home/sangeetha/kvm-objectstore/secondary","_role":"Image"}},"name":"2d51ccbac-5c61-35ae-9c8e-787c633b5efd"}},"wait":10800}}]
}
2013-06-12 16:42:51,465 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector
is running...
2013-06-12 16:42:51,542 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 2-1087045739:
Received:  { Ans: , MgmtId: 7647994577963, via: 2, Ver: v1, Flags: 10,
{ GetStorageStatsAnswer } }
2013-06-12 16:42:51,784 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-113377367:
Received:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, {
 GetStorageStatsAnswer } }
2013-06-12 16:42:51,830 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7
-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080624934
2013-06-12 16:42:51,845 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) ===END===  10.217.252.50
-- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-8
1c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080624934
2013-06-12 16:42:53,386 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM
2013-06-12 16:42:53,472 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null)
Ping from 2
2013-06-12 16:42:54,228 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is ready to launch console proxy
2013-06-12 16:42:54,855 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7
-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080627937
2013-06-12 16:42:54,876 DEBUG [cloud.api.ApiServlet] (catalina-exec-23:null) ===END===  10.217.252.50
-- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-8
1c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080627937
2013-06-12 16:42:56,774 DEBUG [storage.download.DownloadListener] (Timer-8:null) Scheduling
timeout at 30000 ms, TEMPLATE: 4 at host 2
2013-06-12 16:42:57,829 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080630936
2013-06-12 16:42:57,851 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null) ===END===  10.217.252.50
-- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080630936
2013-06-12 16:43:00,863 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080633963
2013-06-12 16:43:00,877 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null) ===END===  10.217.252.50
-- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080633963
2013-06-12 16:43:02,114 DEBUG [cloud.server.StatsCollector] (StatsCollector-1:null) HostStatsCollector
is running...
2013-06-12 16:43:02,201 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 1 routers to update status.
2013-06-12 16:43:02,203 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status.
2013-06-12 16:43:02,508 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 1 routers to update status.
2013-06-12 16:43:02,509 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status.
2013-06-12 16:43:02,694 DEBUG [agent.transport.Request] (StatsCollector-1:null) Seq 1-113377368:
Received:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
2013-06-12 16:43:03,776 DEBUG [agent.transport.Request] (Timer-8:null) Seq 2-1087045740: Sending
 { Cmd , MgmtId: 7647994577963, via: 2, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"1dc930b8-4dc3-4997-8cfa-eb4d6dfff5f5","request":"GET_STATUS","hvm":false,"description":"CentOS
5.5(64-bit) no GUI (KVM)","checksum":"ed0e788280ff2912ea40f7f91ca7a249","maxDownloadSizeInBytes":53687091200,"id":4,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/4","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/kvm-objectstore/secondary","_role":"Image"}},"url":"http://download.cloud.com/releases/2.2.0/eec2209b-9875-3c8d-92be-c001bd8a0faf.qcow2.bz2","format":"QCOW2","accountId":1,"name":"centos55-x86_64","secUrl":"nfs://10.223.110.232/export/home/sangeetha/kvm-objectstore/secondary","wait":0}}]
}
2013-06-12 16:43:03,824 DEBUG [agent.transport.Request] (AgentManager-Handler-10:null) Seq
2-1087045740: Processing:  { Ans: , MgmtId: 7647994577963, via: 2, Ver: v1, Flags: 10, [{"com.cloud.agent.api.storage.DownloadAnswer":{"jobId":"1dc930b8-4dc3-4997-8cfa-eb4d6dfff5f5","downloadPct":32,"errorString":"
","downloadStatus":"DOWNLOAD_IN_PROGRESS","downloadPath":"/mnt/SecStorage/a81e1c7b-bddc-33ff-af0d-6304f76b8638/template/tmpl/1/4/dnld255103381307339188tmp_","installPath":"template/tmpl/1/4","templateSize":0,"templatePhySicalSize":0,"checkSum":"ed0e788280ff2912ea40f7f91ca7a249","result":true,"details":"
","wait":0}}] }
2013-06-12 16:43:03,895 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080636965
2013-06-12 16:43:03,911 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) ===END===  10.217.252.50
-- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080636965
2013-06-12 16:43:05,076 DEBUG [agent.transport.Request] (AgentManager-Handler-11:null) Seq
1-113377366: Processing:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"timeout","wait":0}}]
}
2013-06-12 16:43:05,076 DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-11:null)
Seq 1-113377366: No more commands found
2013-06-12 16:43:05,076 DEBUG [agent.transport.Request] (Job-Executor-15:job-15) Seq 1-113377366:
Received:  { Ans: , MgmtId: 7647994577963, via: 1, Ver: v1, Flags: 110, { CopyCmdAnswer }
}
2013-06-12 16:43:05,092 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-15:job-15)
Failed to create templatejava.lang.NullPointerException
2013-06-12 16:43:05,123 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-15:job-15) Unexpected
exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create templatejava.lang.NullPointerException
        at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1378)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:256)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        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-06-12 16:43:05,135 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-15:job-15) Complete
async job-15, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to
create templatejava.lang.NullPointerException
2013-06-12 16:43:06,885 DEBUG [cloud.api.ApiServlet] (catalina-exec-16:null) ===START=== 
10.217.252.50 -- GET  command=queryAsyncJobResult&jobId=19b297a0-4db1-47a4-96b7-81c9d7207c02&response=json&sessionkey=dBQf%2B73KAmghD7VZDXCmxes5DtM%3D&_=1371080639966
2013-06-12 16:43:06,893 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-16:null) Async
job-15 completed




--
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

Mime
View raw message