You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Leeno (JIRA)" <ji...@apache.org> on 2013/07/04 18:21:48 UTC

[jira] [Commented] (CLOUDSTACK-3046) [Automation] Snapshot not getting removed from nfs storage

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700180#comment-13700180 ] 

Leeno commented on CLOUDSTACK-3046:
-----------------------------------

I see the same issue with Xenserver as well. Snapshots are removed from MS but not from secondary storage. I see following messages in SSVM,

2013-07-04 13:09:32,570 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:) Processing command: com.cloud.agent.api.GetStorageStatsCommand
2013-07-04 13:09:32,572 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:) Executing: mount
2013-07-04 13:09:32,575 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-3:) Execution is successful.
2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:) Request:Seq 50-1124270094:  { Cmd , MgmtId: 130602634328, via: 50, Ver: v1, Flags: 100011, [{"DeleteSnapshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"be695799-ec7e-390b-b600-09ad8f8db048","primaryPool":{"id":210,"uuid":"be695799-ec7e-390b-b600-09ad8f8db048","host":"192.168.10.251","path":"/cstagzb-pds01","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"127ea7ae-c7c0-4ee9-938d-80ea23f67e51","secondaryStorageUrl":"nfs://192.168.12.251/cstagzb-sds01","dcId":9,"accountId":2,"volumeId":1297,"wait":0}}] }
2013-07-04 13:09:37,003 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:) Processing command: com.cloud.agent.api.DeleteSnapshotBackupCommand
2013-07-04 13:09:37,004 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:) Executing: mount
2013-07-04 13:09:37,008 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:) Execution is successful.
2013-07-04 13:09:37,011 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:) Executing: /bin/bash -c rm -f /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*
2013-07-04 13:09:37,015 DEBUG [storage.resource.NfsSecondaryStorageResource] (agentRequest-Handler-4:) Execution is successful.
2013-07-04 13:09:37,016 DEBUG [cloud.agent.Agent] (agentRequest-Handler-4:) Seq 50-1124270094:  { Ans: , MgmtId: 130602634328, via: 50, Ver: v1, Flags: 10, [{"Answer":{"result":true,"details":"success","wait":0}}] }
2013-07-04 13:09:52,935 DEBUG [cloud.agent.Agent] (UgentTask-5:) Sending ping: Seq 50-7:  { Cmd , MgmtId: -1, via: 50, Ver: v1, Flags: 11, [{"PingStorageCommand":{"changes":{},"hostType":"Storage","hostId":50,"wait":0}}] }
2013-07-04 13:09:52,978 DEBUG [cloud.agent.Agent] (Agent-Handler-2:) Received response: Seq 50-7:  { Ans: , MgmtId: 130602634328, via: 50, Ver: v1, Flags: 100010, [{"PingAnswer":{"_command":{"hostType":"Storage","hostId":50,"wait":0},"result":true,"wait":0}}] }


But it's not removing snapshot. The path shown with 'rm' command is /mnt/SecStorage/71d74169-8641-39ec-aa9a-f2b6045ecdc8:snapshots:2:1297:*127ea7ae-c7c0-4ee9-938d-80ea23f67e51*. There it is seems directories are separated using ":". Is this correct? Shouldn't be "/"?

--
Leeno
                
> [Automation] Snapshot not getting removed from nfs storage 
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-3046
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3046
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.2.0
>         Environment: KVM 
> Master build
>            Reporter: Rayees Namathponnan
>            Priority: Blocker
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-3046.rar
>
>
> Steps to reproduce 
> Step 1 : Create advanced zone on kvm, deploy and VM, then create snapshot fom data volume 
> Step 2 : check your nfs storage 
> [root@nfs2 175]# pwd
> /export/home/rayees/SC_QA_AUTO4/secondary/snapshots/1/2/175
> [root@nfs2 175]# ll
> total 1476468
> -rw-r--r-- 1 root root 1510539264 Jun 17 17:13 31494145-c3c2-43fc-bbe2-f87a6b8f5f8b_20130618001003
> [root@nfs2 175]#
> Step  3: Delete the snapshot from MS 
> Expected result 
> Snapshot should be removed from UI also from nfs (in my case /....secondary/snapshots/1/2/175)
> Actual Result 
> Snapshot removed from UI, but still i can see this in nfs1 location 
> Management server issue delete command, seems its not actually getting removed
> 2013-06-17 20:10:52,315 DEBUG [cloud.api.ApiServlet] (catalina-exec-4:null) ===END===  10.216.133.100 -- GET  command=deleteSnapshot&id=39088f48-965c-4d0f-9712-72fb1fa23935&response=jso
> n&sessionkey=Qlsn3qydKWiT7WbnS7NBdnTTBnI%3D&_=1371514234464
> 2013-06-17 20:10:52,321 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-80) Executing org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd for job-80
> 2013-06-17 20:10:52,372 DEBUG [agent.transport.Request] (Job-Executor-57:job-80) Seq 12-779616685: Sending  { Cmd , MgmtId: 29066118877352, via: 12, Ver: v1, Flags: 100011, [{"DeleteSna
> pshotBackupCommand":{"all":false,"primaryStoragePoolNameLabel":"fff90cb5-06dd-33b3-8815-d78c08ca01d9","primaryPool":{"id":1,"uuid":"fff90cb5-06dd-33b3-8815-d78c08ca01d9","host":"10.223.
> 110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary","port":2049,"type":"NetworkFilesystem"},"snapshotUuid":"/snapshots/1/2/175/31494145-c3c2-43fc-bbe2-f87a6b8f5f8b_20130618001003"
> ,"secondaryStorageUrl":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary","dcId":1,"accountId":2,"volumeId":175,"wait":0}}] }
> 2013-06-17 20:10:52,620 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-12:null) SeqA 13-549: Processing Seq 13-549:  { Cmd , MgmtId: -1, via: 13, Ver: v1, Flags: 11, [{"Co
> nsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n  \"connections\": []\n}","wait":0}}] }
> 2013-06-17 20:10:52,640 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-12:null) SeqA 13-549: Sending Seq 13-549:  { Ans: , MgmtId: 29066118877352, via: 13, Ver: v1, Flags:
>  100010, [{"AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-06-17 20:10:52,877 DEBUG [agent.transport.Request] (AgentManager-Handler-11:null) Seq 12-779616685: Processing:  { Ans: , MgmtId: 29066118877352, via: 12, Ver: v1, Flags: 10, [{"An
> swer":{"result":true,"details":"success","wait":0}}] }
> 2013-06-17 20:10:52,877 DEBUG [agent.transport.Request] (Job-Executor-57:job-80) Seq 12-779616685: Received:  { Ans: , MgmtId: 29066118877352, via: 12, Ver: v1, Flags: 10, { Answer } }
> 2013-06-17 20:10:52,877 DEBUG [agent.manager.AgentManagerImpl] (Job-Executor-57:job-80) Details from executing class com.cloud.agent.api.DeleteSnapshotBackupCommand: success
> 2013-06-17 20:10:52,958 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-57:job-80) Complete async job-80, jobStatus: 1, resultCode: 0, result: org.apache.cloudstack.api.response.S
> uccessResponse@3cde0b68

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