Nir Soffer
2018-Jun-29 22:39 UTC
[Libguestfs] [PATCH] v2v: rhv-upload-plugin: Optimize only direct upload
The optimization to start the transfer on the local host makes sense only when using the rhv-direct=true option. When using a proxy, let the engine choose a host. --- v2v/rhv-upload-plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py index 8805e3552..1404ed1f5 100644 --- a/v2v/rhv-upload-plugin.py +++ b/v2v/rhv-upload-plugin.py @@ -143,8 +143,8 @@ def open(readonly): # Get a reference to the transfer service. transfers_service = system_service.image_transfers_service() - # Create a new image transfer. - host = find_host(connection) + # Create a new image transfer, using the local host is possible. + host = find_host(connection) if params['rhv_direct'] else None transfer = transfers_service.add( types.ImageTransfer( disk = types.Disk(id = disk.id), -- 2.17.1
Nir Soffer
2018-Jun-29 22:45 UTC
Re: [Libguestfs] [PATCH] v2v: rhv-upload-plugin: Optimize only direct upload
On Sat, Jun 30, 2018 at 1:39 AM Nir Soffer <nirsof@gmail.com> wrote:> The optimization to start the transfer on the local host makes sense > only when using the rhv-direct=true option. When using a proxy, let the > engine choose a host. >This avoids the issues with running on host from another dc[1] or host in maintenance mode[2] when not using rh-direct=true. So I think this worth a backport. [1] https://bugzilla.redhat.com/1596810 [2] https://bugzilla.redhat.com/1596851> --- > v2v/rhv-upload-plugin.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/v2v/rhv-upload-plugin.py b/v2v/rhv-upload-plugin.py > index 8805e3552..1404ed1f5 100644 > --- a/v2v/rhv-upload-plugin.py > +++ b/v2v/rhv-upload-plugin.py > @@ -143,8 +143,8 @@ def open(readonly): > # Get a reference to the transfer service. > transfers_service = system_service.image_transfers_service() > > - # Create a new image transfer. > - host = find_host(connection) > + # Create a new image transfer, using the local host is possible. > + host = find_host(connection) if params['rhv_direct'] else None > transfer = transfers_service.add( > types.ImageTransfer( > disk = types.Disk(id = disk.id), > -- > 2.17.1 >
Richard W.M. Jones
2018-Jun-30 09:53 UTC
Re: [Libguestfs] [PATCH] v2v: rhv-upload-plugin: Optimize only direct upload
On Sat, Jun 30, 2018 at 01:45:55AM +0300, Nir Soffer wrote:> On Sat, Jun 30, 2018 at 1:39 AM Nir Soffer <nirsof@gmail.com> wrote: > > > The optimization to start the transfer on the local host makes sense > > only when using the rhv-direct=true option. When using a proxy, let the > > engine choose a host. > >I have pushed this and the debugging patch.> This avoids the issues with running on host from another dc[1] or host in > maintenance mode[2] when not using rh-direct=true. So I think this worth > a backport. > > [1] https://bugzilla.redhat.com/1596810 > [2] https://bugzilla.redhat.com/1596851Backport means to RHEL 7? If there are backports needed to RHEL 7, add a comment to the existing bug referencing the upstream commit hashes (or if there is no suitable bug, start a new one), and set the bug's state back to ASSIGNED. We may need to ask for an exception in order to add anything to RHEL 7.6. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Maybe Matching Threads
- Re: [PATCH] v2v: rhv-upload-plugin: Optimize only direct upload
- Re: [PATCH v3] v2v: -o rhv-upload: Use Unix domain socket to access imageio (RHBZ#1588088).
- [PATCH v3] v2v: -o rhv-upload: Use Unix domain socket to access imageio (RHBZ#1588088).
- [PATCH 00/18] rvh-upload: Various fixes and cleanups
- [PATCH v2] v2v: rhv plugin - find suitable host