Bug 1208255 - 'volume heal $volname info' shows FQDNs instead of provided hostnames for nodes
Summary: 'volume heal $volname info' shows FQDNs instead of provided hostnames for nodes
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: 3.5.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1176354
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-01 18:53 UTC by Jon Heese
Modified: 2016-06-17 15:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-17 15:57:32 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Jon Heese 2015-04-01 18:53:15 UTC
Description of problem:
The 'gluster volume $volname info' command shows the FQDN hostnames of the nodes instead of the hostnames provided to Gluster  during volume creation (when they differ).

Version-Release number of selected component (if applicable):
[root@duke ~]# gluster --version
glusterfs 3.5.3 built on Nov 13 2014 11:06:07
(Also saw the same behavior on 3.6.2-1 from RPMs at http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/epel-6.6/x86_64/)

How reproducible:
100%

Steps to Reproduce:
1. Create glusterfs volume on two Gluster nodes using hostname aliases (eg. configured in /etc/hosts) different from system-configured fully-qualified hostname:

# gluster volume create gluster_vol replica 2 node1-ib:/bricks/brick1 node2-ib:/bricks/brick1

2. Start glusterfs volume:

# gluster volume start gluster_vol

3. Show gluster heal info:

# gluster volume heal gluster_vol info

Actual results:
Brick node1.localdomain.net:/bricks/brick1/
Number of entries: 0

Brick node2.localdomain.net:/bricks/brick1/
Number of entries: 0

Expected results:
Brick node1-ib:/bricks/brick1/
Number of entries: 0

Brick node2-ib:/bricks/brick1/
Number of entries: 0

Additional info:
This appears to be a 'display-only' kind of bug -- the Gluster replication traffic appears to be using the proper hostnames/IPs -- it just doesn't render the "heal info" output properly.

Comment 1 Atin Mukherjee 2015-04-02 06:16:53 UTC
Can you paste gluster peer status output?

Comment 2 Jon Heese 2015-04-02 12:11:21 UTC
Ah, my apologies for omitting that.  Here is an unobfuscated paste of the pertinent details:

NODE 1:
=======================================
[root@duke ~]# gluster peer status
Number of Peers: 1

Hostname: duchess-ib
Uuid: 1a240151-668a-47ca-9cb5-9955f9fde38a
State: Peer in Cluster (Connected)
[root@duke ~]# gluster volume info

Volume Name: gluster_disk
Type: Replicate
Volume ID: 04954a9d-b93a-4401-aeaf-0d55aec47316
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: duke-ib:/bricks/brick1
Brick2: duchess-ib:/bricks/brick1
[root@duke ~]# gluster volume heal gluster_disk info
Brick duke.jonheese.local:/bricks/brick1/
Number of entries: 0

Brick duchess.jonheese.local:/bricks/brick1/
Number of entries: 0

[root@duke ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.10.10.1  duke-ib
10.10.10.2  duchess-ib


NODE 2:
=======================================
[root@duchess ~]# gluster peer status
Number of Peers: 1

Hostname: duke-ib
Uuid: e679b3e5-8f0e-4bc3-b784-6914046d6a0b
State: Peer in Cluster (Connected)
[root@duchess ~]# gluster volume info

Volume Name: gluster_disk
Type: Replicate
Volume ID: 04954a9d-b93a-4401-aeaf-0d55aec47316
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: duke-ib:/bricks/brick1
Brick2: duchess-ib:/bricks/brick1
[root@duchess ~]# gluster volume heal gluster_disk info
Brick duke.jonheese.local:/bricks/brick1/
Number of entries: 0

Brick duchess.jonheese.local:/bricks/brick1/
Number of entries: 0

[root@duchess ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.10.10.1  duke-ib
10.10.10.2  duchess-ib


Thank you.

Regards,
Jon Heese

Comment 3 Niels de Vos 2015-04-07 12:27:18 UTC
Bug 1176354 has some similarities with finding the right hostname of a system. Atin is looking into a solution for this.

Comment 4 Niels de Vos 2016-06-17 15:57:32 UTC
This bug is getting closed because the 3.5 is marked End-Of-Life. There will be no further updates to this version. Please open a new bug against a version that still receives bugfixes if you are still facing this issue in a more current release.


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