bigcy / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

IP-detection procedure fails when host has multiple addresses #654

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run any Tungsten Replicator installation in a staging server that has two IP 
addresses, and the address related to hostname is a private one.
2. Define the hosts by hostnames that have public addresses

For example: (randomly generated IP addresses

# hostname: host1.example.com

232.202.81.10     host1
197.203.251.185 host2
227.244.247.133 host3
179.6.199.78 host4

192.168.1.1 host1.example.com
192.168.1.2 host2.example.com
192.168.1.3 host3.example.com
192.168.1.4 host4.example.com

What is the expected output?

Installation succeeds

What do you see instead?

The cookbook script complains that the host is not among the

The script complains that hostname host1.example.com is not among the servers 
where we want to install.

What is the possible cause?

The procedure wrongly assumes a single IP

What is the proposed solution?

Determine the list of IP addresses by parsing /sbin/ifconfig

Original issue reported on code.google.com by g.maxia on 28 Jul 2013 at 6:56

GoogleCodeExporter commented 9 years ago
the IP-detection statement has been replaced by a loop through the values 
provided by parsing /sbin/ifconfig

Original comment by g.maxia on 28 Jul 2013 at 7:37