cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinav Roy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-3396) Template creation from a snapshot fails
Date Mon, 08 Jul 2013 11:15:48 GMT
Abhinav Roy created CLOUDSTACK-3396:
---------------------------------------

             Summary: Template creation from a snapshot fails 
                 Key: CLOUDSTACK-3396
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3396
             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
            Reporter: Abhinav Roy
             Fix For: 4.2.0


Steps : 

======================================= 
1. Deploy CS advanced zone setup . 
2. Deploy a VM 
3. Goto the root volume of the VM and take Snapshot
4. Go to that snapshot and try to create a template from the snapshot.

Observed behaviour :
=======================================
The template creation fails with

2013-07-08 16:07:07,641 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===END===  10.144.6.28
-- GET  command=createTemplate&response=json&sessionkey=%2Bv%2F%2FZk%2FQzhRmm6AaFNp4DhBDGvE%3D&snapshotid=16503285-b02b-444c-ba7b-0740c1da1bfe&name=root-3+temp&displayText=root-3+temp&osTypeId=b57bdee6-e544-11e2-a640-fef34996d384&isPublic=true&passwordEnabled=false&_=1373279981133
2013-07-08 16:07:07,642 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-24:job-67) Executing
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-67
2013-07-08 16:07:07,707 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-24:job-67)
copyAsync inspecting src type SNAPSHOT copyAsync inspecting dest type TEMPLATE
2013-07-08 16:07:07,735 DEBUG [agent.transport.Request] (Job-Executor-24:job-67) Seq 2-87163067:
Sending  { Cmd , MgmtId: 280320865129348, via: 2, Ver: v1, Flags: 100111, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.SnapshotObjectTO":{"path":"snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480","volume":{"uuid":"a87d4c2a-dbf1-4f20-b84a-7f2faca0b3a3","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"389dcc10-de2b-334a-b028-704f70580877","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/abhinav/xen42-pri","port":2049}},"name":"ROOT-3","size":21474836480,"path":"953818b2-debe-483a-983c-d8c69dd0950e","volumeId":3,"vmName":"i-2-3-VM","accountId":2,"format":"VHD","id":3},"dataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/abhinav/xen42-sec","_role":"Image"}},"vmName":"i-2-3-VM","name":"v1_ROOT-3_20130708064131","hypervisorType":"XenServer","id":1}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/2/207","uuid":"e5a6fa62-703c-45c4-a165-be48dd578a59","id":207,"format":"RAW","accountId":2,"hvm":true,"displayText":"root-3
temp","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/abhinav/xen42-sec","_role":"Image"}},"name":"239eac46b-4690-3f9b-95e9-c0d751a1e29a"}},"wait":10800}}]
}
2013-07-08 16:07:07,869 DEBUG [agent.transport.Request] (AgentManager-Handler-8:null) Seq
2-87163067: Processing:  { Ans: , MgmtId: 280320865129348, via: 2, Ver: v1, Flags: 110, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
line 65: /bin/vhd-util: Permission denied30#failed to query /mnt/SecStorage/ff05d1cd-034d-3032-9adc-3d7451d838fb/snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480.vhd","wait":0}}]
}
2013-07-08 16:07:07,870 DEBUG [agent.manager.AgentAttache] (AgentManager-Handler-8:null) Seq
2-87163067: No more commands found
2013-07-08 16:07:07,870 DEBUG [agent.transport.Request] (Job-Executor-24:job-67) Seq 2-87163067:
Received:  { Ans: , MgmtId: 280320865129348, via: 2, Ver: v1, Flags: 110, { CopyCmdAnswer
} }
2013-07-08 16:07:07,877 DEBUG [cloud.template.TemplateManagerImpl] (Job-Executor-24:job-67)
Failed to create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
line 65: /bin/vhd-util: Permission denied30#failed to query /mnt/SecStorage/ff05d1cd-034d-3032-9adc-3d7451d838fb/snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480.vhd
2013-07-08 16:07:07,913 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-24:job-67) Unexpected
exception while executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
line 65: /bin/vhd-util: Permission denied30#failed to query /mnt/SecStorage/ff05d1cd-034d-3032-9adc-3d7451d838fb/snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480.vhd
        at com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1381)
        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-07-08 16:07:07,915 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-24:job-67) Complete
async job-67, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to
create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
line 65: /bin/vhd-util: Permission denied30#failed to query /mnt/SecStorage/ff05d1cd-034d-3032-9adc-3d7451d838fb/snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480.vhd
2013-07-08 16:07:10,702 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===START===  10.144.6.28
-- GET  command=queryAsyncJobResult&jobId=58ee3c17-6223-4fb2-9354-89c6fd05cfe0&response=json&sessionkey=%2Bv%2F%2FZk%2FQzhRmm6AaFNp4DhBDGvE%3D&_=1373279984328
2013-07-08 16:07:10,718 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-8:null) Async
job-67 completed
2013-07-08 16:07:10,723 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) ===END===  10.144.6.28
-- GET  command=queryAsyncJobResult&jobId=58ee3c17-6223-4fb2-9354-89c6fd05cfe0&response=json&sessionkey=%2Bv%2F%2FZk%2FQzhRmm6AaFNp4DhBDGvE%3D&_=1373279984328
2013-07-08 16:07:16,730 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) HostStatsCollector
is running...
2013-07-08 16:07:16,737 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-415:null) Seq
1-2007499413: Executing request
2013-07-08 16:07:16,766 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null)
SeqA 3-34960: Processing Seq 3-34960:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2013-07-08 16:07:16,770 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null)
SeqA 3-34960: Sending Seq 3-34960:  { Ans: , MgmtId: 280320865129348, via: 3, Ver: v1, Flags:
100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-07-08 16:07:16,890 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-415:null) Seq
1-2007499413: Response Received:
2013-07-08 16:07:16,890 DEBUG [agent.transport.Request] (StatsCollector-2:null) Seq 1-2007499413:
Received:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
^C
[root@rhel63 ~]# tailf /var/log/cloudstack/management/management-server.log
2013-07-08 16:07:07,915 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-24:job-67) Complete
async job-67, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to
create template/usr/local/cloud/systemvm/scripts/storage/secondary/create_privatetemplate_from_snapshot_xen.sh:
line 65: /bin/vhd-util: Permission denied30#failed to query /mnt/SecStorage/ff05d1cd-034d-3032-9adc-3d7451d838fb/snapshots/2/3/afee4b1a-c186-4dad-828c-3dd9e774c480.vhd
 

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