Bug 1794386 - quotad_serialize_reply - Failed to encode message
Summary: quotad_serialize_reply - Failed to encode message
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: 7
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: hari gowtham
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-23 13:31 UTC by joao.bauto
Modified: 2020-03-12 12:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-12 12:57:32 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
quotad log (5.47 KB, text/plain)
2020-01-23 13:31 UTC, joao.bauto
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.