Bug 908008 - virt-manager: Unable to migrate guest: End of file while reading data: : Input/output error
Summary: virt-manager: Unable to migrate guest: End of file while reading data: : Inpu...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: 201412*
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: James Fehlig
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 908007
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-02 15:03 UTC by Martin Pluskal
Modified: 2014-12-03 15:05 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
virt-manager --debug (23.01 KB, text/plain)
2014-12-02 15:03 UTC, Martin Pluskal
Details
backtrace (10.37 KB, text/plain)
2014-12-02 18:21 UTC, Martin Pluskal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pluskal 2014-12-02 15:03:08 UTC
Created attachment 615641 [details]
virt-manager --debug

+++ This bug was initially created as a clone of Bug #908007 +++

When trying to migrate vm via virt-manager (with option migrate via libvirtd) between machines with opensuse-factorty, following error is raised:

Unable to migrate guest: End of file while reading data: : Input/output error

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/migrate.py", line 547, in _async_migrate
    vm.migrate(dstconn, migrate_uri, rate, live, secure, unsafe, meter=meter)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1446, in migrate
    self._backend.migrate(destconn, flags, newname, interface, rate)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1458, in migrate
    if ret is None:raise libvirtError('virDomainMigrate() failed', dom=self)
libvirtError: End of file while reading data: : Input/output error
Comment 1 Martin Pluskal 2014-12-02 15:57:02 UTC
Hmm, according to dmesg it seems that there is something going wrong with libvirt:
# dmesg
...
[ 8755.168038] libvirtd[29555]: segfault at 0 ip 00007f6b383b33d5 sp 00007f6b3dc5d7a0 error 4 in libvirt_driver_qemu.so (deleted)[7f6b38331000+113000]
[ 8841.069925] libvirtd[7378]: segfault at 0 ip 00007fabe529a3d5 sp 00007fabebb467a0 error 4 in libvirt_driver_qemu.so[7fabe5218000+113000]
Comment 2 Charles Arnold 2014-12-02 16:08:04 UTC
Jim,
Is this issue addressed with recent libvirt fixes for migration?
Comment 3 James Fehlig 2014-12-02 16:21:28 UTC
(In reply to Charles Arnold from comment #2)
> Jim,
> Is this issue addressed with recent libvirt fixes for migration?

Those fixes were for the Xen libxl driver, so wont improve the situation in this bug.

Martin, can you get a stack trace of the segfault?  Thanks!
Comment 4 Martin Pluskal 2014-12-02 18:21:39 UTC
Created attachment 615673 [details]
backtrace

I am not sure if this is relevant, but source machine is running 3.17.2 kernel and target 3.18-rc7, cpu of target is more recent than that of source.
I am also not sure if there might be some connection to bnc#907843 - target machine however does not have any issues with running kvm with most recent development kernels.
Comment 5 James Fehlig 2014-12-03 13:14:32 UTC
Thanks Martin, the backtrace was helpful.  Crash has already been fixed upstream

http://libvirt.org/git/?p=libvirt.git;a=commit;h=52691f99fa016ac46c9546c37706e57a5180d4c6

I've added the patch to the libvirt package in Virtualization and sent an SR to Factory - SR#263831.
Comment 6 Bernhard Wiedemann 2014-12-03 14:00:26 UTC
This is an autogenerated message for OBS integration:
This bug (908008) was mentioned in
https://build.opensuse.org/request/show/263831 Factory / libvirt
Comment 7 James Fehlig 2014-12-03 15:05:53 UTC
Closing now that #908007 is closed.