Change in ovirt-engine[master]: core:Power Management: restart operatio..(#865385)

emesika at redhat.com emesika at redhat.com
Wed Dec 5 19:15:01 UTC 2012


Eli Mesika has submitted this change and it was merged.

Change subject: core:Power Management: restart operatio..(#865385)
......................................................................


core:Power Management: restart operatio..(#865385)

core:Power Management: restart operation fails occasionally

Currently we are performing the following in the Restart command
1) send Stop command to the fence agent
2) wait for 'off' status by sampling the agent status command
3) send Start command to the fence agent
4) wait for 'on' status by sampling the agent status command

There are some cases in which the Start command can fail but the engine
will still try to get the 'on' status and give up after the configured
retries. The reason is that the Start & Stop command are async and we
only get success for the fence script invocation.
In the case that the Agent & Host uses the same power supply the Start
may fail, therefor we had decided that in any case that we fail to Start
the Host after the configurable retries, we will send additional Start
command to cover such a case.

Change-Id: I1e6a515fb246d86778d359f26ce26eae8e52ebc5
Signed-off-by: Eli Mesika <emesika at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/FenceVdsBaseCommand.java
1 file changed, 45 insertions(+), 20 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/8620
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1e6a515fb246d86778d359f26ce26eae8e52ebc5
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list