Bug 1758618
Summary: | # gluster v info --xml is always returning <distCount>3</distCount> for all Nx3 volumes | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Kshithij Iyer <kiyer> | |
Component: | cli | Assignee: | Sanju <srakonde> | |
Status: | CLOSED ERRATA | QA Contact: | Kshithij Iyer <kiyer> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.5 | CC: | amukherj, rhs-bugs, rkothiya, sheggodu, srakonde, storage-qa-internal | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.5.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-6.0-17 | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1758878 (view as bug list) | Environment: | ||
Last Closed: | 2019-10-30 12:23:03 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: | 1696809, 1726000, 1758878 |
Description
Kshithij Iyer
2019-10-04 15:50:00 UTC
RCA: From declaration of glusterd_volinfo_ struct: int subvol_count; /* Number of subvolumes in a distribute volume */ int dist_leaf_count; /* Number of bricks in one distribute subvolume */ glusterd_add_volume_detail_to_dict() is adding dist_leaf_count into the dict instead of subvol_count. keylen = snprintf(key, sizeof(key), "volume%d.dist_count", count); ret = dict_set_int32n(volumes, key, keylen, volinfo->dist_leaf_count); <-- this is leading to wrong distCount value in vol info --xml output. if (ret) goto out; Thanks, Sanju patch https://review.gluster.org/#/c/glusterfs/+/23521 posted upstream for review. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:3249 |