Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1176354

Summary: "gluster pool list" does not show the real hostname of the host executing the command
Product: [Community] GlusterFS Reporter: Niels de Vos <ndevos>
Component: glusterdAssignee: Atin Mukherjee <amukherj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, bugs, nlevinki, prasanna_psp, vbellur
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-4.1.3 (or later) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1065618 Environment:
Last Closed: 2018-08-29 03:36:49 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: 1065618, 1208255    

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.