[Bug 907324] New: libvirt: unsupported configuration: native I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads
http://bugzilla.opensuse.org/show_bug.cgi?id=907324 Bug ID: 907324 Summary: libvirt: unsupported configuration: native I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads Classification: openSUSE Product: openSUSE Factory Version: 201411* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: jfehlig@suse.com Reporter: mpluskal@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 615104 --> http://bugzilla.opensuse.org/attachment.cgi?id=615104&action=edit virt-manager --debug Instalation via virt-manager, when lvm is used as default storage fails: summary=Unable to complete install: 'unsupported configuration: native I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads' details=Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1958, in do_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 428, in start_install noboot) File "/usr/share/virt-manager/virtinst/guest.py", line 492, in _create_guest dom = self.conn.createLinux(start_xml or final_xml, 0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3464, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirtError: unsupported configuration: native I/O needs either no disk cache or directsync cache mode, QEMU will fallback to aio=threads # systemctl status libvirtd libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled) Active: active (running) since Wed 2014-11-26 14:30:16 CET; 20min ago Docs: man:libvirtd(8) http://libvirt.org Main PID: 1345 (libvirtd) CGroup: /system.slice/libvirtd.service ├─1345 /usr/sbin/libvirtd --listen ├─1680 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/vnet0.conf --dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper └─1681 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/vnet0.conf --dhcp-script=/usr/lib64/libvirt/libvirt_leaseshelper Nov 26 14:30:17 medusa dnsmasq[1680]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC Nov 26 14:30:17 medusa dnsmasq-dhcp[1680]: DHCP, IP range 192.168.100.128 -- 192.168.100.254, lease time 1h Nov 26 14:30:17 medusa dnsmasq-dhcp[1680]: DHCP, sockets bound exclusively to interface virbr0 Nov 26 14:30:17 medusa dnsmasq[1680]: reading /etc/resolv.conf Nov 26 14:30:17 medusa dnsmasq[1680]: using nameserver 10.100.2.10#53 Nov 26 14:30:17 medusa dnsmasq[1680]: using nameserver 10.100.2.8#53 Nov 26 14:30:17 medusa dnsmasq[1680]: read /etc/hosts - 7 addresses Nov 26 14:30:17 medusa dnsmasq[1680]: read /var/lib/libvirt/dnsmasq/vnet0.addnhosts - 0 addresses Nov 26 14:30:17 medusa dnsmasq-dhcp[1680]: read /var/lib/libvirt/dnsmasq/vnet0.hostsfile Nov 26 14:47:48 medusa libvirtd[1345]: End of file while reading data: Input/output error -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907324 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brogers@suse.com, | |jfehlig@suse.com Assignee|jfehlig@suse.com |carnold@suse.com QA Contact|qa-bugs@suse.de |jdouglas@suse.com --- Comment #1 from James Fehlig <jfehlig@suse.com> --- Looks like virtinst-set-cache-mode-unsafe-for-install.patch is not quite smart enough to handle block devices. From set_defaults() in virtinst/devicedisk.py # Enable cache=none and io=native for block devices. Would # be nice if qemu did this for us but that time has long passed. if not self.driver_cache: self.driver_cache = self.CACHE_MODE_NONE if not self.driver_io: self.driver_io = self.IO_MODE_NATIVE And if I understand the code correctly, virtinst-set-cache-mode-unsafe-for-install.patch will change the cache mode to 'unsafe' during install phase, which seems to be the cased based on the disk config in the install XML from the virt-manager log file <disk type="block" device="disk"> <driver name="qemu" type="raw" cache="unsafe" io="native"/> <source dev="/dev/storage/openSUSE-Factory"/> <target dev="vda" bus="virtio"/> </disk> Unfortunately, as noted in the error, io='native' is only compatible with cache='none' or cache='directsync'. Passing to Charles to take a look... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907324 --- Comment #2 from Charles Arnold <carnold@suse.com> --- Virt-manager will now skip setting 'unsafe' for any install target that is a block device. Thanks Jim for tracking this down. This change is pushed out to the Virtualization repo and will be in a future SLE12 maintenance release. Marking Fixed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=907324 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Charles Arnold <carnold@suse.com> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com