storj/satellite/overlay
Jessica Grebenschikov 803e2930f4 satellite: use IP for all uplink operations, use hostname for audit and repairs
My understanding is that the nodes table has the following fields:
- `address` field which can be a hostname or an IP
- `last_net` field that is the /24 subnet of the IP resolved from the address

This PR does the following:
1) add back the `last_ip` field to the nodes table
2) for uplink operations remove the calls that the satellite makes to `lookupNodeAddress` (which makes the DNS calls to resolve the IP from the hostname) and instead use the data stored in the nodes table `last_ip` field. This means that the IP that the satellite sends to the uplink for the storage nodes could be approx 1 hr stale. In the short term this is fine, next we will be adding changes so that the storage node pushes any IP changes to the satellite in real time.
3) use the address field for repair and audit since we want them to still make DNS calls to confirm the IP is up to date
4) try to reduce confusion about hostname, ip, subnet, and address in the code base

Change-Id: I96ce0d8bb78303f82483d0701bc79544b74057ac
2020-03-11 09:11:40 -07:00
..
benchmark_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
combinedcache.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
config.go satellite/overlay: add config flag for node selection free disk requirement 2020-02-11 18:08:25 +00:00
inspector.go common: separate repository 2019-12-27 14:11:15 +02:00
keylock_test.go common: separate repository 2019-12-27 14:11:15 +02:00
keylock.go common: separate repository 2019-12-27 14:11:15 +02:00
peeridentities_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
peeridentities.go common: separate repository 2019-12-27 14:11:15 +02:00
piececount_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
selection_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
service_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
service.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00
statdb_test.go satellite: use IP for all uplink operations, use hostname for audit and repairs 2020-03-11 09:11:40 -07:00