Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Hostnames (non-IP) must work for all peer communication #725

Closed
prashanthpai opened this issue May 3, 2018 · 4 comments
Closed

Hostnames (non-IP) must work for all peer communication #725

prashanthpai opened this issue May 3, 2018 · 4 comments

Comments

@prashanthpai
Copy link
Contributor

When a user specifies a hostname for a peer, it should persist through-out the system

@obnoxxx
Copy link
Contributor

obnoxxx commented May 7, 2018

@jarrpa

This will be important for the future, how we run gluster specifically in the container space. The background requirement is: Will it be possible to have gluster nodes changing IP addresses when rebooted (dhcp etc), and still remain part of the cluster because peer-probe had been done with a hostname that will remain associated to this node even when the IP changes?

@aravindavk
Copy link
Member

When a user specifies a hostname for a peer, it should persist through-out the system

Is this issue about the first node? which is not added via peer probe, Glusterd2 itself will detect the IP/hostname on start.

@prashanthpai
Copy link
Contributor Author

Is this issue about the first node? which is not added via peer probe, Glusterd2 itself will detect the IP/hostname on start.

This is about peer attach requests. If a user specifies a hostname during peer attach, it should work and the hostname should appear (instead of IP) everywhere. IOW, we shouldn't implicitly convert hostname to IP internally when we store it in etcd.

@aravindavk
Copy link
Member

I also observed that, by default we are adding Host IP as peer address while adding self details on Glusterd2 start(glusterd2/config.go). We should change this to update hostname itself if peeraddress is not specified in config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants