Skip to content

Commit

Permalink
CA-364194: Allow creation of statefiles to time out
Browse files Browse the repository at this point in the history
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 <pau.safont@citrix.com>
  • Loading branch information
psafont committed Oct 12, 2022
1 parent b58b772 commit a2f1e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocaml/xapi/static_vdis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 *)
Expand Down

0 comments on commit a2f1e77

Please sign in to comment.