open-nomad/client/fingerprint
Alex Dadgar fd7d614ae4 Handle interfaces that only have link-local addrs
This PR changes the fingerprint handling of network interfaces that only
contain link local addresses. The new behavior is to prefer globally
routable addresses and if none are detected, to fall back to link local
addresses if the operator hasn't disallowed it. This gives us pre 0.6
behavior for interfaces with only link local addresses but 0.6+ behavior
for IPv6 interfaces that will always have a link-local address.

Fixes https://github.com/hashicorp/nomad/issues/3005

/cc diptanuc
2017-08-23 15:32:22 -07:00
..
arch.go Fixed namespacing for the cpu arch 2017-01-06 14:23:22 -08:00
arch_test.go Fixed namespacing for the cpu arch 2017-01-06 14:23:22 -08:00
cgroup.go Build the Cgroup fingerprinter on only Linux. 2016-07-10 13:55:06 -07:00
cgroup_linux.go cgroups are a decidedly Linux-only feature. Build and test as such. 2016-05-09 11:56:35 -07:00
cgroup_test.go Build the Cgroup fingerprinter on only Linux. 2016-07-10 13:55:06 -07:00
consul.go small fixes 2016-09-01 13:38:31 -07:00
consul_test.go Fingerprint 2016-09-01 11:10:14 -07:00
cpu.go 0 compute == error 2017-07-03 14:51:02 -07:00
cpu_test.go Fix cpu_total_compute override 2017-07-03 14:51:02 -07:00
env_aws.go AMI ID is potentally non-unique 2017-08-09 12:53:54 -04:00
env_aws_test.go Updated AWS fingerprint test for ami-id 2017-08-11 12:54:27 -04:00
env_gce.go Speed up client startup 2017-07-20 22:34:24 -07:00
env_gce_test.go Update client fingerprinters 2016-01-26 10:08:01 -08:00
fingerprint.go Speed up client startup 2017-07-20 22:34:24 -07:00
fingerprint_default.go Alpha-sort the build platforms 2016-07-11 12:23:46 -07:00
fingerprint_linux.go Centralize the fingerprintrs. 2016-07-09 22:31:14 -07:00
fingerprint_test.go fingerprint/aws: Add 2 basic links, rename 'env' to 'platform' 2015-08-31 14:18:40 -05:00
host.go Enable kernel.version on Windows 2017-03-01 18:48:23 +00:00
host_test.go Update failing tests 2016-06-23 11:28:17 -04:00
memory.go Merge fix 2015-11-05 13:46:02 -08:00
memory_test.go Update fingerprint test codes 2015-11-07 23:16:43 +09:00
network.go Handle interfaces that only have link-local addrs 2017-08-23 15:32:22 -07:00
network_default.go Link speed for windows network fingerprinting 2016-07-20 22:13:50 +02:00
network_linux.go Emit various debugging information with the results of the fingerprinter 2016-05-09 12:21:51 -07:00
network_test.go Handle interfaces that only have link-local addrs 2017-08-23 15:32:22 -07:00
network_windows.go Link speed for windows network fingerprinting - tests 2016-07-22 22:49:03 +02:00
network_windows_test.go Link speed for windows network fingerprinting - tests 2016-07-22 22:49:03 +02:00
nomad.go Add version package 2017-08-16 15:44:21 -07:00
nomad_test.go Fix tests 2017-08-16 16:26:52 -07:00
signal.go Advertise signalling abilities 2016-10-19 15:06:23 -07:00
signal_test.go Advertise signalling abilities 2016-10-19 15:06:23 -07:00
storage.go Update client fingerprinters 2016-01-26 10:08:01 -08:00
storage_test.go Update client fingerprinters 2016-01-26 10:08:01 -08:00
storage_unix.go Stub out FreeBSD support for Nomad 2016-05-09 11:56:35 -07:00
storage_windows.go Improve error messages. 2015-12-09 16:34:18 -05:00
vault.go Fix Vault parsing of booleans 2016-10-10 18:04:39 -07:00
vault_test.go Make test Vault pick random ports 2017-07-25 17:40:59 -07:00
zstorage_windows.go Use GetDiskFreeSpaceEx instead of parsing output of fsutil on Windows. 2015-11-30 16:43:25 -05:00