Bug 1396142 - glusterfind fails to list files from tiered volume
Summary: glusterfind fails to list files from tiered volume
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterfind
Version: 3.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milind Changire
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On: 1389481
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-17 14:33 UTC by Milind Changire
Modified: 2017-03-08 10:20 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.9.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1389481
Environment:
Last Closed: 2017-03-08 10:20:15 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Milind Changire 2016-11-17 14:33:25 UTC
+++ This bug was initially created as a clone of Bug #1389481 +++

Description of problem:
glusterfind fails to list files from tiered volume


Version-Release number of selected component (if applicable):
mainline at commit 29587a91716e1e55bd172d63340c40249fb343c9

How reproducible:
always

Steps to Reproduce:
1. create tiered volume
2. create a glusterfind session
3. create a few files
4. try listing files with glusterfind query --full <volname> output.txt

Actual results:
output.txt is created but empty

Expected results:
all files and directories should be listed in output.txt

Additional info:

--- Additional comment from Milind Changire on 2016-10-27 13:17:50 EDT ---

RCA:
gluster volume info <vol> --xml for non-tiered volumes have 'bricks/brick' elements under the 'volInfo/volumes/volume' element.
However, tiered volumes have a 'bricks/hotBricks/brick' and 'bricks/coldBricks/brick' elements under the 'volInfo/volumes/volume' element.

--- Additional comment from Worker Ant on 2016-10-27 13:25:21 EDT ---

REVIEW: http://review.gluster.org/15746 (tools/glusterfind: xml parsing fix for tiered volumes) posted (#1) for review on master by Milind Changire (mchangir)

--- Additional comment from Worker Ant on 2016-11-17 06:30:57 EST ---

COMMIT: http://review.gluster.org/15746 committed in master by Aravinda VK (avishwan) 
------
commit 592fd52d5889cf8a46727b3609cdff60e9ef5c00
Author: Milind Changire <mchangir>
Date:   Thu Oct 27 22:53:43 2016 +0530

    tools/glusterfind: xml parsing fix for tiered volumes
    
    gluster volume info <vol> --xml for non-tiered volumes have
    'bricks/brick' elements under the 'volInfo/volumes/volume' element.
    However, tiered volumes have a 'bricks/hotBricks/brick' and
    'bricks/coldBricks/brick' elements under the 'volInfo/volumes/volume'
    element.
    
    Fix main.py::get_nodes()
    
    BUG: 1389481
    Change-Id: I2f4465bfa8a55e7fa87917d3ec3e69b05d5241b9
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: http://review.gluster.org/15746
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Aravinda VK <avishwan>

Comment 1 Worker Ant 2016-11-17 14:35:35 UTC
REVIEW: http://review.gluster.org/15871 (tools/glusterfind: xml parsing fix for tiered volumes) posted (#1) for review on release-3.9 by Milind Changire (mchangir)

Comment 2 Worker Ant 2016-11-30 12:29:00 UTC
COMMIT: http://review.gluster.org/15871 committed in release-3.9 by Aravinda VK (avishwan) 
------
commit a67fcd1b4f982eabc56f08378eeddb9abfbe7e17
Author: Milind Changire <mchangir>
Date:   Thu Oct 27 22:53:43 2016 +0530

    tools/glusterfind: xml parsing fix for tiered volumes
    
    gluster volume info <vol> --xml for non-tiered volumes have
    'bricks/brick' elements under the 'volInfo/volumes/volume' element.
    However, tiered volumes have a 'bricks/hotBricks/brick' and
    'bricks/coldBricks/brick' elements under the 'volInfo/volumes/volume'
    element.
    
    Fix main.py::get_nodes()
    
    > BUG: 1389481
    > Reviewed-on: http://review.gluster.org/15746
    > NetBSD-regression: NetBSD Build System <jenkins.org>
    > CentOS-regression: Gluster Build System <jenkins.org>
    > Smoke: Gluster Build System <jenkins.org>
    > Reviewed-by: Aravinda VK <avishwan>
    (cherry picked from commit 592fd52d5889cf8a46727b3609cdff60e9ef5c00)
    
    BUG: 1396142
    Change-Id: I2f4465bfa8a55e7fa87917d3ec3e69b05d5241b9
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: http://review.gluster.org/15871
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Aravinda VK <avishwan>

Comment 3 Kaushal 2017-03-08 10:20:15 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.9.1, please open a new bug report.

glusterfs-3.9.1 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-users/2017-January/029725.html
[2] https://www.gluster.org/pipermail/gluster-users/


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