You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "Pearl1594 (via GitHub)" <gi...@apache.org> on 2026/04/13 16:06:02 UTC
[I] Unable to detach volume from a running VM - KVM [cloudstack]
Pearl1594 opened a new issue, #13014:
URL: https://github.com/apache/cloudstack/issues/13014
### problem
When attempting to detach a volume from a running VM on KVM it times out with the following exception:
```
2026-04-13 15:57:11,572 DEBUG [kvm.resource.LibvirtVMDef] (AgentRequest-Handler-2:[]) (logid:4f27dc30) Using informed label [hdc] for volume [null].
2026-04-13 15:57:11,573 DEBUG [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-2:[]) (logid:4f27dc30) The hypervisor sent the detach command, but it is still possible to identify the device [/mnt/3e518e5c-22d5-3ad2-b036-a8847d93db12/883a6620-6638-4545-b19a-3f0687aefc67] in the instance with UUID [69e2c19f-78a9-4f41-b6bd-30d8c6b3a586].
2026-04-13 15:57:12,575 DEBUG [kvm.resource.LibvirtVMDef] (AgentRequest-Handler-2:[]) (logid:4f27dc30) Using informed label [hdc] for volume [null].
2026-04-13 15:57:12,575 DEBUG [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-2:[]) (logid:4f27dc30) The hypervisor sent the detach command, but it is still possible to identify the device [/mnt/3e518e5c-22d5-3ad2-b036-a8847d93db12/883a6620-6638-4545-b19a-3f0687aefc67] in the instance with UUID [69e2c19f-78a9-4f41-b6bd-30d8c6b3a586].
2026-04-13 15:57:12,576 DEBUG [kvm.storage.KVMStorageProcessor] (AgentRequest-Handler-2:[]) (logid:4f27dc30) Failed to detach volume [id: 4, uuid: 883a6620-6638-4545-b19a-3f0687aefc67, name: v1, path: 883a6620-6638-4545-b19a-3f0687aefc67], due to com.cloud.exception.InternalErrorException: Could not detach volume after sending the command and waiting for [10000] milliseconds. Probably the VM does not support the sent detach command or the device is busy at the moment. Try again in a couple of minutes.
at com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.attachOrDetachDevice(KVMStorageProcessor.java:1323)
at com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.attachOrDetachDisk(KVMStorageProcessor.java:1588)
at com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.dettachVolume(KVMStorageProcessor.java:1681)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:178)
at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:73)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStorageSubSystemCommandWrapper.execute(LibvirtStorageSubSystemCommandWrapper.java:36)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStorageSubSystemCommandWrapper.execute(LibvirtStorageSubSystemCommandWrapper.java:30)
at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2282)
at com.cloud.agent.Agent.processRequest(Agent.java:813)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1295)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
```
### versions
Specific to main (4.23)
### The steps to reproduce the bug
1. Create a VM
2. Create a data volume
3. Attach volume to VM
4. Attempt detach volume from the running VM - fails with the above exception
### What to do about it?
Should be able to successfully detach the volume as it did in the older CloudStack versions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to detach volume from a running VM - KVM [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #13014:
URL: https://github.com/apache/cloudstack/issues/13014#issuecomment-4497215036
ping @Pearl1594 , ..?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to detach volume from a running VM - KVM [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #13014:
URL: https://github.com/apache/cloudstack/issues/13014#issuecomment-4475377264
@Pearl1594
could you provide more details ?
- host OS distro
- guest OS distro
- guest VM status, for example, if OS is booted into shell, can the data disk be detected in the guest VM, any other disk issue.
I tried with a ubuntu 24 vm in a ubuntu 24 environment, data volume can be detached.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to detach volume from a running VM - KVM [cloudstack]
Posted by "Pearl1594 (via GitHub)" <gi...@apache.org>.
Pearl1594 commented on issue #13014:
URL: https://github.com/apache/cloudstack/issues/13014#issuecomment-4497987948
I'm not sure if this is relevant anymore. I remember at the time I raised this issue, I was able to reproduce this across on an ol9 env. I can't reproduce the issue anymore.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to detach volume from a running VM - KVM [cloudstack]
Posted by "Pearl1594 (via GitHub)" <gi...@apache.org>.
Pearl1594 closed issue #13014: Unable to detach volume from a running VM - KVM
URL: https://github.com/apache/cloudstack/issues/13014
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to detach volume from a running VM - KVM [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #13014:
URL: https://github.com/apache/cloudstack/issues/13014#issuecomment-4498246307
> I'm not sure if this is relevant anymore. I remember at the time I raised this issue, I was able to reproduce this across on an ol9 env. I can't reproduce the issue anymore.
thanks @Pearl1594
just a thought, I faced an issue recently that guest VM is read-only, not sure if it is related.
let's revisit later
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org