xuanyuanaosheng opened a new issue #5776:
URL: https://github.com/apache/cloudstack/issues/5776
##### ISSUE TYPE
* Bug Report
The related issue is : https://github.com/apache/cloudstack/issues/5741
I create a volumes using Ceph RBD Storage,

But Is is failed when I attach this volemes to a running VM.

---------------------
The related info is:
I using command in KVM node and find the volume has created in ceph pool.
```
# rbd -p cloudstack ls
4f558b9c-4850-4727-b454-d0bcc0773284
baff76c8-0d6e-446f-a2df-541d285b33f0
```
The cloudstack agent error logs is
```
2021-12-15 18:51:14,815 INFO [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-5:null) (logid:44e5aea5) Trying to fetch storage pool
b90eae9d-973c-362c-8afc-af88f0743892 from libvirt
2021-12-15 18:51:14,815 WARN [cloud.agent.Agent]
(agentRequest-Handler-5:null) (logid:44e5aea5) Caught:
com.cloud.utils.exception.CloudRuntimeException:
org.libvirt.LibvirtException: Storage pool not found: no storage pool with
matching uuid 'b90eae9d-973c-362c-8afc-af88f0743892'
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:505)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:424)
at
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.connectPhysicalDisk(KVMStoragePoolManager.java:129)
at
com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.attachVolume(KVMStorageProcessor.java:1332)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:158)
at
com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:65)
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:1648)
at com.cloud.agent.Agent.processRequest(Agent.java:661)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1079)
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:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.libvirt.LibvirtException: Storage pool not found: no storage
pool with matching uuid 'b90eae9d-973c-362c-8afc-af88f0743892'
at org.libvirt.ErrorHandler.processError(Unknown Source)
at org.libvirt.ErrorHandler.processError(Unknown Source)
at org.libvirt.Connect.storagePoolLookupByUUIDString(Unknown Source)
at
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:433)
... 17 more
```
The cloudstack web UI error is
```
message.attach.volume.failed: whzpromalert001
Failed to attach volume whzpromalert001 to VM whzpromalert001 due to: class
com.cloud.agent.api.Answer cannot be cast to class
org.apache.cloudstack.storage.command.AttachAnswer (com.cloud.agent.api.Answer
and org.apache.cloudstack.storage.command.AttachAnswer are in unnamed module of
loader 'app')
```
Could you please give some advices ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]