From a2f1e774119c21d88075113c4e602d39f9079923 Mon Sep 17 00:00:00 2001 From: Pau Ruiz Safont Date: Wed, 12 Oct 2022 16:38:33 +0100 Subject: [PATCH] CA-364194: Allow creation of statefiles to time out Currently enabling HA can stall because the GFS2 calls when adding the HA statefile might stall indefinitely when there are connection issues Now xapi waits a minute before failing, signalling the user that something has gone awry Signed-off-by: Pau Ruiz Safont --- ocaml/xapi/static_vdis.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocaml/xapi/static_vdis.ml b/ocaml/xapi/static_vdis.ml index 3545c16f5b9..856f8b0cef3 100644 --- a/ocaml/xapi/static_vdis.ml +++ b/ocaml/xapi/static_vdis.ml @@ -36,7 +36,7 @@ let permanent_vdi_attach ~__context ~vdi ~reason = ) ) ; ignore - (Helpers.call_script !Xapi_globs.static_vdis + (Helpers.call_script ~timeout:60.0 !Xapi_globs.static_vdis ["add"; Db.VDI.get_uuid ~__context ~self:vdi; reason] ) ; (* VDI will be attached on next boot; attach it now too *)