You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've observed that the network_interfaceclient parameter does not influence port allocations in 0.12.0.
My example system has two Ethernet interfaces, eth0 contains the default route, and eth1 is the interface that I wish to use for all port allocations:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
valid_lft 73981sec preferred_lft 73981sec
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet 10.74.241.12/24 brd 10.74.241.255 scope global eth1
valid_lft forever preferred_lft forever
This is resulting in the incorrect IP address being published for the service in Consul amongst other things.
Enabling DEBUG logging verbosity, I can see that Nomad 0.12.0 is at least still picking up the configuration option:
2020-07-16T11:18:05.286Z [DEBUG] client.fingerprint_mgr.network: link speed detected: interface=eth1 mbits=1000
2020-07-16T11:18:05.286Z [DEBUG] client.fingerprint_mgr.network: detected interface IP: interface=eth1 IP=10.74.241.12
2020-07-16T11:18:05.286Z [DEBUG] client.fingerprint_mgr.network: unable to read link speed: path=/sys/class/net/lo/speed
2020-07-16T11:18:05.286Z [DEBUG] client.fingerprint_mgr.network: link speed could not be detected, falling back to default speed: mbits=1000
2020-07-16T11:18:05.297Z [DEBUG] client.fingerprint_mgr.network: unable to read link speed: path=/sys/class/net/docker0/speed
2020-07-16T11:18:05.297Z [DEBUG] client.fingerprint_mgr.network: link speed could not be detected, falling back to default speed: mbits=1000
I note that Multi-Interface Networking was introduced in 0.12.0. Does this replace the use of the network_interfaceclient parameter in this scenario, and if so, is there a way to set a default so that each group definition does not require this to be explicitly set?
Reproduction steps
Please let me know if you have any trouble reproducing this based on the below instructions (or if I am making a mistake somewhere!). I am happy to put together a completely automated Vagrant based environment that reproduces this if needed.
schmichael
changed the title
network_interface parameter does not influence port allocations in 1.12.0
network_interface parameter does not influence port allocations in 0.12.0
Jul 21, 2020
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Nomad version
Operating system and Environment details
10.4.0
of thedebian/contrib-buster64
Vagrant box.Issue
I've observed that the
network_interface
client
parameter does not influence port allocations in 0.12.0.My example system has two Ethernet interfaces,
eth0
contains the default route, andeth1
is the interface that I wish to use for all port allocations:This is configured using the
network_interface
client
parameter in my Nomad configuration file:With Nomad 0.11.3, as desired, the IP address associated with
eth1
(10.74.241.12
) is used for the port allocations:With Nomad 1.12.0, the IP address associated with
eth0
(10.0.2.15
) is being used (the interface attached to the default route):This is resulting in the incorrect IP address being published for the service in Consul amongst other things.
Enabling
DEBUG
logging verbosity, I can see that Nomad 0.12.0 is at least still picking up the configuration option:I note that Multi-Interface Networking was introduced in 0.12.0. Does this replace the use of the
network_interface
client
parameter in this scenario, and if so, is there a way to set a default so that each group definition does not require this to be explicitly set?Reproduction steps
Please let me know if you have any trouble reproducing this based on the below instructions (or if I am making a mistake somewhere!). I am happy to put together a completely automated Vagrant based environment that reproduces this if needed.
Vagrantfile
Additional steps
network_interface
client
parameter set to10.74.241.12
.The text was updated successfully, but these errors were encountered: