Bug 1110172

Summary: [RFE]API to check if a host has renew its lease
Product: Red Hat Enterprise Virtualization Manager Reporter: Sean Cohen <scohen>
Component: RFEsAssignee: Nir Soffer <nsoffer>
Status: CLOSED ERRATA QA Contact: sefi litmanovich <slitmano>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: amureini, bazulay, gklein, iheim, juwu, lpeer, nsoffer, rbalakri, scohen, sherold, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.5.0Flags: scohen: needinfo+
scohen: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: v4.16.2 Doc Type: Enhancement
Doc Text:
Previously, during fencing, a host cannot be accessed through the network and administrators could not check if the host was working or not. With this update, the host can be checked using the Sanlock lease information. Now, hosts can be checked even during fencing.
Story Points: ---
Clone Of:
: 1119922 (view as bug list) Environment:
Last Closed: 2015-02-11 18:03:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1058022    
Bug Blocks: 1110176, 1119922, 1142923, 1156165    

Description Sean Cohen 2014-06-17 07:49:34 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Allon Mureinik 2014-06-17 07:56:31 UTC
This is required as part of the fencing improvements.
Need to coordinate with the infra team on what would serve their needs better, but there are two options here (run from the fencing proxy):

1. Change fenceNode's signature and add a parameter requiredStorages={}, so that the fencing will only happen if the node is not renewing its lease on the given domains.

2. Add a new API call doesNodeRenewLease(nodeDetails, storageDomains) to return boolean if the lease(s) is(are) being maintained.

Comment 2 Allon Mureinik 2014-06-17 15:32:30 UTC
Nir, please check if ClusterLock.hasHostId does the trick for us.

Comment 6 sefi litmanovich 2014-09-22 08:34:32 UTC
Verified with rhevm-3.5.0-0.12.beta.el6ev.noarch, vdsm-4.16.3-3.el7.beta.x86_64.

Comment 7 Julie 2015-02-02 01:49:57 UTC
If this bug requires doc text for errata release, please provide draft text in the doc text field in the following format:

Cause:
Consequence:
Fix:
Result:

The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Comment 9 errata-xmlrpc 2015-02-11 18:03:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0158.html