From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:34807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqBXN-0001Qf-Ui for qemu-devel@nongnu.org; Sun, 03 Feb 2019 01:45:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqBSo-0008TR-MI for qemu-devel@nongnu.org; Sun, 03 Feb 2019 01:41:12 -0500 Received: from indium.canonical.com ([91.189.90.7]:45190) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqBSm-0008Hc-Nl for qemu-devel@nongnu.org; Sun, 03 Feb 2019 01:41:10 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1gqBSU-0006TD-UZ for ; Sun, 03 Feb 2019 06:40:50 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DBF7B2E8048 for ; Sun, 3 Feb 2019 06:40:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Feb 2019 06:33:00 -0000 From: Cheng Chen <1814420@bugs.launchpad.net> Reply-To: Bug 1814420 <1814420@bugs.launchpad.net> Sender: bounces@canonical.com Message-Id: <154917558063.31331.8037825405478358224.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1814420] [NEW] drive-backup with iscsi, it will failed "Could not create image: Invalid argument" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: I use iscsi protocol to drive-backup: ---iscsi target--- yum -y install targetcli python-rtslib systemctl start target systemctl enable target targetcli /iscsi create iqn.2019-01.com.iaas targetcli /iscsi/iqn.2019-01.com.iaas/tpg1 set attribute authentication=3D0= demo_mode_write_protect=3D0 generate_node_acls=3D1 targetcli /iscsi/iqn.2019-01.com.iaas/tpg1/portals create 192.168.1.1 3260 targetcli /backstores/fileio create file1 /opt/file1 2G targetcli /iscsi/iqn.2019-01.com.iaas/tpg1/luns create /backstores/fileio/f= ile1 ------------------- Now, '{ "execute" : "drive-backup" , "arguments" : { "device" : "drive- virtio-disk0" , "sync" : "top" , "target" : "iscsi://192.168.1.1:3260/iqn.2019-01.com.iaas/0" } }' It may failed: {"id":"libvirt-1785","error":{"class":"GenericError","desc":"Could not create image: Invalid argument"}} But, This abnormal will be appear at the first time. Because when I retry again, It works very well. Then, I re-start the vm, It still be failed 'Could not create image: Invalid argument' on the first try, and the second try it will work very well. --- Host: centos 7.5 qemu version: 2.12 and 3.1.0 qemu command line: qemu-system-x86_64 -name guest=3Dtest,debug-threads=3Don= -S -object secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/qem= u/domain-190-test./master-key.aes -machine pc-i440fx-3.1,accel=3Dkvm,usb=3D= off,dump-guest-core=3Doff,mem-merge=3Doff -m 1024 -mem-prealloc -mem-path /= dev/hugepages1G/libvirt/qemu/190-test -realtime mlock=3Doff -smp 1,sockets= =3D1,cores=3D1,threads=3D1 -uuid 1c8611c2-a18a-4b1c-b40b-9d82040eafa4 -smbi= os type=3D1,manufacturer=3DIaaS -no-user-config -nodefaults -chardev socket= ,id=3Dcharmonitor,fd=3D31,server,nowait -mon chardev=3Dcharmonitor,id=3Dmon= itor,mode=3Dcontrol -rtc base=3Dutc -no-shutdown -boot menu=3Don,strict=3Do= n -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device virtio= -serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x3 -drive file=3D/opt/v= ol/sas/fb0c7c37-13e7-41fe-b3f8-f0fbaaeec7ce,format=3Dqcow2,if=3Dnone,id=3Dd= rive-virtio-disk0,cache=3Dwriteback -device virtio-blk-pci,scsi=3Doff,bus= =3Dpci.0,addr=3D0x5,drive=3Ddrive-virtio-disk0,id=3Dvirtio-disk0,bootindex= =3D1,write-cache=3Don -drive file=3D/opt/vol/sas/bde66671-536d-49cd-8b46-a4= f1ea7be513,format=3Dqcow2,if=3Dnone,id=3Ddrive-virtio-disk1,cache=3Dwriteba= ck -device virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x7,drive=3Ddrive-v= irtio-disk1,id=3Dvirtio-disk1,write-cache=3Don -netdev tap,fd=3D33,id=3Dhos= tnet0,vhost=3Don,vhostfd=3D34 -device virtio-net-pci,netdev=3Dhostnet0,id= =3Dnet0,mac=3D00:85:45:3e:d4:3a,bus=3Dpci.0,addr=3D0x6 -chardev pty,id=3Dch= arserial0 -device isa-serial,chardev=3Dcharserial0,id=3Dserial0 -chardev so= cket,id=3Dcharchannel0,fd=3D35,server,nowait -device virtserialport,bus=3Dv= irtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name=3Dorg.qemu= .guest_agent.0 -device usb-tablet,id=3Dinput0,bus=3Dusb.0,port=3D1 -vnc 0.0= .0.0:0,password -device cirrus-vga,id=3Dvideo0,bus=3Dpci.0,addr=3D0x2 -devi= ce virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x4 -msg timestamp= =3Don ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1814420 Title: drive-backup with iscsi, it will failed "Could not create image: Invalid argument" Status in QEMU: New Bug description: I use iscsi protocol to drive-backup: ---iscsi target--- yum -y install targetcli python-rtslib systemctl start target systemctl enable target targetcli /iscsi create iqn.2019-01.com.iaas targetcli /iscsi/iqn.2019-01.com.iaas/tpg1 set attribute authentication= =3D0 demo_mode_write_protect=3D0 generate_node_acls=3D1 targetcli /iscsi/iqn.2019-01.com.iaas/tpg1/portals create 192.168.1.1 3260 targetcli /backstores/fileio create file1 /opt/file1 2G targetcli /iscsi/iqn.2019-01.com.iaas/tpg1/luns create /backstores/fileio= /file1 ------------------- Now, '{ "execute" : "drive-backup" , "arguments" : { "device" : "drive-virtio-disk0" , "sync" : "top" , "target" : "iscsi://192.168.1.1:3260/iqn.2019-01.com.iaas/0" } }' It may failed: {"id":"libvirt-1785","error":{"class":"GenericError","desc":"Could not create image: Invalid argument"}} But, This abnormal will be appear at the first time. Because when I retry again, It works very well. Then, I re-start the vm, It still be failed 'Could not create image: Invalid argument' on the first try, and the second try it will work very well. --- Host: centos 7.5 qemu version: 2.12 and 3.1.0 qemu command line: qemu-system-x86_64 -name guest=3Dtest,debug-threads=3D= on -S -object secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/q= emu/domain-190-test./master-key.aes -machine pc-i440fx-3.1,accel=3Dkvm,usb= =3Doff,dump-guest-core=3Doff,mem-merge=3Doff -m 1024 -mem-prealloc -mem-pat= h /dev/hugepages1G/libvirt/qemu/190-test -realtime mlock=3Doff -smp 1,socke= ts=3D1,cores=3D1,threads=3D1 -uuid 1c8611c2-a18a-4b1c-b40b-9d82040eafa4 -sm= bios type=3D1,manufacturer=3DIaaS -no-user-config -nodefaults -chardev sock= et,id=3Dcharmonitor,fd=3D31,server,nowait -mon chardev=3Dcharmonitor,id=3Dm= onitor,mode=3Dcontrol -rtc base=3Dutc -no-shutdown -boot menu=3Don,strict= =3Don -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device vi= rtio-serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x3 -drive file=3D/o= pt/vol/sas/fb0c7c37-13e7-41fe-b3f8-f0fbaaeec7ce,format=3Dqcow2,if=3Dnone,id= =3Ddrive-virtio-disk0,cache=3Dwriteback -device virtio-blk-pci,scsi=3Doff,b= us=3Dpci.0,addr=3D0x5,drive=3Ddrive-virtio-disk0,id=3Dvirtio-disk0,bootinde= x=3D1,write-cache=3Don -drive file=3D/opt/vol/sas/bde66671-536d-49cd-8b46-a= 4f1ea7be513,format=3Dqcow2,if=3Dnone,id=3Ddrive-virtio-disk1,cache=3Dwriteb= ack -device virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x7,drive=3Ddrive-= virtio-disk1,id=3Dvirtio-disk1,write-cache=3Don -netdev tap,fd=3D33,id=3Dho= stnet0,vhost=3Don,vhostfd=3D34 -device virtio-net-pci,netdev=3Dhostnet0,id= =3Dnet0,mac=3D00:85:45:3e:d4:3a,bus=3Dpci.0,addr=3D0x6 -chardev pty,id=3Dch= arserial0 -device isa-serial,chardev=3Dcharserial0,id=3Dserial0 -chardev so= cket,id=3Dcharchannel0,fd=3D35,server,nowait -device virtserialport,bus=3Dv= irtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name=3Dorg.qemu= .guest_agent.0 -device usb-tablet,id=3Dinput0,bus=3Dusb.0,port=3D1 -vnc 0.0= .0.0:0,password -device cirrus-vga,id=3Dvideo0,bus=3Dpci.0,addr=3D0x2 -devi= ce virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x4 -msg timestamp= =3Don To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1814420/+subscriptions