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

High: Xen: retry domain lookup in repeating monitor and stop #314

Merged
merged 1 commit into from
Oct 2, 2013

Conversation

dmuhamedagic
Copy link
Contributor

If the guest is rebooting, it may completely disappear from the
list of defined guests, thus xm/xen-list would return with not
running. Apparently, this period lasts only for a second or two.
It is easily reproducible by rebooting the guest.

The effect is that a guest can be started on two nodes in
parallel or even twice on the same node thus resulting in guest's
filesystems corrupted.

In both stop and repeating monitor actions, if we encounter no
domain (OCF_NOT_RUNNING), we keep trying for the next 5 seconds.

The impact of this patch is that when stopping a non-existent
domain or unexpected disappearance of a running domain there will
be an extra 5 second delay.

This should be repaired within the xen domain.

If the guest is rebooting, it may completely disappear from the
list of defined guests, thus xm/xen-list would return with not
running. Apparently, this period lasts only for a second or two.
It is easily reproducible by rebooting the guest.

The effect is that a guest can be started on two nodes in
parallel or even twice on the same node thus resulting in guest's
filesystems corrupted.

In both stop and repeating monitor actions, if we encounter no
domain (OCF_NOT_RUNNING), we keep trying for the next 5 seconds.

The impact of this patch is that when stopping a non-existent
domain or unexpected disappearance of a running domain there will
be an extra 5 second delay.

This should be repaired within the xen domain.
dmuhamedagic added a commit that referenced this pull request Oct 2, 2013
High: Xen: retry domain lookup in repeating monitor and stop
@dmuhamedagic dmuhamedagic merged commit 924bbc5 into ClusterLabs:master Oct 2, 2013
@dmuhamedagic dmuhamedagic deleted the xensleep branch October 2, 2013 18:03
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.

None yet

1 participant