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
Upstream Patch (Master): http://review.gluster.org/#/c/11381/ Upstream Patch (3.7): http://review.gluster.org/#/c/11382/
Downstream Patch: https://code.engineering.redhat.com/gerrit/#/c/51602/
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
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