[Bugs] [Bug 1194596] New: [geo-rep]: In a mountbroker setup, set_geo_rep_pem_keys.sh fails to copy keys to its slave peers.

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 20 10:20:58 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1194596

            Bug ID: 1194596
           Summary: [geo-rep]: In a mountbroker setup,
                    set_geo_rep_pem_keys.sh fails to copy keys to its
                    slave peers.
           Product: GlusterFS
           Version: mainline
         Component: geo-replication
          Assignee: bugs at gluster.org
          Reporter: avishwan at redhat.com
                CC: aavati at redhat.com, bugs at gluster.org, csaba at redhat.com,
                    gluster-bugs at redhat.com, nlevinki at redhat.com,
                    rhs-bugs at redhat.com, sanandpa at redhat.com,
                    storage-qa-internal at redhat.com
        Depends On: 1194574



+++ This bug was initially created as a clone of Bug #1194574 +++

Description of problem:

While setting up a geo-rep mountbroker setup, a shell script
(set_geo_rep_pem_keys.sh) is run on one of the slave nodes, which copies the
keys to other slave nodes in the cluster. That errors out as it is not able to
recognize the global variable $GLUSTERD_WORKING_DIR. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create a mountbroker setup with the following steps. Create a group
(groupadd <groupname) and a user (useradd <username> -g <groupname>) in each of
the slave nodes.
e.g., groupadd geogroup
      useradd geoacc -g geogroup
2. Create a directory on all the slave nodes, owned by the root with the
permissions 0711. 
e.g., mkdir /var/mountbroker-root
      chmod 711 /var/mountbroker-root
3. Add the following options to the glusterd volfile present at
/etc/glusterfs/glusterd.vol
    option mountbroker-root /var/mountbroker-root
    option mountbroker-geo-replication.geoaccount <slavevolume>
    option geo-replication-log-group geogroup
    option rpc-auth-allow-insecure on
4. Restart glusterd on all the slave nodes
e.g., service glusterd restart
5. Setup a password-less ssh from the masternode to the non-root user on one of
the slave node. 
e.g., ssh-keygen
      ssh-copy-id geoacc@<slavenode>
6. Create a geo-rep account from the master to the non-root useraccount on the
slave
e.g., gluster volume geo-rep <mastervolume> geoacc@<slavenode>::<slavevolume>
create push-pem
7. In the slavenode which is used to create relationship, run
/usr/libexec/glusterfs/set_geo_rep_pem_keys.sh as root, with username,
mastervolume and slavevolume as arguments.
e.g., /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh geoacc master slave
8. Start the geo-rep session
e.g.,   gluster volume geo-rep <mastervolume> geoacc@<slavenode>::<slavevolume>
start


Actual results:

At step7, it fails with the below error: 
[root at dhcp42-130 ~]#  /usr/libexec/glusterfs/set_geo_rep_pem_keys.sh geoacc
master slave
cp: cannot create regular file `/geo-replication/': Is a directory
Successfully copied file.
Command executed successfully.
[root at dhcp42-130 ~]#

This seems to be regression. It used to work on an earlier build, as per
Shilpa.

Expected results:
The command should have passed (if it would have correctly resolved
gluster_working_directory) and the following step8 would have resulted in
success

Additional info:


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1194574
[Bug 1194574] [geo-rep]: In a mountbroker setup, set_geo_rep_pem_keys.sh
fails to copy keys to its slave peers.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list