[pve-devel] [PATCH] qemu-img convert crashes

Alexandre DERUMIER aderumier at odiso.com
Tue Apr 16 16:24:42 CEST 2013


yes, exactly !

Maybe something have changed in librbd.

I'll rebase my patches and sent them to the mailing.



----- Mail original ----- 

De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
Envoyé: Mardi 16 Avril 2013 16:13:32 
Objet: Re: [pve-devel] [PATCH] qemu-img convert crashes 

So this one fixes it: 

>From 7f61049ffe0c361a45b1af6c02716ed4301c663c Mon Sep 17 00:00:00 2001 
From: Stefan Priebe <s.priebe at profihost.ag> 
Date: Tue, 16 Apr 2013 16:12:57 +0200 
Subject: [PATCH] rbd is format raw for qemu-img 


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag> 
--- 
PVE/QemuServer.pm | 5 ++++- 
1 file changed, 4 insertions(+), 1 deletion(-) 

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm 
index 03e5018..5347a5b 100644 
--- a/PVE/QemuServer.pm 
+++ b/PVE/QemuServer.pm 
@@ -4542,7 +4542,10 @@ sub qemu_img_format { 
elsif ($scfg->{type} eq 'lvm' || $scfg->{type} eq 'iscsi'){ 
return "host_device"; 
} 
- #sheepdog,rbd,or other qemu block driver 
+ elsif ($scfg->{type} eq 'rbd'){ 
+ return "raw"; 
+ } 
+ #sheepdog,or other qemu block driver 
else{ 
return $scfg->{type}; 
} 
-- 
1.7.10.4 
Am 16.04.2013 16:10, schrieb Alexandre DERUMIER: 
> oh, I forgot, also -f ! 
> 
> -f raw -O raw 
> 
> 
> (I have tested it's work fine for me, rbd to rbd) 
> 
> ----- Mail original ----- 
> 
> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
> Envoyé: Mardi 16 Avril 2013 16:07:56 
> Objet: Re: [pve-devel] qemu-img convert crashes 
> 
> Hi, 
> 
> does not work for me ;-( 
> 
> activate volume vmstorssd1:vm-170-disk-1 
> copy vmstorssd1:vm-166-disk-1 to vmstorssd1:vm-170-disk-1 
> (0.00/100%) 
> TASK ERROR: create failed - copy failed: command '/usr/bin/qemu-img 
> convert -t writeback -p -C -f rbd -O raw 
> 'rbd:vmstorssd1/vm-166-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none' 
> 'rbd:vmstorssd1/vm-170-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none'' 
> failed: got signal 11 
> 
> 
> Stefan 
> Am 16.04.2013 16:02, schrieb Alexandre DERUMIER: 
>> I have found a similar error here 
>> 
>> http://www.mail-archive.com/ceph-users@lists.ceph.com/msg00089.html 
>> 
>> 
>> try to change 
>> 
>> -O rbd 
>> 
>> by 
>> 
>> -O raw 
>> 
>> seem to work here 
>> 
>> Maybe something have change inside qemu about format... 
>> 
>> 
>> convert -t writeback -p -C -f rbd -O raw 'rbd:vmstorssd1/vm-166-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none' 'rbd:vmstorssd1/vm-169-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none'' 
>> 
>> 
>> ----- Mail original ----- 
>> 
>> De: "Alexandre DERUMIER" <aderumier at odiso.com> 
>> À: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
>> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
>> Envoyé: Mardi 16 Avril 2013 15:44:11 
>> Objet: Re: [pve-devel] qemu-img convert crashes 
>> 
>> I had just tested, 
>> 
>> Indeed I got also a segfault.... 
>> 
>> seem to be a regression .... 
>> 
>> /usr/bin/qemu-img convert -t writeback -p -C -f qcow2 -O rbd /var/lib/vz/images/115/vm-115-disk-1.qcow2 'rbd:rbd/vm-249-disk-1:mon_host=10.6.0.100\:6789\;10.6.0.101\:6789\;10.6.0.102\:6789:auth_supported=none' 
>> Segmentation fault 
>> 
>> 
>> maybe qemu-devel or ceph-devel can help us to debug that? 
>> 
>> 
>> ----- Mail original ----- 
>> 
>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
>> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
>> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
>> Envoyé: Mardi 16 Avril 2013 15:32:00 
>> Objet: Re: [pve-devel] qemu-img convert crashes 
>> 
>> Am 16.04.2013 15:22, schrieb Alexandre DERUMIER: 
>>>>> Also a segfault. 
>>> 
>>> Do you have tried with another rbd source volume ? Do you use stable ceph bobtail ? 
>> 
>> Both yes always the same result... wouldn't it make sense to use rbd cp 
>> instead? 
>> 
>>> 
>>> ----- Mail original ----- 
>>> 
>>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
>>> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
>>> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
>>> Envoyé: Mardi 16 Avril 2013 14:51:19 
>>> Objet: Re: [pve-devel] qemu-img convert crashes 
>>> 
>>> Am 16.04.2013 14:42, schrieb Alexandre DERUMIER: 
>>>> oh, I never try to clone(copy) between 2 rbd storage, only from local to rbd , or rbd to local. 
>>>> 
>>>> maybe can you try without '-t writeback ?' 
>>> Same. 
>>> 
>>>> Does it work if you try to copy from rbd to local by example ? 
>>> Also a segfault. 
>>> 
>>> I'm using: pve-qemu-kvm 1.4-6 
>>> 
>>> Stefan 
>>> 
>>> 
>>>> ----- Mail original ----- 
>>>> 
>>>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
>>>> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
>>>> Cc: pve-devel at pve.proxmox.com, "Dietmar Maurer" <dietmar at proxmox.com> 
>>>> Envoyé: Mardi 16 Avril 2013 14:36:50 
>>>> Objet: Re: [pve-devel] qemu-img convert crashes 
>>>> 
>>>> HI, 
>>>> 
>>>> here is the crash when trying to clone: 
>>>> 
>>>> activate volume source vmstorssd1:vm-166-disk-1 
>>>> create target volume 
>>>> activate volume vmstorssd1:vm-169-disk-1 
>>>> copy vmstorssd1:vm-166-disk-1 to vmstorssd1:vm-169-disk-1 
>>>> (0.00/100%) 
>>>> TASK ERROR: create failed - copy failed: command '/usr/bin/qemu-img 
>>>> convert -t writeback -p -C -f rbd -O rbd 
>>>> 'rbd:vmstorssd1/vm-166-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none' 
>>>> 'rbd:vmstorssd1/vm-169-disk-1:mon_host=10.255.0.100\:6789\;10.255.0.101\:6789\;10.255.0.102\:6789\;:auth_supported=none'' 
>>>> failed: got signal 1 
>>>> 
>>>> Stefan 
>>>> 
>>>> Am 16.04.2013 13:17, schrieb Stefan Priebe - Profihost AG: 
>>>>> Hi, 
>>>>> 
>>>>> will recheck that. 
>>>>> 
>>>>> Right now i want to create a template. But nothing happens.If i convert 
>>>>> a Machine into a template i just see a task qmtemplate => OK. That's 
>>>>> all. But the VM stays the same and i can still start / stop that one. 
>>>>> 
>>>>> Greets, 
>>>>> Stefan 
>>>>> 
>>>>> Am 16.04.2013 12:28, schrieb Alexandre DERUMIER: 
>>>>>>>> Then i'll wait until these patches get integrated. Right now qemu-img 
>>>>>>>> segfaults with rbd for me when trying to clone. 
>>>>>> 
>>>>>> Could you describe the problem ? I have tested it last month and it was working fine. 
>>>>>> 
>>>>>> (Just to be sure, you don't try to use qemu-img on a running vm, because it don't work) 
>>>>>> 
>>>>>> ----- Mail original ----- 
>>>>>> 
>>>>>> De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
>>>>>> À: "Dietmar Maurer" <dietmar at proxmox.com> 
>>>>>> Cc: pve-devel at pve.proxmox.com 
>>>>>> Envoyé: Mardi 16 Avril 2013 11:04:39 
>>>>>> Objet: Re: [pve-devel] Feature HW Profiles 
>>>>>> 
>>>>>> Hi, 
>>>>>> Am 16.04.2013 10:58, schrieb Dietmar Maurer: 
>>>>>>>>> VM templates will provide a way to do that (patches from Alexandre). 
>>>>>>>> 
>>>>>>>> Yes and no as the disk will be also cloned. I'm just speaking about the settings 
>>>>>>>> like in OpenStack, OpenNebula and others. 
>>>>>>> 
>>>>>>> We can also allow to create templates without any disks. You can then add the disks when you clone. 
>>>>>> 
>>>>>> oh OK sorry. 
>>>>>> 
>>>>>> Then i'll wait until these patches get integrated. Right now qemu-img 
>>>>>> segfaults with rbd for me when trying to clone. 
>>>>>> 
>>>>>> Thanks! 
>>>>>> 
>>>>>> Greets Stefan 
>>>>>> 
>>>>>> 
>>>>>> _______________________________________________ 
>>>>>> pve-devel mailing list 
>>>>>> pve-devel at pve.proxmox.com 
>>>>>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
>>>>>> 



More information about the pve-devel mailing list