Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1235292

Summary: [geo-rep]: set_geo_rep_pem_keys.sh needs modification in gluster path to support mount broker functionality
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: geo-replicationAssignee: Kotresh HR <khiremat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, chrisw, csaba, gluster-bugs, khiremat, nlevinki, rhinduja, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1235225
: 1235297 (view as bug list) Environment:
Last Closed: 2016-06-16 13:16:31 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: 1235225    
Bug Blocks: 1235297    

Description Kotresh HR 2015-06-24 13:23:53 UTC
+++ This bug was initially created as a clone of Bug #1235225 +++

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



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



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

Always

Comment 1 Anand Avati 2015-06-24 13:25:57 UTC
REVIEW: http://review.gluster.org/11381 (geo-rep: Fix glusterd working directory) posted (#1) for review on master by Kotresh HR (khiremat)

Comment 2 Anand Avati 2015-06-25 06:55:37 UTC
COMMIT: http://review.gluster.org/11381 committed in master by Venky Shankar (vshankar) 
------
commit 9df8366174d57e3cd948d19efa9cdbadecfc012d
Author: Kotresh HR <khiremat>
Date:   Wed Jun 24 18:30:18 2015 +0530

    geo-rep: Fix glusterd working directory
    
    Mountbroker setup in geo-replication requires
    the script 'set_geo_rep_pem_keys.sh to be
    run manually out of gluster context. Hence
    the ${GLUSTERD_WORKDIR} is never set. So
    getting glusterd working dir using 'gluster
    system:: getwd'.
    
    Change-Id: Ic2fe85e685016b383e38af0ea43c3f0628c16a32
    BUG: 1235292
    Signed-off-by: Kotresh HR <khiremat>
    Reviewed-on: http://review.gluster.org/11381
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: Aravinda VK <avishwan>

Comment 3 Nagaprasad Sathyanarayana 2015-10-25 14:42:22 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 4 Niels de Vos 2016-06-16 13:16:31 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user