Bug 736590 - Improve error message when migration fails due to stopped libvirtd on the target
Summary: Improve error message when migration fails due to stopped libvirtd on the target
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: pre-dev-freeze
: ---
Assignee: Virtualization Maintenance
QA Contact: Fangge Jin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-08 07:52 UTC by xhu
Modified: 2020-02-11 12:48 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-11 12:48:50 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description xhu 2011-09-08 07:52:41 UTC
Description of problem:
Error is not clear when migrate but libvirtd is not started on target host

Version-Release number of selected component (if applicable):
libvirt-0.9.4-10.el6.x86_64
qemu-kvm-0.12.1.2-2.188.el6.x86_64
kernel-2.6.32-193.el6.x86_64

How reproducible:
everytimes

Steps to Reproduce:
On target host:
1. stop libvirtd
# service libvirtd status
libvirtd is stopped

On source host:
1. start a guest with shared nfs image
2. migrate from source to target host:
# virsh migrate vr-rhel6-x86_64-kvm --live qemu+ssh://10.66.85.218/system
  
Actual results:
# virsh migrate vr-rhel6-x86_64-kvm --live qemu+ssh://10.66.85.218/system
root.85.218's password: 
error: End of file while reading data: : Input/output error

Expected results:
I think the following error prompt is more clear:
# virsh migrate vr-rhel6-x86_64-kvm --live qemu+ssh://10.66.85.218/system
error: End of file while reading data: : Input/output error
error: failed to connect to the hypervisor

Additional info:

Comment 1 Daniel Berrangé 2011-09-12 16:11:22 UTC
This is nothing specific to migration, you'll get the same error message just with

$ virsh -c qemu+ssh://root@localhost/system 
root@localhost's password: 
error: End of file while reading data: : Input/output error
error: failed to connect to the hypervisor

It is not entirely trivial to improve on this due to the way remote SSH tunnelling works.

Comment 2 Jiri Denemark 2011-11-25 15:34:15 UTC
This should become better once we have a libssh2 transport (covered by bug 513363). Although nc is unhelpful and doesn't provide any error message when it can't connect to a unix socket. Fortunately, it sets it's return code to 1 in that case. Using libssh2 we can see this return code (and can distinguish it from ssh connection failure, which we can't when exec'ing ssh) and provide a better error message.

Comment 8 Peter Krempa 2013-01-29 15:47:37 UTC
There's a possibility that this could be fixed even without the libssh2 driver support. Leaving it open for investigation.

Comment 12 Jiri Denemark 2014-04-04 21:36:37 UTC
This bug was not selected to be addressed in Red Hat Enterprise Linux 6. We will look at it again within the Red Hat Enterprise Linux 7 product.

Comment 15 Jaroslav Suchanek 2020-02-11 12:48:50 UTC
This bug was closed deferred as a result of bug triage.

Please reopen if you disagree and provide justification why this bug should
get enough priority. Most important would be information about impact on
customer or layered product. Please indicate requested target release.


Note You need to log in before you can comment on or make changes to this bug.