cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Koneti (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-3903) Snapshot Creation Fails in Vmware setup with permissions issue.
Date Wed, 07 Aug 2013 09:42:47 GMT

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

Kiran Koneti closed CLOUDSTACK-3903.
------------------------------------


Closing this as per dev Comments
                
> Snapshot Creation Fails in Vmware setup with permissions issue.
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3903
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3903
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Snapshot
>    Affects Versions: 4.2.0
>         Environment: VMware.
>            Reporter: Kiran Koneti
>            Assignee: Koushik Das
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> Steps followed are as below:
> 1)Created an Advanced ZOne setup in the VMware.
> 2)Created a VM with root disk and Data disk,.
> 3)Once the VM is up tried to take the snapshot of the Root disk.
> 4)The snapshot creation was initiated but failed to create the snapshot as there are
no permissions in the secondary storage to create directory for the snapshot.
> The error messages are as below:
> 2013-07-29 21:14:28,373 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-9:10.147.40.18)
Exit value is 1
> 2013-07-29 21:14:28,384 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-9:10.147.40.18)
mkdir: cannot create directory `/var/cloudstack/mnt/VM/6703101771911.e487dcd/snapshots': Permission
denied
> 2013-07-29 21:15:03,574 ERROR [storage.resource.VmwareStorageProcessor] (DirectAgent-9:10.147.40.18)
Unexpecpted exception
> java.lang.Exception: unable to prepare snapshot backup directory
>         at com.cloud.storage.resource.VmwareStorageProcessor.exportVolumeToSecondaryStroage(VmwareStorageProcessor.java:960)
>         at com.cloud.storage.resource.VmwareStorageProcessor.backupSnapshotToSecondaryStorage(VmwareStorageProcessor.java:999)
>         at com.cloud.storage.resource.VmwareStorageProcessor.backupSnapshot(VmwareStorageProcessor.java:1072)
>         at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:84)
>         at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
>         at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:562)
>         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-29 21:15:03,609 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-9:null)
Seq 1-1697251555: Response Received:
> 2013-07-29 21:15:03,610 DEBUG [agent.transport.Request] (DirectAgent-9:null) Seq 1-1697251555:
Processing:  { Ans: , MgmtId: 6703101771911, via: 1, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"BackupSnapshotCommand
exception: java.lang.Exception: unable to prepare snapshot backup directory","wait":0}}] }
> 2013-07-29 21:15:03,610 DEBUG [agent.transport.Request] (Job-Executor-14:job-14 = [ 353da542-80f1-465b-ad37-65610a8caf4d
]) Seq 1-1697251555: Received:  { Ans: , MgmtId: 6703101771911, via: 1, Ver: v1, Flags: 10,
{ CopyCmdAnswer } }
> 2013-07-29 21:15:03,699 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job-Executor-14:job-14
= [ 353da542-80f1-465b-ad37-65610a8caf4d ]) Failed to create snapshot
> com.cloud.utils.exception.CloudRuntimeException: BackupSnapshotCommand exception: java.lang.Exception:
unable to prepare snapshot backup directory
>         at org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(SnapshotServiceImpl.java:286)
>         at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.backupSnapshot(XenserverSnapshotStrategy.java:127)
>         at org.apache.cloudstack.storage.snapshot.XenserverSnapshotStrategy.takeSnapshot(XenserverSnapshotStrategy.java:219)
>         at com.cloud.storage.snapshot.SnapshotManagerImpl.takeSnapshot(SnapshotManagerImpl.java:994)
>         at org.apache.cloudstack.storage.volume.VolumeServiceImpl.takeSnapshot(VolumeServiceImpl.java:1222)
>         at com.cloud.storage.VolumeManagerImpl.takeSnapshot(VolumeManagerImpl.java:2680)
>         at org.apache.cloudstack.api.command.user.snapshot.CreateSnapshotCmd.execute(CreateSnapshotCmd.java:170)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>         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-29 21:15:03,721 DEBUG [storage.volume.VolumeServiceImpl] (Job-Executor-14:job-14
= [ 353da542-80f1-465b-ad37-65610a8caf4d ]) Take snapshot: 3 failed: com.cloud.utils.exception.CloudRuntimeException:
Failed to create snapshot.
> Then later manually gave permissions to the secondary storage and the snapshot creation
was successful.
> Note: Not sure weather this is the CS issue or the storage issue as the issue is not
seen in case of Xen or KVm setup's. The issue related to the permissions for the Template
or snapshots are observed only in the case of VMware.

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