Dan Kenigsberg has submitted this change and it was merged.
Change subject: fencing: Introduce getHostLeaseStatus API
......................................................................
fencing: Introduce getHostLeaseStatus API
When fencing another host, we like to check if the other host has access
to storage, to prevent unwanted fencing of a lively host. This patch
adds an internal API for getting another host status on monitored
domains.
The new getHostLeaseStatus API returns a dictionary of monitored domains
UUIDs and host lease status for each domain, as reported by the cluster
lock. The caller will apply a fencing policy using this data to decide
if host is lively enough to prevent fencing.
Here is an example result:
{'04e604d3-71eb-41e0-a8a3-74404bdd9d75': 'live',
'09049dc6-2007-492e-afd9-3ec201775b2a': 'dead',
'20501ea5-cf6b-453a-b23d-a708c28cec1f': 'live',
'2b02c759-2e4a-4cf0-9b8e-37a6ec77f821': 'unavailable',
...
'fc348be8-18f4-42ff-8421-9043203e13a6': 'live'}
See clusterlock.py for the possible statuses and their meaning.
Change-Id: Iccd62e58a194aa0ceb0f5e2503b8ec7e4349971b
Bug-Url: https://bugzilla.redhat.com/1110172
Signed-off-by: Nir Soffer <[email protected]>
Reviewed-on: http://gerrit.ovirt.org/28873
Reviewed-by: Martin Peřina <[email protected]>
Tested-by: Martin Peřina <[email protected]>
Reviewed-by: Federico Simoncelli <[email protected]>
---
M tests/testrunner.py
M vdsm/storage/clusterlock.py
M vdsm/storage/domainMonitor.py
M vdsm/storage/hsm.py
M vdsm/storage/sd.py
5 files changed, 111 insertions(+), 2 deletions(-)
Approvals:
Martin Peřina: Verified; Looks good to me, but someone else must approve
Federico Simoncelli: Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/28873
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iccd62e58a194aa0ceb0f5e2503b8ec7e4349971b
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Piotr Kliczewski <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Yoav Kleinberger <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches