Description of problem: When trying to test gluster cli or just see the help, I can't run it without being root, because it try to open /var/log/gluster.gluster.log This is quite annoying (since I can't read the online help), and surprising. A cli tool usually do not write log or anything. Version-Release number of selected component (if applicable): glusterfs-3.12.5-1.fc27.x86_64 How reproducible: each time Steps to Reproduce: # su - nobody -s /bin/bash -c 'gluster' ERROR: failed to create logfile "/var/log/glusterfs/cli.log" (Permission denied) ERROR: failed to open logfile /var/log/glusterfs/cli.log 1. gluster (as non root) 2. 3. Actual results: ERROR: failed to create logfile "/var/log/glusterfs/cli.log" (Permission denied) ERROR: failed to open logfile /var/log/glusterfs/cli.log Expected results: Something else, like a more gracious message. Maybe some help. Additional info:
This is possibly related to the geo-replication issue reported on the mailing list? I've encountered it too. https://lists.gluster.org/pipermail/gluster-users/2018-July/034389.html
REVIEW: https://review.gluster.org/22865 (cli: don't fail if logging initialize fails) posted (#1) for review on master by Amar Tumballi
REVIEW: https://review.gluster.org/22865 (cli: don't fail if logging initialize fails) merged (#2) on master by Atin Mukherjee