|
|
7ed5e3 |
From e12604349587b67b3b4c3d0b7b1779999460a93d Mon Sep 17 00:00:00 2001
|
|
|
7ed5e3 |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
7ed5e3 |
Date: Fri, 19 Jun 2020 13:43:47 +0100
|
|
|
7ed5e3 |
Subject: [PATCH] v2v: Disable readahead for VMware curl sources too
|
|
|
7ed5e3 |
(RHBZ#1848862).
|
|
|
7ed5e3 |
|
|
|
7ed5e3 |
This appears to be the cause of timeouts during the conversion step
|
|
|
7ed5e3 |
where VMware VCenter server's Tomcat HTTPS server stops responding to
|
|
|
7ed5e3 |
requests (or rather, responds only with 503 errors). The server later
|
|
|
7ed5e3 |
recovers and in fact because of the retry filter the conversion
|
|
|
7ed5e3 |
usually succeeds, but I found that we can avoid the problem by
|
|
|
7ed5e3 |
disabling readahead.
|
|
|
7ed5e3 |
|
|
|
7ed5e3 |
(cherry picked from commit 9f4940068022d4e7abdfea6617b73a2b206f19aa)
|
|
|
7ed5e3 |
---
|
|
|
7ed5e3 |
v2v/nbdkit_sources.ml | 8 ++++----
|
|
|
7ed5e3 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
7ed5e3 |
|
|
|
7ed5e3 |
diff --git a/v2v/nbdkit_sources.ml b/v2v/nbdkit_sources.ml
|
|
|
7ed5e3 |
index f5e91911..7c177e35 100644
|
|
|
7ed5e3 |
--- a/v2v/nbdkit_sources.ml
|
|
|
7ed5e3 |
+++ b/v2v/nbdkit_sources.ml
|
|
|
7ed5e3 |
@@ -99,12 +99,12 @@ let common_create ?bandwidth ?extra_debug ?extra_env password
|
|
|
7ed5e3 |
|
|
|
7ed5e3 |
(* Adding the readahead filter is always a win for our access
|
|
|
7ed5e3 |
* patterns. If it doesn't exist don't worry. However it
|
|
|
7ed5e3 |
- * breaks VMware servers (RHBZ#1832805).
|
|
|
7ed5e3 |
+ * breaks VMware servers (RHBZ#1832805, RHBZ#1848862).
|
|
|
7ed5e3 |
*)
|
|
|
7ed5e3 |
let cmd =
|
|
|
7ed5e3 |
- if plugin_name <> "vddk" then
|
|
|
7ed5e3 |
- Nbdkit.add_filter_if_available cmd "readahead"
|
|
|
7ed5e3 |
- else cmd in
|
|
|
7ed5e3 |
+ match plugin_name with
|
|
|
7ed5e3 |
+ | "vddk" | "curl" -> cmd
|
|
|
7ed5e3 |
+ | _ -> Nbdkit.add_filter_if_available cmd "readahead" in
|
|
|
7ed5e3 |
|
|
|
7ed5e3 |
(* Caching extents speeds up qemu-img, especially its consecutive
|
|
|
7ed5e3 |
* block_status requests with req_one=1.
|
|
|
7ed5e3 |
--
|
|
|
e21fe6 |
2.31.1
|
|
|
7ed5e3 |
|