Bug 1386472
Summary: | [Eventing]: 'VOLUME_REBALANCE' event messages have an incorrect volume name | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Sweta Anandpara <sanandpa> | |
Component: | glusterfs | Assignee: | Nithya Balachandran <nbalacha> | |
Status: | CLOSED ERRATA | QA Contact: | Sweta Anandpara <sanandpa> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.2 | CC: | amukherj, rhinduja, vbellur | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.2.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.8.4-4 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1388010 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-23 06:12:36 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: | 1388010, 1388563 | |||
Bug Blocks: | 1351528 |
Description
Sweta Anandpara
2016-10-19 04:56:56 UTC
Upstream patch: master: http://review.gluster.org/#/c/15712 RCA: Gluster translators do not store the actual volume name anywhere. Each translator appends a specific string to the volume name and stores this value in this->name. For dht, the suffix is "-dht" so this->name actually contains <volname>-dht. The event framework requires the actual volume name to be sent. The rebalance code incorrectly used strtok to parse the volume name by using "-dht" as the delimiter. strtok () treats every char in the delim string as a delimiter. So the parsing fails for a volume which contains 'd', 'h', or 't' in its name. Fix: The code was rewritten to use strstr instead. Upstream patches: master: http://review.gluster.org/15712 release-3.9: http://review.gluster.org/#/c/15725/ Tested and verified this on the build 3.8.4-5 Followed the steps in the description, triggered a rebalance by doing 'tier detach' and was able to see the correct volume name in the corresponding 'VOLUME_REBALANCE' events. Moving this BZ to verified in 3.2 {u'message': {u'volume': u'ozone'}, u'event': u'VOLUME_REBALANCE_COMPLETE', u'ts': 1479110111, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'} {u'message': {u'volume': u'ozone'}, u'event': u'VOLUME_REBALANCE_FAILED', u'ts': 1479110225, u'nodeid': u'ed362eb3-421c-4a25-ad0e-82ef157ea328'} 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://rhn.redhat.com/errata/RHSA-2017-0486.html |