Bug 815330
Summary: | nlm: server reboot gives lock to second application | |||
---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Saurabh <saujain> | |
Component: | nfs | Assignee: | Rajesh <rajesh> | |
Status: | CLOSED NOTABUG | QA Contact: | ||
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | pre-release | CC: | gluster-bugs, mzywusko, rajesh, vagarwal, vbellur | |
Target Milestone: | --- | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 852570 (view as bug list) | Environment: | ||
Last Closed: | 2013-04-15 07:39:48 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 852570 |
Description
Saurabh
2012-04-23 11:50:55 UTC
sosreport are placed at this place 10.16.156.3:/opt/qa/sosreport/bug815330 10.16.156.3:/opt is nfs(kernel) mountable this happens only if the two systems give the same "caller name" in the lock request to the server. E.g, Mostly, the RHS/RHEL systems give the caller name as `hostname` or "localhost.localdomain". In the latter case, this behaviour is observed, while in a properly configured environment wherein clients send their proper hostnames as caller_name, this works fine. If in doubt, one can always put this line: diff --git a/xlators/nfs/server/src/nlm4.c b/xlators/nfs/server/src/nlm4.c index 595738b..ee1ae80 100644 --- a/xlators/nfs/server/src/nlm4.c +++ b/xlators/nfs/server/src/nlm4.c @@ -1438,6 +1438,7 @@ nlm4svc_lock_common (rpcsvc_request_t *req, int mon) nlm4_volume_started_check (nfs3, vol, ret, rpcerr); ret = nlm_add_nlmclnt (cs->args.nlm4_lockargs.alock.caller_name); + gf_log ("debuggy", GF_LOG_CRITICAL, "lock requestor: %s", cs->args.nlm4_lockargs.alock.caller_name); ret = nfs3_fh_resolve_and_resume (cs, &fh, NULL, nlm4_lock_resume); and confirm the behaviour(and the caller names sent by the clients). |