Bug 592624
Summary: | nfsclient exports doens't work. | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Dyna <dyn_ares> | ||||
Component: | rgmanager | Assignee: | Lon Hohberger <lhh> | ||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 5.4 | CC: | cluster-maint, djansa, edamato, mjuricek | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rgmanager-2.0.52-16.el5 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 691814 (view as bug list) | Environment: | |||||
Last Closed: | 2011-07-21 10:47:02 UTC | Type: | --- | ||||
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: | 691814 | ||||||
Attachments: |
|
Description
Dyna
2010-05-15 19:18:00 UTC
Created attachment 488253 [details]
Fixes problem #1.
Problem #2 is fixed by the fix for bug 592613 POSTed upstream: https://github.com/ClusterLabs/resource-agents/pull/2 The patch in this bugzilla trims the trailing slash prior to dealing with exports. This prevents the half of the problem from occurring. Here is a successful test that would fail without the patch: [root@rhel5-1 ~]# OCF_RESKEY_name=a OCF_RESKEY_path=/tmp/ OCF_RESKEY_target="ayanami" /usr/share/cluster/nfsclient.sh start <info> Adding export: ayanami:/tmp [root@rhel5-1 ~]# echo $? 0 [root@rhel5-1 ~]# OCF_RESKEY_name=a OCF_RESKEY_path=/tmp/ OCF_RESKEY_target="ayanami" /usr/share/cluster/nfsclient.sh status [root@rhel5-1 ~]# echo $? 0 [root@rhel5-1 ~]# OCF_RESKEY_name=a OCF_RESKEY_path=/tmp/ OCF_RESKEY_target="ayanami" /usr/share/cluster/nfsclient.sh stop <info> Removing export: ayanami:/tmp [root@rhel5-1 ~]# echo $? 0 Verified in version rgmanager-2.0.52-19.el5, kernel 2.6.18-266.el5 [root@a3 ~]# rpm -q rgmanager rgmanager-2.0.52-19.el5 [root@a3 ~]# export OCF_RESKEY_path=/tmp/ [root@a3 ~]# export OCF_RESKEY_target=a2 [root@a3 ~]# export OCF_RESKEY_name=a [root@a3 ~]# /usr/share/cluster/nfsclient.sh start ; echo $? <info> Adding export: a2:/tmp 0 [root@a3 ~]# /usr/share/cluster/nfsclient.sh status ; echo $? 0 [root@a3 ~]# /usr/share/cluster/nfsclient.sh stop ; echo $? <info> Removing export: a2:/tmp 0 Reproduced error in older version: [root@a1 opt]# rpm -q rgmanager rgmanager-2.0.52-13.el5 [root@a1 opt]# export OCF_RESKEY_path=/tmp/ [root@a1 opt]# export OCF_RESKEY_target=a2 [root@a1 opt]# export OCF_RESKEY_name=a [root@a1 opt]# /usr/share/cluster/nfsclient.sh start ; echo $? <info> Adding export: a2:/tmp/ 0 [root@a1 opt]# /usr/share/cluster/nfsclient.sh status ; echo $? <err> nfsclient:a is missing! 1 [root@a1 opt]# /usr/share/cluster/nfsclient.sh stop ; echo $? <info> Removing export: a2:/tmp/ 0 Problem #2 with clufindhostname wasn't reproduced. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-1000.html |