You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "edison su (JIRA)" <ji...@apache.org> on 2013/07/26 22:23:49 UTC

[jira] [Assigned] (CLOUDSTACK-3854) Updated] (CLOUDSTACK-3852) [Object_Store_Refactor] [VMWare] Create Template from ROOT volume fails with permission denied

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

edison su reassigned CLOUDSTACK-3854:
-------------------------------------

    Assignee: edison su
    
> Updated] (CLOUDSTACK-3852) [Object_Store_Refactor] [VMWare] Create Template from ROOT volume fails with permission denied
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3854
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3854
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller, Template, VMware, Volumes
>    Affects Versions: 4.2.0
>            Reporter: Abhinav Roy
>            Assignee: edison su
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: management-server.log
>
>
> Steps to Reproduce: 
> ================ 
> 1.Bringup CS in advanced zone with vmware cluster 
> 2.Deploy guest vm with default cent of template 
> 3. Stop the VM
> 4.Create template from the ROOT volume of the VM 
> Expected Result: 
> ============== 
> Template creation from ROOT volume should succeed
> Actual Result: 
> =========== 
> Template creation failed with
> 2013-07-26 16:48:04,161 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null) ===END===  10.144.7.7 -- GET  command=createTemplate&response=json&sessionkey=00EusWU8K42EWur3PwOeZ4Kh89Y%3D&volumeId=19ef7833-5232-40cf-b3ba-dbae281bb17c&name=rootdisk-temp-7&displayText=rootdisk-temp-7&osTypeId=31b49e5c-f5b8-11e2-a7cb-329a63c0e931&isPublic=false&passwordEnabled=false&isdynamicallyscalable=false&isfeatured=true&_=13748377032502013-07-26 16:48:04,164 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-53:job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]) Executing org.apache.cloudstack.api.command.user.template.CreateTemplateCmd for job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]2013-07-26 16:48:04,203 DEBUG [storage.image.TemplateDataFactoryImpl] (Job-Executor-53:job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]) template 204 is already in store:1, type:Image2013-07-26 16:48:04,227 DEBUG [storage.motion.AncientDataMotionStrategy] (Job-Executor-53:job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]) copyAsync inspecting src type VOLUME copyAsync inspecting dest type TEMPLATE2013-07-26 16:48:04,245 DEBUG [agent.transport.Request] (Job-Executor-53:job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]) Seq 1-107152239: Sending  { Cmd , MgmtId: 55638679939377, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"19ef7833-5232-40cf-b3ba-dbae281bb17c","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"a5d175a7-fc4b-3184-879a-9c1c475311c0","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/sailaja/vmware51ps1","port":2049}},"name":"ROOT-7","size":0,"path":"ROOT-7-13-000001","volumeId":13,"vmName":"i-4-7-VM","accountId":4,"format":"OVA","id":13,"hypervisorType":"None"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/4/204","uuid":"7d339508-5068-4894-b10f-e75bd6a0f320","id":204,"format":"RAW","accountId":4,"hvm":true,"displayText":"rootdisk-temp-7","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/sailaja/vmware51ss1","_role":"Image"}},"name":"4b3739f37-9d0f-3b5a-ab38-19fae53b734e","hypervisorType":"None"}},"executeInSequence":false,"wait":10800}}] }2013-07-26 16:48:04,246 DEBUG [agent.transport.Request] (Job-Executor-53:job-49 = [ a0454cf4-6458-4a9b-a86b-1fe6bdcd94d8 ]) Seq 1-107152239: Executing:  { Cmd , MgmtId: 55638679939377, via: 1, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"19ef7833-5232-40cf-b3ba-dbae281bb17c","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"a5d175a7-fc4b-3184-879a-9c1c475311c0","id":1,"poolType":"NetworkFilesystem","host":"10.102.192.100","path":"/cpg_vol/sailaja/vmware51ps1","port":2049}},"name":"ROOT-7","size":0,"path":"ROOT-7-13-000001","volumeId":13,"vmName":"i-4-7-VM","accountId":4,"format":"OVA","id":13,"hypervisorType":"None"}},"destTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"template/tmpl/4/204","uuid":"7d339508-5068-4894-b10f-e75bd6a0f320","id":204,"format":"RAW","accountId":4,"hvm":true,"displayText":"rootdisk-temp-7","imageDataStore":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.102.192.100/cpg_vol/sailaja/vmware51ss1","_role":"Image"}},"name":"4b3739f37-9d0f-3b5a-ab38-19fae53b734e","hypervisorType":"None"}},"executeInSequence":false,"wait":10800}}] }2013-07-26 16:48:04,247 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-93:null) Seq 1-107152239: Executing request
> 2013-07-26 16:48:04,253 DEBUG [vmware.mo.HostMO] (DirectAgent-93:10.102.192.19) find VM i-4-7-VM on host
> 2013-07-26 16:48:04,254 DEBUG [vmware.mo.HostMO] (DirectAgent-93:10.102.192.19) load VM cache on host2013-07-26 16:48:04,590 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null) SeqA 2-1873: Processing Seq 2-1873:  { Cmd , MgmtId: -1, via: 2, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n  \"connections\": [\n    {\n      \"id\": 4,\n      \"clientInfo\": \"\",\n      \"host\": \"10.102.192.19\",\n      \"port\": 5945,\n      \"tag\": \"06566220-9e77-4b52-9c41-6452b0c8b7c0\",\n      \"createTime\": 1374837810994,\n      \"lastUsedTime\": 1374837813335\n    },\n    {\n      \"id\": 3,\n      \"clientInfo\": \"\",\n      \"host\": \"10.102.192.19\",\n      \"port\": 5914,\n      \"tag\": \"22ec4ee1-38be-4881-b66b-c301e09570f6\",\n      \"createTime\": 1374837403272,\n      \"lastUsedTime\": 1374837684226\n    }\n  ]\n}","wait":0}}] }2013-07-26 16:48:04,597 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null) SeqA 2-1873: Sending Seq 2-1873:  { Ans: , MgmtId: 55638679939377, via: 2, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-07-26 16:48:05,149 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-93:10.102.192.19) Executing: mkdir -p /var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl/4/204
>  
> 2013-07-26 16:48:06,880 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-93:10.102.192.19) Exit value is 12013-07-26 16:48:06,959 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-93:10.102.192.19) mkdir: cannot create directory `/var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl/4/204': Permission denied2013-07-26 16:48:07,070 ERROR [storage.resource.VmwareStorageProcessor] (DirectAgent-93:10.102.192.19) unable to prepare template directory: template/tmpl/4/204, storage: nfs://10.102.192.100/cpg_vol/sailaja/vmware51ss1, error msg: mkdir: cannot create directory `/var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl/4/204': Permission denied2013-07-26 16:48:07,076 ERROR [storage.resource.VmwareStorageProcessor] (DirectAgent-93:10.102.192.19) Unexpecpted exception
> java.lang.Exception: unable to prepare template directory: template/tmpl/4/204, storage: nfs://10.102.192.100/cpg_vol/sailaja/vmware51ss1, error msg: mkdir: cannot create directory `/var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl/4/204': Permission denied
>         at com.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:659)        at com.cloud.storage.resource.VmwareStorageProcessor.createTemplateFromVolume(VmwareStorageProcessor.java:742)        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:81)        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)        at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:566)        at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)        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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)        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-26 16:48:07,111 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-93:null) Seq 1-107152239: Response Received:2013-07-26 16:48:07,126 DEBUG [agent.transport.Request] (DirectAgent-93:null) Seq 1-107152239: Processing:  { Ans: , MgmtId: 55638679939377, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"CreatePrivateTemplateFromVolumeCommand exception: java.lang.Exception: unable to prepare template directory: template/tmpl/4/204, storage: nfs://10.102.192.100/cpg_vol/sailaja/vmware51ss1, error msg: mkdir: cannot create directory `/var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl/4/204': Permission denied","wait":0}}] }
> 		
> 		
> ----- The creation wnet through after i manually gave permissions to /var/cloudstack/mnt/VM/55638679939377.58f6e6c2/template/tmpl

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