Bug 1235225

Summary: [geo-rep]: set_geo_rep_pem_keys.sh needs modification in gluster path to support mount broker functionality
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Rahul Hinduja <rhinduja>
Component: geo-replicationAssignee: Kotresh HR <khiremat>
Status: CLOSED ERRATA QA Contact: Rahul Hinduja <rhinduja>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: aavati, annair, csaba, khiremat, nlevinki, nsathyan
Target Milestone: ---Keywords: Regression
Target Release: RHGS 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.1-6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235292 (view as bug list) Environment:
Last Closed: 2015-07-29 05:07:19 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: 1202842, 1235292, 1235297    

Description Rahul Hinduja 2015-06-24 10:54:42 UTC
Description of problem:
=======================

The script "set_geo_rep_pem_keys.sh" which does the  distribution of the keys for non-root user to all slave nodes, fails as:

[root@georep4 scripts]# /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh redhataccount master slave
cp: cannot create regular file `/geo-replication/': Is a directory
Source file does not exist in /var/lib/glusterd
Command executed successfully.
[root@georep4 scripts]# 

The path in the script should be /var/lib/glusterd

This is happening every release when we branch from Upstream. Upstream the gluster path is resolved automatically, but in downstream this should be handled gracefully.


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

glusterfs-api-3.7.1-4.el6rhs.x86_64


How reproducible:
=================

Always

Comment 4 Kotresh HR 2015-06-24 13:38:39 UTC
Upstream Patch (Master):
http://review.gluster.org/#/c/11381/

Upstream Patch (3.7):
http://review.gluster.org/#/c/11382/

Comment 6 Kotresh HR 2015-06-25 15:40:46 UTC
Downstream Patch:
https://code.engineering.redhat.com/gerrit/#/c/51602/

Comment 7 Rahul Hinduja 2015-07-04 12:27:59 UTC
Verified with the build: glusterfs-3.7.1-7.el6rhs.x86_64

[root@georep5 scripts]# /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh geoaccount master slave1
Successfully copied file.
Command executed successfully.
[root@georep5 scripts]# /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh geoaccount master slave2
Successfully copied file.
Command executed successfully.
[root@georep5 scripts]# 


[root@georep5 scripts]# cat /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh | grep getwd
    GLUSTERD_WORKDIR=$(gluster system:: getwd)
[root@georep5 scripts]# gluster system:: getwd
/var/lib/glusterd
[root@georep5 scripts]# 


Moving the bug to verified state

Comment 8 errata-xmlrpc 2015-07-29 05:07:19 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-1495.html