[Bugs] [Bug 1207029] New: BitRot :- If peer in cluster doesn't have brick then its should not start bitd on that node and should not create partial volume file

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 30 05:53:52 UTC 2015


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

            Bug ID: 1207029
           Summary: BitRot :- If peer in cluster doesn't have brick then
                    its should not start bitd on that node and should not
                    create partial volume file
           Product: GlusterFS
           Version: mainline
         Component: bitrot
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: racpatel at redhat.com



Description of problem:
=======================
when peer doesn't have brick for volume and Admin enables BitRot for that
volume, it starts bitd on that node and also generates volume file which is not
complete


Version-Release number of selected component (if applicable):
=============================================================
0.803.gitf64666f.el6.x86_64

How reproducible:
=================
always

Steps to Reproduce:
===================
1. create a volume and make sure that one of the peer in cluster doesn't have
any bricks on it
2. Enable BitRot for that volume.
3. check peer where brick is not present


[root at rhs-client38 ~]# tail -f /var/log/glusterfs/bitd.log 
[2015-03-26 09:09:06.033443] I [MSGID: 100030] [glusterfsd.c:2288:main]
0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.7dev
(args: /usr/sbin/glusterfs -s localhost --volfile-id gluster/bitd -p
/var/lib/glusterd/bitd/run/bitd.pid -l /var/log/glusterfs/bitd.log -S
/var/run/gluster/38ca86c29620f999da1ff58a74366ae5.socket)
[2015-03-26 09:09:06.045709] I [event-epoll.c:629:event_dispatch_epoll_worker]
0-epoll: Started thread with index 1
[2015-03-26 09:09:06.603114] E [graph.y:365:graphyyerror] 0-parser: syntax
error: line 3 (volume 'bit-rot'): "end-volume"
allowed tokens are 'volume', 'type', 'subvolumes', 'option', 'end-volume'()
[2015-03-26 09:09:06.603198] E [MSGID: 100026]
[glusterfsd.c:2142:glusterfs_process_volfp] 0-: failed to construct the graph
[2015-03-26 09:09:06.603381] W [glusterfsd.c:1212:cleanup_and_exit] (--> 0-:
received signum (0), shutting down


[root at rhs-client38 ~]# cat /var/lib/glusterd/bitd/bitd-server.vol
volume bit-rot
    type features/bit-rot
end-volume


[root at rhs-client38 ~]# ps auxww | grep bitd
root     20690  0.0  0.0 103252   864 pts/2    S+   14:59   0:00 grep bitd

Actual results:
===============
bitd was started and partially created vol file is present

Expected results:
================
It should not start bitd and should not create vol file

Additional info:
================

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list