Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1639597

Summary: RFE: allow tunnelled live migration over unix socket libvirt destination connection
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Jaroslav Suchanek <jsuchane>
Component: libvirtAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED WONTFIX QA Contact: Fangge Jin <fjin>
Severity: unspecified Docs Contact:
Priority: low    
Version: 8.1CC: chhu, dvossel, dyuan, fdeutsch, knoel, libvirt-maint, pkrempa, tburke, xuzhang, yalzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.1Flags: rule-engine: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1638889 Environment:
Last Closed: 2020-02-25 13:55:30 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1638889    
Bug Blocks: 1758964    

Description Jaroslav Suchanek 2018-10-16 07:38:24 UTC
+++ This bug was initially created as a clone of Bug #1638889 +++

Description of problem:

Libvirt prevents performing a live migration when the destination libvirt connection is a unix socket. 

In KubeVirt, we need the ability to tunnel a live migration through a unix socket to another network namespace which then connects to the destination libvirt.  From the libvirtd perspective in the source environment, it looks like we're attempting to migrate the domain to the same host since the destination connection is a local unix socket. 


Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. On the source node, create a socat connection that forwards all connections on a unix socket to a remote libvirtd instance.

Example.
socat unix-listen:local-destination-socket,reuseaddr,fork tcp:192.168.66.102:22222


2. Attempt to perform a live migration with the local unix socket 'local-destination-socket' as the destination. 

Example:
virsh migrate --copy-storage-all --tunnelled --p2p --live --xml domain.xml my-vm qemu+unix:///system?socket=local-destination-socket

Actual results:

error "Attempt to migrate guest to the same host"

Expected results:

successful migration

Comment 2 Peter Krempa 2020-02-25 13:55:30 UTC
In general I don't think we want to promote tunelled migration any more. There are many qemu features which now require separate connection. Please reopen this if you still think it's necessary with appropriate justification.