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] [Updated] (CLOUDSTACK-1950) [Automation] Failed to create template from VM instance / a snapshot.
Date Wed, 24 Apr 2013 00:01:18 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sangeetha Hariharan updated CLOUDSTACK-1950:
--------------------------------------------

       Priority: Critical  (was: Major)
    Description: 

Steps to reproduce 

Step 1 : Launch a VM instance that has the operating system you want. Make any other desired
configuration changes to the VM.
Step 2 : Stop the VM.
Step 3: Convert the volume into a template.

Actual Result:

Failed to create template from VM instance, see the MS log below 


2013-04-04 21:58:20,905 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===  10.216.51.147
-- GET  command=createTemplate&response=json&sessionkey=qB%2BHwd6C32zeQBCah3hN%2Bvh%2B9mI%3D&volumeId=e3ad9b48-9144-419a-8150-7aaedf7f36a6&name=tetet&displayText=tete&osTypeId=00e86866-9d67-11e2-b754-52b2d980df8a&isPublic=false&passwordEnabled=false&isfeatured=false&_=1365137833272
2013-04-04 21:58:20,939 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-204
2013-04-04 21:58:20,967 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
java.lang.NullPointerException
	at org.apache.cloudstack.storage.image.manager.ImageDataStoreManagerImpl.getImageDataStore(ImageDataStoreManagerImpl.java:60)
	at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
	at org.apache.cloudstack.storage.image.ImageDataFactoryImpl.getTemplate(ImageDataFactoryImpl.java:86)
	at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1718)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
	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:722)
2013-04-04 21:58:20,968 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Complete async job-204, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
null
2013-04-04 21:58:22,054 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-213:null) Ping
from 6
2013-04-04 21:58:22,405 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 removed accounts to cleanup
2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 disabled accounts to cleanup
2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 inactive domains to cleanup
2013-04-04 21:58:22,408 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 disabled projects to cleanup
2013-04-04 21:58:22,442 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 2 routers to update status. 


Another scenario that breaks:

Take a snapshot of the root volume of a VM.

>From this snapshot , create a template.

Template creation fails.

Following exception seen in the management server logs:


2013-04-23 16:36:01,911 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START=== 
10.217.252.128 -- GET  command=creat
eTemplate&response=json&sessionkey=qgKai0x0MdA2m%2FfFg8rwD2W2EIw%3D&snapshotid=decb3905-568a-43e0-96b7-e3f269731630&name=Dual-
Stack-1pv6&displayText=Dual-Stack-1pv6&osTypeId=5cc3a18e-a229-11e2-8724-069ab0000706&isPublic=true&passwordEnabled=false&_=136
6760561363
2013-04-23 16:36:02,186 DEBUG [cloud.template.TemplateManagerImpl] (catalina-exec-17:null)
This template is getting created fr
om other template, setting source template Id to: 202
2013-04-23 16:36:02,211 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-17:null) submit
async job-87, details: AsyncJob
VO {id:87, userId: 2, accountId: 2, sessionKey: null, instanceType: null, instanceId: 203,
cmd: org.apache.cloudstack.api.comm
and.user.template.CreateTemplateCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"qgKai0x0MdA2m/fFg8rwD2W2EIw\u003d","ctxUserI
d":"2","osTypeId":"5cc3a18e-a229-11e2-8724-069ab0000706","isPublic":"true","response":"json","id":"203","displayText":"Dual-St
ack-1pv6","snapshotid":"decb3905-568a-43e0-96b7-e3f269731630","passwordEnabled":"false","name":"Dual-Stack-1pv6","_":"13667605
61363","ctxAccountId":"2","ctxStartEventId":"405"}, cmdVersion: 0, callbackType: 0, callbackAddress:
null, status: 0, processS
tatus: 0, resultCode: 0, result: null, initMsid: 7261447522054, completeMsid: null, lastUpdated:
null, lastPolled: null, creat
ed: null}
2013-04-23 16:36:02,212 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===  10.217.252.128
-- GET  command=createT
emplate&response=json&sessionkey=qgKai0x0MdA2m%2FfFg8rwD2W2EIw%3D&snapshotid=decb3905-568a-43e0-96b7-e3f269731630&name=Dual-St
ack-1pv6&displayText=Dual-Stack-1pv6&osTypeId=5cc3a18e-a229-11e2-8724-069ab0000706&isPublic=true&passwordEnabled=false&_=13667
60561363
2013-04-23 16:36:02,213 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-87) Executing
org.apache.cloudstack.api.c
ommand.user.template.CreateTemplateCmd for job-87
2013-04-23 16:36:02,244 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-87) Unexpected
exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
java.lang.NullPointerException
        at org.apache.cloudstack.storage.image.manager.ImageDataStoreManagerImpl.getImageDataStore(ImageDataStoreManagerImpl.java:60)
        at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
        at org.apache.cloudstack.storage.image.ImageDataFactoryImpl.getTemplate(ImageDataFactoryImpl.java:86)
        at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1718)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
        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)



BVT test case "incubator-cloudstack/test/integration/smoke/test_templates.py" failing 


  was:

Steps to reproduce 

Step 1 : Launch a VM instance that has the operating system you want. Make any other desired
configuration changes to the VM.
Step 2 : Stop the VM.
Step 3: Convert the volume into a template.

Actual Result:

Failed to create template from VM instance, see the MS log below 


2013-04-04 21:58:20,905 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===  10.216.51.147
-- GET  command=createTemplate&response=json&sessionkey=qB%2BHwd6C32zeQBCah3hN%2Bvh%2B9mI%3D&volumeId=e3ad9b48-9144-419a-8150-7aaedf7f36a6&name=tetet&displayText=tete&osTypeId=00e86866-9d67-11e2-b754-52b2d980df8a&isPublic=false&passwordEnabled=false&isfeatured=false&_=1365137833272
2013-04-04 21:58:20,939 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-204
2013-04-04 21:58:20,967 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
java.lang.NullPointerException
	at org.apache.cloudstack.storage.image.manager.ImageDataStoreManagerImpl.getImageDataStore(ImageDataStoreManagerImpl.java:60)
	at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
	at org.apache.cloudstack.storage.image.ImageDataFactoryImpl.getTemplate(ImageDataFactoryImpl.java:86)
	at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1718)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
	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:722)
2013-04-04 21:58:20,968 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Complete async job-204, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
null
2013-04-04 21:58:22,054 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-213:null) Ping
from 6
2013-04-04 21:58:22,405 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 removed accounts to cleanup
2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 disabled accounts to cleanup
2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 inactive domains to cleanup
2013-04-04 21:58:22,408 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null) Found
0 disabled projects to cleanup
2013-04-04 21:58:22,442 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 2 routers to update status. 



BVT test case "incubator-cloudstack/test/integration/smoke/test_templates.py" failing 


        Summary: [Automation] Failed to create template from VM instance / a snapshot.  (was:
[Automation] Failed to create template from VM instance )
    
> [Automation] Failed to create template from VM instance / a snapshot.
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1950
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1950
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Template
>    Affects Versions: 4.2.0
>            Reporter: Rayees Namathponnan
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-1950.rar
>
>
> Steps to reproduce 
> Step 1 : Launch a VM instance that has the operating system you want. Make any other
desired configuration changes to the VM.
> Step 2 : Stop the VM.
> Step 3: Convert the volume into a template.
> Actual Result:
> Failed to create template from VM instance, see the MS log below 
> 2013-04-04 21:58:20,905 DEBUG [cloud.api.ApiServlet] (catalina-exec-10:null) ===END===
 10.216.51.147 -- GET  command=createTemplate&response=json&sessionkey=qB%2BHwd6C32zeQBCah3hN%2Bvh%2B9mI%3D&volumeId=e3ad9b48-9144-419a-8150-7aaedf7f36a6&name=tetet&displayText=tete&osTypeId=00e86866-9d67-11e2-b754-52b2d980df8a&isPublic=false&passwordEnabled=false&isfeatured=false&_=1365137833272
> 2013-04-04 21:58:20,939 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-204
> 2013-04-04 21:58:20,967 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> java.lang.NullPointerException
> 	at org.apache.cloudstack.storage.image.manager.ImageDataStoreManagerImpl.getImageDataStore(ImageDataStoreManagerImpl.java:60)
> 	at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
> 	at org.apache.cloudstack.storage.image.ImageDataFactoryImpl.getTemplate(ImageDataFactoryImpl.java:86)
> 	at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1718)
> 	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> 	at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
> 	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:722)
> 2013-04-04 21:58:20,968 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-87:job-204)
Complete async job-204, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text:
null
> 2013-04-04 21:58:22,054 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-213:null)
Ping from 6
> 2013-04-04 21:58:22,405 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null)
Found 0 removed accounts to cleanup
> 2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null)
Found 0 disabled accounts to cleanup
> 2013-04-04 21:58:22,407 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null)
Found 0 inactive domains to cleanup
> 2013-04-04 21:58:22,408 INFO  [cloud.user.AccountManagerImpl] (AccountChecker-1:null)
Found 0 disabled projects to cleanup
> 2013-04-04 21:58:22,442 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 2 routers to update status. 
> Another scenario that breaks:
> Take a snapshot of the root volume of a VM.
> From this snapshot , create a template.
> Template creation fails.
> Following exception seen in the management server logs:
> 2013-04-23 16:36:01,911 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===
 10.217.252.128 -- GET  command=creat
> eTemplate&response=json&sessionkey=qgKai0x0MdA2m%2FfFg8rwD2W2EIw%3D&snapshotid=decb3905-568a-43e0-96b7-e3f269731630&name=Dual-
> Stack-1pv6&displayText=Dual-Stack-1pv6&osTypeId=5cc3a18e-a229-11e2-8724-069ab0000706&isPublic=true&passwordEnabled=false&_=136
> 6760561363
> 2013-04-23 16:36:02,186 DEBUG [cloud.template.TemplateManagerImpl] (catalina-exec-17:null)
This template is getting created fr
> om other template, setting source template Id to: 202
> 2013-04-23 16:36:02,211 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-17:null)
submit async job-87, details: AsyncJob
> VO {id:87, userId: 2, accountId: 2, sessionKey: null, instanceType: null, instanceId:
203, cmd: org.apache.cloudstack.api.comm
> and.user.template.CreateTemplateCmd, cmdOriginator: null, cmdInfo: {"sessionkey":"qgKai0x0MdA2m/fFg8rwD2W2EIw\u003d","ctxUserI
> d":"2","osTypeId":"5cc3a18e-a229-11e2-8724-069ab0000706","isPublic":"true","response":"json","id":"203","displayText":"Dual-St
> ack-1pv6","snapshotid":"decb3905-568a-43e0-96b7-e3f269731630","passwordEnabled":"false","name":"Dual-Stack-1pv6","_":"13667605
> 61363","ctxAccountId":"2","ctxStartEventId":"405"}, cmdVersion: 0, callbackType: 0, callbackAddress:
null, status: 0, processS
> tatus: 0, resultCode: 0, result: null, initMsid: 7261447522054, completeMsid: null, lastUpdated:
null, lastPolled: null, creat
> ed: null}
> 2013-04-23 16:36:02,212 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===
 10.217.252.128 -- GET  command=createT
> emplate&response=json&sessionkey=qgKai0x0MdA2m%2FfFg8rwD2W2EIw%3D&snapshotid=decb3905-568a-43e0-96b7-e3f269731630&name=Dual-St
> ack-1pv6&displayText=Dual-Stack-1pv6&osTypeId=5cc3a18e-a229-11e2-8724-069ab0000706&isPublic=true&passwordEnabled=false&_=13667
> 60561363
> 2013-04-23 16:36:02,213 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-87)
Executing org.apache.cloudstack.api.c
> ommand.user.template.CreateTemplateCmd for job-87
> 2013-04-23 16:36:02,244 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-87)
Unexpected exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
> java.lang.NullPointerException
>         at org.apache.cloudstack.storage.image.manager.ImageDataStoreManagerImpl.getImageDataStore(ImageDataStoreManagerImpl.java:60)
>         at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
>         at org.apache.cloudstack.storage.image.ImageDataFactoryImpl.getTemplate(ImageDataFactoryImpl.java:86)
>         at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1718)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:258)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:164)
>         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)
> BVT test case "incubator-cloudstack/test/integration/smoke/test_templates.py" failing


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