Bug 762295 (GLUSTER-563)

Summary: glusterfs-volgen: can't handle multiple network interfaces
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: scriptsAssignee: Harshavardhana <fharshav>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: anush, cww, gluster-bugs, pavan, platform, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2010-01-22 20:28:03 UTC
We faced this problem at one customer place where the frontend management network was different (10.0.100.x), and backend network where glusterfs storage nodes talk to each other was different (10.0.200.x, on a higher speed network). Now, when I goto web interface, and create the volume, it creates glusterfs volume files (mainly the client volumes) with IP, instead of hostnames. Due to this, GlusterFS volume files need manual change in storage platform..

Resolving hostname to IP should not be done IMO, we can discuss more on making this option automated so that volumefiles support both the networks.

I would like to tag this bug with 'major' severity, as we are getting more and more users who use it in above mentioned setup..

-Amar

Comment 1 Harshavardhana 2010-01-23 06:46:56 UTC
(In reply to comment #0)
> We faced this problem at one customer place where the frontend management
> network was different (10.0.100.x), and backend network where glusterfs storage
> nodes talk to each other was different (10.0.200.x, on a higher speed network).
> Now, when I goto web interface, and create the volume, it creates glusterfs
> volume files (mainly the client volumes) with IP, instead of hostnames. Due to
> this, GlusterFS volume files need manual change in storage platform..
> 
> Resolving hostname to IP should not be done IMO, we can discuss more on making
> this option automated so that volumefiles support both the networks.
> 
> I would like to tag this bug with 'major' severity, as we are getting more and
> more users who use it in above mentioned setup..
> 
> -Amar

Amar, 

  I would like to know does both networks carry same hostname?. This can be 
  fixed with a one line in glusterfs-volgen. But i wanted to know how was the 
  other network configured? and did they carry the same hostname? 

  Supporting multiple hostnames for a single machine is a feature which should 
  be implemented nevertheless. 

Regards
Harshavardhana

Comment 2 Amar Tumballi 2010-01-23 15:49:52 UTC
(In reply to comment #1)
> 
>   I would like to know does both networks carry same hostname?. 

Actually, if its hostname, ppl can have each network's dns server resolve it to different IP (or even put it in /etc/hosts), so there is no change is required in volumefile.

If it has hardcoded IP, we have to manually edit the volume file.

_Amar

Comment 3 Harshavardhana 2010-01-23 16:29:45 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > 
> >   I would like to know does both networks carry same hostname?. 
> 
> Actually, if its hostname, ppl can have each network's dns server resolve it to
> different IP (or even put it in /etc/hosts), so there is no change is required
> in volumefile.
> 
> If it has hardcoded IP, we have to manually edit the volume file.
> 
> _Amar

But this is not possible through webUI right now to have multiple hostnames? i think?.

Comment 4 Harshavardhana 2010-02-09 14:52:08 UTC
This can be fixed by just passing the hostname values rather than converting them into IP. This will go in 3.0.3 release

Comment 5 Anand Avati 2010-02-18 13:40:06 UTC
PATCH: http://patches.gluster.com/patch/2774 in master (Remove dns lookup issued for each hostnames.)

Comment 6 Anand Avati 2010-02-18 13:40:14 UTC
PATCH: http://patches.gluster.com/patch/2776 in release-2.0 (Remove dns lookup issued for each hostnames.)

Comment 7 Anand Avati 2010-02-18 13:40:26 UTC
PATCH: http://patches.gluster.com/patch/2775 in release-3.0 (Remove dns lookup issued for each hostnames.)