Bug 1235225 - [geo-rep]: set_geo_rep_pem_keys.sh needs modification in gluster path to support mount broker functionality
Summary: [geo-rep]: set_geo_rep_pem_keys.sh needs modification in gluster path to supp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: geo-replication
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: RHGS 3.1.0
Assignee: Kotresh HR
QA Contact: Rahul Hinduja
URL:
Whiteboard:
Depends On:
Blocks: 1202842 1235292 1235297
TreeView+ depends on / blocked
 
Reported: 2015-06-24 10:54 UTC by Rahul Hinduja
Modified: 2015-07-29 05:07 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.7.1-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1235292 (view as bug list)
Environment:
Last Closed: 2015-07-29 05:07:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 0 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 08:26:26 UTC

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


Note You need to log in before you can comment on or make changes to this bug.