[Bugs] [Bug 1206547] New: [Backup]: Glusterfind create session unable to correctly set passwordless ssh to its peer(s)
bugzilla at redhat.com
bugzilla at redhat.com
Fri Mar 27 12:02:07 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1206547
Bug ID: 1206547
Summary: [Backup]: Glusterfind create session unable to
correctly set passwordless ssh to its peer(s)
Product: GlusterFS
Version: mainline
Component: unclassified
Assignee: bugs at gluster.org
Reporter: sanandpa at redhat.com
CC: bugs at gluster.org, gluster-bugs at redhat.com
Description of problem:
Glusterfind create creates a session, and distributes the public key to all its
peers. That is used in the subsequent 'glusterfind pre' command to find the
modified files at brick level of every node.BUT the 'glusterfind pre' command
prompts the user for the password of peer, which it is otherwise expected to
take care of, internally.
Version-Release number of selected component (if applicable):
3.7 Upstream build glusterfs-server-3.7dev-0.777.git2308c07.el6.x86_64
How reproducible: Always
Steps to Reproduce:
1. Have a 2 node cluster, and a 2*2 volume 'nash'
2. Execute the glusterfind create command to create a session for the volume
'nash'
3. Execute the glusterfind pre command to start the brick crawl to get the
changed list of files
Actual results:
Step 3 prompts the user for password of peer. And it does this multiple times,
even after giving the correct password.
Expected results:
Step 3 should not prompt the user for password. Step 2 should have taken care
of setting up password less ssh from node it is run, to all its peers.
Additional info:
Was not able to reproduce this in my older setup, after doing a ssh-copyid
manually. Created a brand new setup and re did the steps to recreate the issue.
The setup is in the same state if you would want to have a look.
Node1: 10.70.43.48
Node2: 10.70.42.147
Authentication: root/redhat
I do see the public key copied to /root/.ssh/authorised_keys in the peer.
Pasted below are the detailed logs..
[root at dhcp43-48 glusterd]# gluster v i
Volume Name: nash
Type: Distributed-Replicate
Volume ID: cd66179e-6fda-49cf-b40f-be930bc01f6f
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.43.48:/rhs/brick1/dd
Brick2: 10.70.42.147:/rhs/brick1/dd
Brick3: 10.70.43.48:/rhs/brick2/dd
Brick4: 10.70.42.147:/rhs/brick2/dd
Options Reconfigured:
changelog.changelog: on
storage.build-pgfid: on
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]# ls
geo-replication glusterd.info glusterfind glustershd groups hooks nfs
options peers quotad snaps vols
[root at dhcp43-48 glusterd]# ls glusterfind/
[root at dhcp43-48 glusterd]# glusterfind create sess nash
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]# ls
geo-replication glusterfind glusterfind.secret.pem.pub groups
nfs peers snaps
glusterd.info glusterfind.secret.pem glustershd hooks
options quotad vols
[root at dhcp43-48 glusterd]# cat glusterfind.secret.pem.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAvniql8bDymri+Wxr2BI41zqQ1sULDSewGWIR3mNcYEpHTU6eMhgG3csRUZx66LZwjQ/irDHPljltog6CNiPbqoqP0fty23AUBcLUVluinl6q3SCVQvqv1DXZuEG3aNBsJUoRjL9CEGak/aE0G7tvAZBOjOCWLXZIxoYmOsaBszxJdX4ei2COhHlouEch2pQMx3DKLKv5t8gFhmAc4SLI5AytiVsODyCqg9oGinjBEKyPgvDnympmT5lxjpo6P9ww0UqFbECNmYe4a3/XHY5Dp/8wfJH9Vf74wM3pxJ62TUOxqTAkRQmuxNnf3HcZCLaPlKCar8NuW0L0H2AQ+5UR6w==
root at dhcp43-48.lab.eng.blr.redhat.com
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]# glusterfind pre sess nash /root/out.txt
10.70.43.48 - Change detection failed
10.70.43.48 - Change detection failed
The authenticity of host '10.70.42.147 (10.70.42.147)' can't be established.
RSA key fingerprint is 8b:74:e8:f6:9e:55:9b:76:d0:78:28:08:b7:24:97:26.
Are you sure you want to continue connecting (yes/no)? The authenticity of host
'10.70.42.147 (10.70.42.147)' can't be established.
RSA key fingerprint is 8b:74:e8:f6:9e:55:9b:76:d0:78:28:08:b7:24:97:26.
Are you sure you want to continue connecting (yes/no)? yes
Please type 'yes' or 'no': yes
root at 10.70.42.147's password: Please type 'yes' or 'no':
root at 10.70.42.147's password:
Please type 'yes' or 'no':
root at 10.70.42.147's password:
Please type 'yes' or 'no':
10.70.42.147 - Change detection failed
10.70.42.147 - Change detection failed
[root at dhcp43-48 glusterd]# cat glusterfind.secret.pem.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEAvniql8bDymri+Wxr2BI41zqQ1sULDSewGWIR3mNcYEpHTU6eMhgG3csRUZx66LZwjQ/irDHPljltog6CNiPbqoqP0fty23AUBcLUVluinl6q3SCVQvqv1DXZuEG3aNBsJUoRjL9CEGak/aE0G7tvAZBOjOCWLXZIxoYmOsaBszxJdX4ei2COhHlouEch2pQMx3DKLKv5t8gFhmAc4SLI5AytiVsODyCqg9oGinjBEKyPgvDnympmT5lxjpo6P9ww0UqFbECNmYe4a3/XHY5Dp/8wfJH9Vf74wM3pxJ62TUOxqTAkRQmuxNnf3HcZCLaPlKCar8NuW0L0H2AQ+5UR6w==
root at dhcp43-48.lab.eng.blr.redhat.com
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]# glusterfind pre sess nash /root/out.txt
--change-detector=brickfind
root at 10.70.42.147's password: root at 10.70.42.147's password:
root at 10.70.42.147's password:
root at 10.70.42.147's password:
root at 10.70.42.147's password:
root at 10.70.42.147's password: root at 10.70.42.147's password:
root at 10.70.42.147's password:
Generated output file /root/out.txt
[root at dhcp43-48 glusterd]# cat /root/out.txt
[root at dhcp43-48 glusterd]# ls -l /root/out.txt
-rw-r--r--. 1 root root 0 Mar 27 22:48 /root/out.txt
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]#
[root at dhcp43-48 glusterd]# ssh 10.70.42.147
root at 10.70.42.147's password:
[root at dhcp43-48 glusterd]#
--
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