[Bugs] [Bug 1535511] New: Gluster CLI shouldn't stop if log file couldn' t be opened

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 17 14:36:49 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1535511

            Bug ID: 1535511
           Summary: Gluster CLI shouldn't stop if log file couldn't be
                    opened
           Product: GlusterFS
           Version: mainline
         Component: cli
          Assignee: bugs at gluster.org
          Reporter: mscherer at redhat.com
                CC: bugs at gluster.org



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:

-- 
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