Bug 1636502
| Summary: | Unwanted repeated logs in self heal daemon logs | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Shyamsundar <srangana> | |
| Component: | replicate | Assignee: | Ravishankar N <ravishankar> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | ||
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | mainline | CC: | atumball, bugs, ravishankar | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-6.x | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1636504 (view as bug list) | Environment: | ||
| Last Closed: | 2019-07-05 08:41:39 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1636504 | |||
|
Description
Shyamsundar
2018-10-05 14:47:36 UTC
REVIEW: https://review.gluster.org/21366 (libglusterfs: change the validation type in dict_get_str_boolean) posted (#1) for review on master by Ravishankar N The fix has caused others to pop up. For example:
[2018-12-23 23:52:37.333162] I [dict.c:2619:dict_get_str_boolean] (-->/build/install/lib/glusterfs/6dev/xlator/mgmt/glusterd.so(+0xb3626) [0x7fc032ef3626] -->/build/install/lib/glusterfs/6dev/xlator/mgmt/glusterd.so(+0xaf8db) [0x7fc032eef8db] -->/build/install/lib/libglusterfs.so.0(dict_get_str_boolean+0x170) [0x7fc03e282008] ) 0-dict: key nfs.disable, integer type asked, has string type [Invalid argument]
The reason being that nfs.disable (NFS_DISABLE_MAP_KEY) is set as string. For example:
if (dict_get_str_boolean(volinfo->dict, NFS_DISABLE_MAP_KEY, 1)) {
ret = dict_set_dynstr_with_alloc(volinfo->dict, NFS_DISABLE_MAP_KEY,
"on");
The correct thing of course is to introduce a sane boolean setter/getter and be done with all those hacks ...
These warnings are not showing up no more in default logs. |