[Bugs] [Bug 1768719] New: Unnecessary messages when glusterd is not running

bugzilla at redhat.com bugzilla at redhat.com
Tue Nov 5 05:56:31 UTC 2019


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

            Bug ID: 1768719
           Summary: Unnecessary messages when glusterd is not running
           Product: GlusterFS
           Version: mainline
            Status: NEW
         Component: cli
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org
  Target Milestone: ---
    Classification: Community



Description of problem:
Executing a gluster cli command when glusterd is not running causes the
following messages to be displayed:


Traceback (most recent call last):
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 340, in
<module>
    main()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 41, in
main
    argsupgrade.upgrade()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/argsupgrade.py", line
85, in upgrade
    init_gsyncd_template_conf()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/argsupgrade.py", line
50, in init_gsyncd_template_conf
    fd = os.open(path, os.O_CREAT | os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/glusterd/geo-replication/gsyncd_template.conf'
Connection failed. Please check if gluster daemon is operational.



Version-Release number of selected component (if applicable):


How reproducible:

Consistently with the latest master source install (commit
3ab23415804502b1ba89360c55ac3e8143822a0b)

Steps to Reproduce:
1. Build and install glusterfs from the latest master
2. Make sure glusterd is not running (pkill glusterd)
3. Run a gluster command:

gluster v start vol1


Actual results:

[root at server glusterfs]# gluster v start vol1
Traceback (most recent call last):
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 340, in
<module>
    main()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 41, in
main
    argsupgrade.upgrade()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/argsupgrade.py", line
85, in upgrade
    init_gsyncd_template_conf()
  File "/usr/local/libexec/glusterfs/python/syncdaemon/argsupgrade.py", line
50, in init_gsyncd_template_conf
    fd = os.open(path, os.O_CREAT | os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory:
'/var/lib/glusterd/geo-replication/gsyncd_template.conf'
Connection failed. Please check if gluster daemon is operational.


Expected results:

Only the following message should be printed:
Connection failed. Please check if gluster daemon is operational.


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