Repository navigation
Cant attach volume to vm #9444
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
storage
CLOUDSTACK VERSION
4.19.1.0
CONFIGURATION
storage: linstor
OS / ENVIRONMENT
SUMMARY
There are two main storages located on linstor, conventionally, ‘ssd’ and ‘hdd’. The main drive (ROOT volume) is located on ‘ssd’, when I try to attach ‘DATA volume’ to ‘hdd’ I get an error:
Jul 25 11:34:34 cloud4 java[998325]: WARN [cloud.agent.Agent] (agentRequest-Handler-3:) (logid:dee379ed) Caught:
Jul 25 11:34:34 cloud4 java[998325]: java.lang.NullPointerException
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.storage.LinstorStorageAdaptor.connectPhysicalDisk(LinstorStorageAdaptor.java:256)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.connectPhysicalDisk(KVMStoragePoolManager.java:136)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.storage.KVMStorageProcessor.attachVolume(KVMStorageProcessor.java:1523)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:168)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:70)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStorageSubSystemCommandWrapper.execute(LibvirtStorageSubSystemCommandWrapper.java:36)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStorageSubSystemCommandWrapper.execute(LibvirtStorageSubSystemCommandWrapper.java:30)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1929)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.agent.Agent.processRequest(Agent.java:683)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1106)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.utils.nio.Task.call(Task.java:83)
Jul 25 11:34:34 cloud4 java[998325]: #011at com.cloud.utils.nio.Task.call(Task.java:29)
Jul 25 11:34:34 cloud4 java[998325]: #011at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
Jul 25 11:34:34 cloud4 java[998325]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
Jul 25 11:34:34 cloud4 java[998325]: #011at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Jul 25 11:34:34 cloud4 java[998325]: #011at java.base/java.lang.Thread.run(Thread.java:829)
Jul 25 11:34:47 cloud4 java[998325]: WARN [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-2:) (logid:f2a8af56) Couldn't retrieve free memory, returning -1.
At the same time the resource on linstor is created normally, it doesn't look like the problem is coming from linstor.
please help me to find the cause
Activity
sureshanaparti commentedon Aug 1, 2024
Hi @rp- can you check/confirm if any linstor issue here, with attach volume.
rp- commentedon Aug 1, 2024
The only thing that can be really
nullin that line is theKVMStoragePool.Looks like the agent doesn't know anything about that pool, would need more agent log to investigate further.
0sorkon commentedon Aug 5, 2024
Hi. No. There is nothing wrong with linstore as all other VMs are working fine and the drive attach/ detach function is working fine. In addition, I can mount a disc using the command
virsh attach-disk i-2-686-VM /dev/drbd1134 sdbThe problem seems to be related to a particular VM, but I can't figure out exactly where to look
github-actions commentedon Dec 27, 2025
This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.