Bug 1176354 - "gluster pool list" does not show the real hostname of the host executing the command
Summary: "gluster pool list" does not show the real hostname of the host executing the...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Atin Mukherjee
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1065618 1208255
TreeView+ depends on / blocked
 
Reported: 2014-12-20 21:37 UTC by Niels de Vos
Modified: 2018-08-29 03:36 UTC (History)
5 users (show)

Fixed In Version: glusterfs-4.1.3 (or later)
Doc Type: Bug Fix
Doc Text:
Clone Of: 1065618
Environment:
Last Closed: 2018-08-29 03:36:49 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Niels de Vos 2014-12-20 21:37:36 UTC
+++ This bug was initially created as a clone of Bug #1065618 +++

Description of problem:gluster 3.5 hostname shows localhostname as localhost in gluster pool list command 


Version-Release number of selected component (if applicable):
Current mainline (glusterfs-3.7dev-0.450.git531e0a7.el6)

How reproducible:
100%

Steps to Reproduce:
1. execute: gluster pool list

Actual results:
The current host is displayed as 'localhost' instead of the real hostname.

Expected results:
Instread of 'localhost', the hostname returned by the 'hostname' command should be listed. See 'man 2 uname' or 'man 2 gethostname' for ideas on the implementation.

Additional info:

The output looks like this:

[root@vm100-009 ~]# gluster pool list
UUID					Hostname 	State
98c55356-6f17-4523-92b2-33217ad6a913	localhost	Connected 
[root@vm100-009 ~]# hostname
vm100-009.example.com

It indeed would be nice to have the real hostname of the system instead of 'localhost' in the output.

Comment 1 Anand Avati 2015-03-31 05:08:15 UTC
REVIEW: http://review.gluster.org/10060 (glusterd: print actual hostname instead localhost in gluster pool list) posted (#1) for review on master by Atin Mukherjee (amukherj)

Comment 2 Anand Avati 2015-04-03 03:18:18 UTC
REVIEW: http://review.gluster.org/10060 (glusterd: print actual hostname instead localhost in gluster pool list) posted (#2) for review on master by Atin Mukherjee (amukherj)

Comment 3 Mike McCune 2016-03-28 22:15:42 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 4 Amar Tumballi 2018-08-29 03:36:49 UTC
This update is done in bulk based on the state of the patch and the time since last activity. If the issue is still seen, please reopen the bug.


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