Dear Linaro Team,
I have problems to tell the lava-slave to take the right network interface.
My lab has the following network structure:
company-network | | +------------eth0-------------+ | | | LAVA-SLAVE-1 | | | | eth1 eth2 | | 10.250.20.1 10.250.21.1 | +-----------------------------+ | | +------+ +--------+ | | DUT-Group1 DUT-Group2 10.250.20.0/24 10.250.21.0/24 10.250.20.2-254 10.250.21.2-254
If I use the {SERVER_IP} macro lava took all the time the lava-slave-1 network interface where the default gateway is defined. The slave is getting the default gateway via the company dhcp server. After some research I found that the pipeline device always took it from the default gateway: def dispatcher_ip(): """ Retrieves the IP address of the interface associated with the current default gateway. """ gateways = netifaces.gateways() if 'default' not in gateways: raise InfrastructureError("Unable to find default gateway") iface = gateways['default'][netifaces.AF_INET][1] addr = netifaces.ifaddresses(iface) return addr[netifaces.AF_INET][0]['addr']
The slave get the image artifacts via the eth0 network interface thats right, but the dut's get them from the slave (eth1 or eth2). Is there a way to tell lava to use the other network interfaces?
I have changed the /etc/lava-dispatcher/lava-dispatcher.conf file to tell lava to use the eth1 and eth2 interface: LAVA_NETWORK_IFACE = eth1 eth2
I use the new pipeline design for the lava-lab. Thanks a lot.