Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1146316[details]
libvirtd log on both the source host and target host, and qemu log on target host
Description of problem:
1) Migration failed when setting vnc_auto_unix_socket = 1 and current occupied domain ids on source host and target host are different.(e.g. the max occupied domain id is 4 on source host, while the max occupied domain id is 1 on target host)
# virsh migrate rhel7.2-1030 qemu+ssh://10.66.4.113/system --live --verbose
error: internal error: process exited while connecting to monitor: 2016-04-12T07:54:18.328793Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory
2) Restore a managed saved domain failed.
# virsh managedsave rhel7.2-1030
# virsh start rhel7.2-1030
error: Failed to start domain rhel7.2-1030
error: internal error: process exited while connecting to monitor: 2016-04-12T08:35:53.536685Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory
Version-Release number of selected component:
libvirt-1.3.3-1.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
0. Set vnc_auto_unix_socket = 1 on both source and target hosts, restart libvirtd service.
Start different number of guests on source and target hosts, to make the current occupied domain id different, e.g.
start three guests on source host, and start one guest on target host.
1. Set guest graphic type=vnc:
# virsh dumpxml rhel7.2-1030
...
<graphics type='vnc' port='-1' autoport='yes'/>
...
2. Start guest rhel7.2-1030 on source host(its domain id will be 4) and migrate it to target host(on target, domain id of guest rhel7.2 will be 2):
# virsh migrate rhel7.2-1030 qemu+ssh://10.66.4.113/system --live --verbose
error: internal error: process exited while connecting to monitor: 2016-04-12T07:54:18.328793Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory
3. Do managedsave and restore:
# virsh managedsave rhel7.2-1030
# virsh start rhel7.2-1030
error: Failed to start domain rhel7.2-1030
error: internal error: process exited while connecting to monitor: 2016-04-12T08:35:53.536685Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory
Actual results:
Migration failed.
Restore a managed saved domain failed.
Expected results:
Migration can succeed.
And domain can restore from managed saved state successfully.
Comment 2Martin Kletzander
2016-04-26 14:34:31 UTC
Reproduce on build libvirt-1.3.3-1.el7.x86_64, verify pass on build libvirt-1.3.4-1.el7.x86_64.
Steps:
scenario1:
0. Set vnc_auto_unix_socket = 1 on both source and target hosts, restart libvirtd service.
Start different number of guests on source and target hosts, to make the current occupied domain id different, e.g.
start three guests on source host, and start one guest on target host.
1. Prepare a runnig guest with graphic type=vnc:
# virsh dumpxml rhel7.2
...
<graphics type='vnc' socket='/var/lib/libvirt/qemu/domain-3-rhel7.2/vnc.sock'>
...
2.Do migrate:
#virsh migrate rhel7.2 qemu+ssh://10.66.4.148/system --live --verbose
3.After migration completed, check the vnc socket paths in the target host:
#virsh dumpxml rhel7.2 | grep vnc
...
<graphics type='vnc' socket='/var/lib/libvirt/qemu/domain-2-rhel7.2/vnc.sock'>
...
scenario2:
1.set vnc_auto_unix_scoket=1 and restart libvirtd service;
2. Prepare a runnig guest with graphic type=vnc:
# virsh dumpxml rhel7.2
...
<graphics type='vnc' socket='/var/lib/libvirt/qemu/domain-3-rhel7.2/vnc.sock'>
...
3.Do managedsave:
#virsh managedsave rhel7.2
Domain rhel7.2 state saved by libvirt
4.Start the guest:
#virsh start rhel7.2
Domain rhel7.2 started
5.Check the vnc socket paths:
#virsh dumpxml rhel7.2
...
<graphics type='vnc' socket='/var/lib/libvirt/qemu/domain-4-rhel7.2/vnc.sock'>
...
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2016-2577.html
Created attachment 1146316 [details] libvirtd log on both the source host and target host, and qemu log on target host Description of problem: 1) Migration failed when setting vnc_auto_unix_socket = 1 and current occupied domain ids on source host and target host are different.(e.g. the max occupied domain id is 4 on source host, while the max occupied domain id is 1 on target host) # virsh migrate rhel7.2-1030 qemu+ssh://10.66.4.113/system --live --verbose error: internal error: process exited while connecting to monitor: 2016-04-12T07:54:18.328793Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory 2) Restore a managed saved domain failed. # virsh managedsave rhel7.2-1030 # virsh start rhel7.2-1030 error: Failed to start domain rhel7.2-1030 error: internal error: process exited while connecting to monitor: 2016-04-12T08:35:53.536685Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory Version-Release number of selected component: libvirt-1.3.3-1.el7.x86_64 How reproducible: 100% Steps to Reproduce: 0. Set vnc_auto_unix_socket = 1 on both source and target hosts, restart libvirtd service. Start different number of guests on source and target hosts, to make the current occupied domain id different, e.g. start three guests on source host, and start one guest on target host. 1. Set guest graphic type=vnc: # virsh dumpxml rhel7.2-1030 ... <graphics type='vnc' port='-1' autoport='yes'/> ... 2. Start guest rhel7.2-1030 on source host(its domain id will be 4) and migrate it to target host(on target, domain id of guest rhel7.2 will be 2): # virsh migrate rhel7.2-1030 qemu+ssh://10.66.4.113/system --live --verbose error: internal error: process exited while connecting to monitor: 2016-04-12T07:54:18.328793Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory 3. Do managedsave and restore: # virsh managedsave rhel7.2-1030 # virsh start rhel7.2-1030 error: Failed to start domain rhel7.2-1030 error: internal error: process exited while connecting to monitor: 2016-04-12T08:35:53.536685Z qemu-kvm: -vnc unix:/var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: Failed to start VNC server: Failed to bind socket to /var/lib/libvirt/qemu/domain-4-rhel7.2-1030/vnc.sock: No such file or directory Actual results: Migration failed. Restore a managed saved domain failed. Expected results: Migration can succeed. And domain can restore from managed saved state successfully.