Replace "ssh foo gluster" with "gluster --remote-host=foo"
With the current lack of authentication, there is no security improvement with passwordless ssh replaced. However, it is more convenient to install UFO if you do not have to generate ssh keys every time. There is a downside the gluster-server RPM becomes required. BUG: 880050 Change-Id: I04f4ad666ac96713055723bd432131a4db325b4f Signed-off-by: Pete Zaitcev <zaitcev@redhat.com> Reviewed-on: http://review.gluster.org/4231 Reviewed-by: Peter Portante <pportant@redhat.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Anand Avati <avati@redhat.com>
This commit is contained in:
parent
01cd59506e
commit
3d83e6c42e
@ -101,7 +101,7 @@ def unmount(full_mount_path):
|
||||
|
||||
def _get_export_list():
|
||||
if REMOTE_CLUSTER:
|
||||
cmnd = 'ssh %s gluster volume info' % MOUNT_IP
|
||||
cmnd = 'gluster --remote-host=%s volume info' % MOUNT_IP
|
||||
else:
|
||||
cmnd = 'gluster volume info'
|
||||
|
||||
@ -109,10 +109,10 @@ def _get_export_list():
|
||||
|
||||
if os.system(cmnd + ' >> /dev/null'):
|
||||
if REMOTE_CLUSTER:
|
||||
logging.error('Getting volume info failed %s, make sure to have '\
|
||||
'passwordless ssh on %s', NAME, MOUNT_IP)
|
||||
logging.error('Getting volume info failed for %s, make sure '\
|
||||
'gluster --remote-host=%s works', NAME, MOUNT_IP)
|
||||
else:
|
||||
logging.error('Getting volume failed %s', NAME)
|
||||
logging.error('Getting volume info failed for %s', NAME)
|
||||
else:
|
||||
fp = os.popen(cmnd)
|
||||
while True:
|
||||
|
Loading…
x
Reference in New Issue
Block a user