Skip to content

Live Migration from NFS to LinStor doesnt create Linstor device , but a qcow file in KVM/QEMU #8032

Open
@hmadra

Description

@hmadra
ISSUE TYPE

Bug Report

COMPONENT NAME

Storage Provider

CLOUDSTACK VERSION

4.18

CONFIGURATION

N/A

OS / ENVIRONMENT

AlmaLinux 8

SUMMARY

When migrating a Live VM in Qemu/KVM from NFS to LinStor , rather than creating a drbd resource on the target system ,
Cloudstack is creating a Qemu file in /var/log/cloudstack/management/cloudstack directory

If there is not enough space in the device with log directory , live migration fails.

Oct  3 20:13:00 host02 journal[44701]: End of file while reading data: Input/output error
Oct  3 20:13:00 host02 java[44876]: libvirt:  error : no connection driver available for lxc:///
Oct  3 20:13:00 host02 java[44876]: WARN  [kvm.resource.LibvirtConnection] (agentRequest-Handler-1:) (logid:0bbc2885) Can not find a connection for Instance i-2-42-VM. Assuming the default connection.
Oct  3 20:13:01 host02 journal[44701]: internal error: Child process (/usr/bin/qemu-img create -f qcow2 -o preallocation=falloc,compat=1.1 /var/log/cloudstack/management/cloudstack/adda192d-a71b-4b7d-8745-f27db392d9a5 20971520K) unexpected exit status 1: qemu-img: /var/log/cloudstack/management/cloudstack/adda192d-a71b-4b7d-8745-f27db392d9a5: Could not resize image: Failed to resize underlying file: Could not preallocate new data: No space left on device

However, if there is enough space , It creates a Qcow file in the /var/log/cloudstack/management/cloudstack/ directory , rather than creating a DRBD device .

Other DRBD volumes are working fine on the host, and host is connected to LinStor controller and has other VMs operating normally , when the VM is created with LinStor as primary storage

[root@host02 ~]# ls -l /var/log/cloudstack/management/cloudstack/ total 20975620 -rw------- 1 root root 21478375424 Oct 3 20:30 46552b99-bd33-471f-897b-7f8de9065725 [root@host02 ~]#

EXPECTED RESULTS

During Live migration + Storage migration, Cloudstack should create a DRBD resource on the target host and move the disk image to LinStore DRBD Device.


``

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions