cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishan Kavala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-7315) [LXC] libvirt Exception when deleting volume as a part of expunge VM
Date Tue, 26 Aug 2014 08:41:59 GMT

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

Kishan Kavala resolved CLOUDSTACK-7315.
---------------------------------------

    Resolution: Fixed

StorageVol.delete doesn't work for volumes in DIR format.
Use rm command to delete folder

> [LXC] libvirt Exception when deleting volume as a part of expunge VM
> --------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7315
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7315
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: 4.5.0
>            Reporter: shweta agarwal
>            Assignee: Kishan Kavala
>            Priority: Critical
>             Fix For: 4.5.0
>
>         Attachments: agent.log
>
>
> Repro steps:
> Create a LXC VM
> Destroy the VM  with expunge=true :
> Agent log shows following exception :
> Instructing libvirt to remove volume c24ecda3-128f-4e3e-bec9-04aca09cdeb1 from pool dfa2ec3c-d133-3284-8583-0a0845aa4424
> 2014-08-12 04:38:37,759 DEBUG [kvm.storage.KVMStorageProcessor] (agentRequest-Handler-3:null)
Failed to delete volume:
> com.cloud.utils.exception.CloudRuntimeException: org.libvirt.LibvirtException: cannot
remove directory '/mnt/dfa2ec3c-d133-3284-8583-0a0845aa4424/c24ecda3-128f-4e3e-bec9-04aca09cdeb1':
Directory not empty
>         at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.deletePhysicalDisk(LibvirtStorageAdaptor.java:856)
>         at com.cloud.hypervisor.kvm.storage.LibvirtStoragePool.deletePhysicalDisk(LibvirtStoragePool.java:175)
>         at com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.deleteVolume(KVMStorageProcessor.java:1203)
>         at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:124)
>         at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:57)
>         at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1356)
>         at com.cloud.agent.Agent.processRequest(Agent.java:501)
>         at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808)
>         at com.cloud.utils.nio.Task.run(Task.java:84)
>         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)
> 2014-08-12 04:38:37,759 DEBUG [cloud.agent.Agent] (agentRequest-Handler-3:null) Seq 1-4558487247829097659:
 { Ans: , MgmtId: 233845177509765, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":false,"details":"com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: cannot remove directory '/mnt/dfa2ec3c-d133-3284-8583-0a0845aa4424/c24ecda3-128f-4e3e-bec9-04aca09cdeb1':
Directory not empty","wait":0}}] }
> 2014-08-12 04:38:38,321 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) Processing
command: com.cloud.agent.api.GetStorageStatsCommand
> 2014-08-12 04:38:38,321 DEBUG [kvm.storage.LibvirtStorageAdaptor] (agentRequest-Handler-1:null)




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message