Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-364194: Allow creation of statefiles to time out #4820

Merged
merged 3 commits into from
Oct 26, 2022

Conversation

psafont
Copy link
Member

@psafont psafont commented Oct 14, 2022

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

Unfortunately using Python 2.7 blocks us from having a timeout in static-vdis, added a comment so it has more chances of getting added when porting to python 3.5+

Xapi helpers now will also print when a script is called without a callback so it's easier to spot similar situations

I've also converted this infrastructure to mtime, but it got big and it's better that this goes in independently

ocaml/xapi/helpers.ml Outdated Show resolved Hide resolved
Because python 2.7 is being used the call to the standard library
doesn't support a timeout parameter. In the future this will be useful
to protect the script from hanging indefinitely when trying to attach
network volumes

Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
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>
@psafont psafont merged commit 8afaa0a into xapi-project:master Oct 26, 2022
@psafont psafont deleted the private/paus/unwedge branch October 26, 2022 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants