Bug 807145

Summary: Can not define xml with 232 disks with multifunction
Product: Red Hat Enterprise Linux 7 Reporter: weizhang <weizhan>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, akong, berrange, dallan, dyasny, dyuan, gsun, honzhang, mprivozn, mzhan, rhod, rwu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-01 13:22:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
guest xml with 232 usb disks none

Description weizhang 2012-03-27 07:38:05 UTC
Created attachment 572957 [details]
guest xml with 232 usb disks

Description of problem:
I try to test multifunction so I create a xml with 232 disks with multifunction, when do define, it report error
# virsh define usb-all.xml 
error: Failed to define domain from usb-all.xml
error: Unable to encode message payload
error: Reconnected to the hypervisor

if I remove 3 disks, then define can be succeed, but when do dumpxml, it still report error 
# virsh dumpxml usb
error: Unable to encode message payload
error: Reconnected to the hypervisor

Version-Release number of selected component (if applicable):
libvirt-0.9.10-8.el6.x86_64
kernel-2.6.32-250.el6.x86_64
qemu-kvm-0.12.1.2-2.262.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Define a guest with xml in attachment
# virsh define guest.xml
2.
3.
  
Actual results:
Report error

Expected results:
Should succeed both for define and dumpxml

Additional info:

Comment 1 Daniel Berrangé 2012-03-27 09:34:26 UTC
The XML file is 66375 bytes long, and our maximum RPC string size is 65536 bytes. When dumping the XML file, it will grow as libvirt adds in various default attributes.

Comment 2 Dave Allan 2012-03-27 17:56:11 UTC
So what does a user with such a VM do?

Comment 4 Ronen Hod 2012-03-28 16:44:48 UTC
Note that until we support PCI bridge it might also be related to
https://bugzilla.redhat.com/show_bug.cgi?id=753692

Comment 5 Dave Allan 2012-04-26 19:33:40 UTC
Michal, I think this can be closed as a dup of one of the other BZs in which the maximum RPC size was exceeded, but I'll leave that up to you.

Comment 6 Michal Privoznik 2012-06-01 13:22:14 UTC
Yes. This is definitely a dup of bug 808980 and bug 797279. Therefore I am closing this one.

*** This bug has been marked as a duplicate of bug 808980 ***