Bug 1221544 - [Backup]: Unable to create a glusterfind session
Summary: [Backup]: Unable to create a glusterfind session
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterfind
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milind Changire
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks: qe_tracker_everglades 1225552
TreeView+ depends on / blocked
 
Reported: 2015-05-14 10:24 UTC by Sweta Anandpara
Modified: 2016-06-16 13:01 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.8rc2
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1224109 1225552 1226217 (view as bug list)
Environment:
Last Closed: 2016-06-16 13:01:11 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Sweta Anandpara 2015-05-14 10:24:47 UTC
Description of problem:
Passwordless ssh is not getting setup between the peers of a cluster

Version-Release number of selected component (if applicable):
glusterfs-3.7.0beta2-0.0.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Have a 2 node cluster
2. Create a 2*2 distribute replicate volume 'ozone', and start it
3. Create a glusterfind session using 'glusterfind create'

Actual results:
It fails with the error - Failed to copy public key to /var/lib/glusterd/glusterfind/.keys

Expected results:
Glusterfind session should get successfully created

Additional info:

[root@dhcp43-140 ~]# glusterfind create sess1 ozone
Failed to copy public key to /var/lib/glusterd/glusterfind/.keys: [Errno 2] No such file or directory: '/var/lib/glusterd/glusterfind/.keys/sess1_ozone_secret.pem.pub'
[root@dhcp43-140 ~]# 
[root@dhcp43-140 ~]# cd /var/log/glusterfs/glusterfind/
[root@dhcp43-140 glusterfind]#
[root@dhcp43-140 glusterfind]# cat sess1/ozone/cli.log 
[2015-05-14 20:16:41,990] INFO [main - 266:ssh_setup] - Ssh key generated /var/lib/glusterd/glusterfind/sess1/ozone/sess1_ozone_secret.pem
[2015-05-14 20:16:41,993] ERROR [utils - 152:fail] - Failed to copy public key to /var/lib/glusterd/glusterfind/.keys: [Errno 2] No such file or directory: '/var/lib/glusterd/glusterfind/.keys/sess1_ozone_secret.pem.pub'
[2015-05-14 20:18:40,827] INFO [main - 266:ssh_setup] - Ssh key generated /var/lib/glusterd/glusterfind/sess1/ozone/sess1_ozone_secret.pem
[2015-05-14 20:18:40,829] ERROR [utils - 152:fail] - Failed to copy public key to /var/lib/glusterd/glusterfind/.keys: [Errno 2] No such file or directory: '/var/lib/glusterd/glusterfind/.keys/sess1_ozone_secret.pem.pub'

[root@dhcp43-140 glusterfind]# rpm -qa | grep gluster
glusterfs-api-3.7.0beta2-0.0.el6.x86_64
python-gluster-3.7.0beta2-0.0.el6.x86_64
glusterfs-libs-3.7.0beta2-0.0.el6.x86_64
glusterfs-3.7.0beta2-0.0.el6.x86_64
glusterfs-fuse-3.7.0beta2-0.0.el6.x86_64
glusterfs-server-3.7.0beta2-0.0.el6.x86_64
glusterfs-extra-xlators-3.7.0beta2-0.0.el6.x86_64
glusterfs-client-xlators-3.7.0beta2-0.0.el6.x86_64
glusterfs-cli-3.7.0beta2-0.0.el6.x86_64
[root@dhcp43-140 glusterfind]#

Comment 1 Sweta Anandpara 2015-05-15 05:40:20 UTC
Sosreports copied to: http://rhsqe-repo.lab.eng.blr.redhat.com/sosreports/1221544/

Comment 2 Sweta Anandpara 2015-05-18 06:36:06 UTC
On the latest build - glusterfs-3.7.0-2.el6rhs.x86_64, the same command fails with the below error:

[root@dhcp43-140 ~]# glusterfind create sess vol1
Failed to add ssh keys to authorized_keys file: gsync peer_add_secret_pub command not found.

[root@dhcp43-140 ~]#

Comment 3 Anand Avati 2015-05-18 14:16:33 UTC
REVIEW: http://review.gluster.org/10807 (spec: Add missing file peer_add_secret_pub to the server RPM to support glusterfind independent of the geo-replication RPM) posted (#1) for review on master by Milind Changire (mchangir)

Comment 4 Anand Avati 2015-05-19 09:43:56 UTC
REVIEW: http://review.gluster.org/10807 (spec: move file peer_add_secret_pub to server RPM) posted (#2) for review on master by Milind Changire (mchangir)

Comment 5 Anand Avati 2015-05-27 13:28:08 UTC
REVIEW: http://review.gluster.org/10807 (spec: move file peer_add_secret_pub to server RPM) posted (#3) for review on master by Milind Changire (mchangir)

Comment 6 Anand Avati 2015-05-29 06:47:33 UTC
REVIEW: http://review.gluster.org/10807 (spec: move file peer_add_secret_pub to server RPM) posted (#5) for review on master by Milind Changire (mchangir)

Comment 7 Anand Avati 2015-05-29 09:13:24 UTC
REVIEW: http://review.gluster.org/10807 (spec: move file peer_add_secret_pub to server RPM) posted (#6) for review on master by Milind Changire (mchangir)

Comment 8 Anand Avati 2015-05-30 10:10:56 UTC
REVIEW: http://review.gluster.org/10807 (spec: move file peer_add_secret_pub to server RPM) posted (#7) for review on master by Niels de Vos (ndevos)

Comment 9 Anand Avati 2015-05-31 09:26:06 UTC
COMMIT: http://review.gluster.org/10807 committed in master by Venky Shankar (vshankar) 
------
commit ad7bd0865db4653e609bfc08cfc50225c87f3748
Author: Milind Changire <mchangir>
Date:   Mon May 18 19:32:48 2015 +0530

    spec: move file peer_add_secret_pub to server RPM
    
    peer_add_secret_pub was developed as part of geo-replication
    feature. glusterfind has a dependency on the peer_add_secret_pub
    for distributing SSH secrets. The dependency was manifest while
    QA testing glusterfind. peer_add_secret_pub is now moved to the
    server RPM to support glusterfind without creating a dependency
    on the geo-replication RPM
    
    Change-Id: I1345e13fd6d218eb722cd72ca1b9dd04adf4d316
    BUG: 1221544
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: http://review.gluster.org/10807
    Tested-by: NetBSD Build System <jenkins.org>
    Reviewed-by: Aravinda VK <avishwan>

Comment 10 Niels de Vos 2016-06-16 13:01:11 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


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