Bug 1794386

Summary: quotad_serialize_reply - Failed to encode message
Product: [Community] GlusterFS Reporter: joao.bauto
Component: quotaAssignee: hari gowtham <hgowtham>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7CC: bugs, pasik, sunkumar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-12 12:57:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
quotad log none

Description joao.bauto 2020-01-23 13:31:53 UTC
Created attachment 1654847 [details]
quotad log

Description of problem:
When using quotas, the quota alerts sent from glustereventsd trigger an error, failing to send the event message to the webhook. We currently have 43 quotas and only one event is received by the webhook. The event is an alert of soft limit being crossed (QUOTA_CROSSED_SOFT_LIMIT)

The webhook used to test is the same as https://docs.gluster.org/en/latest/Administrator%20Guide/Events%20APIs/#webhooks.


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


How reproducible:



Steps to Reproduce:
1. Add a webhook (gluster-eventsapi webhook-add http://ip/listen)
2. Set alert time (gluster volume quota tank alert-time 60s)
3. Watch quotad.log get filled with error messages

Actual results:
The quotad.log file is filled with error messages as follows.

[2020-01-23 13:21:14.298795] E [quotad-aggregator.c:60:quotad_serialize_reply] (--> /lib64/libglusterfs.so.0(_gf_log_callingfn+0x13a)[0x7f5fa48558ea] (--> /usr/lib64/glusterfs/7.1/xlator/features/quotad.so(+0x2b70)[0x7f5f957e4b70] (--> /usr/lib64/glusterfs/7.1/xlator/features/quotad.so(+0x2cb0)[0x7f5f957e4cb0] (--> /usr/lib64/glusterfs/7.1/xlator/features/quotad.so(+0x3165)[0x7f5f957e5165] (--> /usr/lib64/glusterfs/7.1/xlator/features/quotad.so(+0x216e)[0x7f5f957e416e] ))))) 0-: Failed to encode message

Expected results:
Webhook receives all alerts correctly.

Additional info:
Attached quotad.log

Comment 1 Sunny Kumar 2020-01-28 07:52:20 UTC
Hari,

Can you take a look.

/sunny

Comment 2 hari gowtham 2020-01-28 07:59:26 UTC
Will take a look Sunny

Comment 3 Worker Ant 2020-03-12 12:57:32 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/975, and will be tracked there from now on. Visit GitHub issues URL for further details