The gluster command cannot be invoked over ssh. ssh bal-2 '/opt/glusterfs/3.1.1qa5/sbin/gluster peer status' gf_log_init: failed to open logfile "/dev/stderr" (No such device or address) failed to open logfile /dev/stderr. exiting This makes things difficult for scripting using the gluster CLI.
PATCH: http://patches.gluster.com/patch/5674 in master (cli: fix issues with running command over ssh)
*** Bug 2004 has been marked as a duplicate of this bug. ***
Could be seen by having two machines, and trying to run a 'gluster' CLI on remote machine using ssh. Will fail in any version before 3.1.1qa6 with the error given in bug description. With release 3.1.1qa6 onwards it should be fixed. Adding a regression test case means, adding a gluster cli to run over ssh (preferably passwd-less).
Now gluster command over ssh works. root@bigbang:/home/raghu# ssh 192.168.1.50 gluster volume info root.1.50's password: Volume Name: mirror Type: Replicate Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: 192.168.1.50:/export/mirror Brick2: 192.168.1.211:/export/mirror Options Reconfigured: monitor.xtime-marker: on