[Bugs] [Bug 1387564] New: [Eventing]: UUID is showing zeros in the event message for the peer probe operation.

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 21 09:26:31 UTC 2016


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

            Bug ID: 1387564
           Summary: [Eventing]: UUID is showing zeros in the event message
                    for the peer probe operation.
           Product: GlusterFS
           Version: 3.9
         Component: glusterd
          Keywords: Triaged
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: amukherj at redhat.com
                CC: bsrirama at redhat.com, bugs at gluster.org,
                    rhs-bugs at redhat.com, storage-qa-internal at redhat.com,
                    vbellur at redhat.com
        Depends On: 1386516
            Blocks: 1386172



+++ This bug was initially created as a clone of Bug #1386516 +++

+++ This bug was initially created as a clone of Bug #1386172 +++

Description of problem:
=======================
UUID is showing zeros in the event message for the peer probe operation.

{u'message': {u'host': u'NODE_IP', u'uuid':
u'00000000-0000-0000-0000-000000000000'}, u'event': u'PEER_CONNECT', u'ts':
1476787104, u'nodeid': u'50687898-88b3-4157-9f13-1c32266f83be'}

For complete event messages check the next comment 


Version-Release number of selected component (if applicable):
============================================================
glusterfs-3.8.4-2


How reproducible:
=================
Always


Steps to Reproduce:
===================
1. Have gluster events setup with two nodes
2. Do peer probe operation
3. Check the event message generated by the peer probe command

Actual results:
===============
UUID is showing zeros in the event message for the peer probe operation.



Expected results:
=================
It should show correct UUID in the event message.


Additional info:

--- Additional comment from Red Hat Bugzilla Rules Engine on 2016-10-18
06:46:51 EDT ---

This bug is automatically being proposed for the current release of Red Hat
Gluster Storage 3 under active development, by setting the release flag
'rhgs‑3.2.0' to '?'. 

If this bug should be proposed for a different release, please manually change
the proposed release flag.

--- Additional comment from Byreddy on 2016-10-18 06:53:53 EDT ---

Events messages for peer probe operation:
=========================================

{u'message': {u'host': u'10.70.41.165', u'uuid':
u'00000000-0000-0000-0000-000000000000'}, u'event': u'PEER_CONNECT', u'ts':
1476787104, u'nodeid': u'50687898-88b3-4157-9f13-1c32266f83be'}

======================================================================================================================

10.70.43.190 - - [18/Oct/2016 16:03:44] "POST /listen HTTP/1.1" 200 -
{u'message': {u'host': u'dhcp43-190.lab.eng.blr.redhat.com', u'uuid':
u'00000000-0000-0000-0000-000000000000'}, u'event': u'PEER_CONNECT', u'ts':
1476787104, u'nodeid': u'96a86504-3612-45db-8ba9-3c458881dcfe'}

======================================================================================================================

10.70.41.165 - - [18/Oct/2016 16:03:45] "POST /listen HTTP/1.1" 200 -
{u'message': {u'host': u'10.70.41.165'}, u'event': u'PEER_ATTACH', u'ts':
1476787105, u'nodeid': u'50687898-88b3-4157-9f13-1c32266f83be'}

======================================================================================================================

10.70.43.190 - - [18/Oct/2016 16:03:45] "POST /listen HTTP/1.1" 200 -

--- Additional comment from Atin Mukherjee on 2016-10-19 03:21:13 EDT ---

RCA:

When a new node is probed, on the first RPC_CLNT_CONNECT peerctx->uuid is set
to NULL as the same is yet to be populated. However the subesquent (dis)connect
events would be carrying the valid UUIDs.

The way to solve this issue is to conditionally populate UUIDs. If
EVENT_PEER_CONNECT has to be generated for the first RPC_CLNT_CONNECT which is
because of a peer probe trigger the event would only have hostname whereas for
the rest of the other cases the event will populate uuid along with hostname.

--- Additional comment from Worker Ant on 2016-10-19 03:27:39 EDT ---

REVIEW: http://review.gluster.org/15678 (glusterd: conditionally pass uuid for
EVENT_PEER_CONNECT) posted (#1) for review on master by Atin Mukherjee
(amukherj at redhat.com)

--- Additional comment from Worker Ant on 2016-10-19 03:46:30 EDT ---

REVIEW: http://review.gluster.org/15678 (glusterd: conditionally pass uuid for
EVENT_PEER_CONNECT) posted (#2) for review on master by Atin Mukherjee
(amukherj at redhat.com)

--- Additional comment from Atin Mukherjee on 2016-10-19 03:47:23 EDT ---

I got a suggestion in the patch saying let's not generate EVENT_PEER_CONNECT
for a peer probe trigger which sounds right to me.

--- Additional comment from Worker Ant on 2016-10-19 04:37:16 EDT ---

REVIEW: http://review.gluster.org/15678 (glusterd: conditionally pass uuid for
EVENT_PEER_CONNECT) posted (#3) for review on master by Atin Mukherjee
(amukherj at redhat.com)

--- Additional comment from Worker Ant on 2016-10-21 05:25:49 EDT ---

COMMIT: http://review.gluster.org/15678 committed in master by Atin Mukherjee
(amukherj at redhat.com) 
------
commit 9565222c3bb17d124e3d62ec0ab987ce45999047
Author: Atin Mukherjee <amukherj at redhat.com>
Date:   Wed Oct 19 12:53:35 2016 +0530

    glusterd: conditionally pass uuid for EVENT_PEER_CONNECT

    When a new node is probed, on the first RPC_CLNT_CONNECT peerctx->uuid is
set to
    NULL as the same is yet to be populated. However the subesquent
(dis)connect
    events would be carrying the valid UUIDs.

    Solution is not to generate EVENT_PEER_CONNECT on a peer probe trigger as
CLI is
    already going to take care of generating the same.

    Change-Id: I2f0de054ca09f12013a6afdd8ee158c0307796b9
    BUG: 1386516
    Signed-off-by: Atin Mukherjee <amukherj at redhat.com>
    Reviewed-on: http://review.gluster.org/15678
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Samikshan Bairagya <samikshan at gmail.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1386172
[Bug 1386172] [Eventing]: UUID is showing zeros in the event message for
the peer probe operation.
https://bugzilla.redhat.com/show_bug.cgi?id=1386516
[Bug 1386516] [Eventing]: UUID is showing zeros in the event message for
the peer probe operation.
-- 
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