New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 871973 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Moblab does the wrong thing without a USB ethernet dongle

Project Member Reported by haddowk@chromium.org, Aug 7

Issue description


I just set up several devices in the following config:
  * Switch plugged into an upstream network.
  * Moblab plugged in to the switch via built-in ethernet jack.
  * Two other devices plugged in to the same switch.

When I brought up all the devices, the two non-moblab devices
were served addresses like 192.168.231.122; they were expected
to get addresses like 100.90.30.164.

I powered off the Moblab unit, and reconnected the two other
devices by unplugging their networks.  After that, both devices
had 100.90 addresses.

Then, I observed that the Moblab had no USB ethernet dongle, so
I attached one (but with no ethernet cable), and powered on the
Moblab again.  I re-plugged both devices, but they kept their
correct IP addresses.

So, it looks like that in the absence of a USB dongle, Moblab
selects the built-in ethernet as the DUT network interface,
and serves DHCP there. Really, it shouldn't do that.
 
I snagged logs, and searched for the message logged by moblab-network-bridge-init
and moblab-dhcpd-init.

Here's the bits from the first boot (without the dongle attached):
        2018-08-07T13:00:48.033002-07:00 NOTICE moblab-network-bridge-init[2185]: Starting.
        2018-08-07T13:00:48.035506-07:00 NOTICE moblab-network-bridge-init[2187]: Finding interfaces by ip address
        2018-08-07T13:00:58.106833-07:00 NOTICE moblab-network-bridge-init[2605]: Finding interfaces by ip address
        2018-08-07T13:01:08.127303-07:00 NOTICE moblab-network-bridge-init[2893]: Finding interfaces by ip address
        2018-08-07T13:01:18.155915-07:00 NOTICE moblab-network-bridge-init[3349]: Finding interfaces by ip address
        2018-08-07T13:01:28.171230-07:00 NOTICE moblab-network-bridge-init[3566]: Finding interfaces by ip address
        2018-08-07T13:01:38.183445-07:00 NOTICE moblab-network-bridge-init[3804]: Finding interfaces by ip address
        2018-08-07T13:01:48.195472-07:00 NOTICE moblab-network-bridge-init[4062]: Finding interfaces by ip address
        2018-08-07T13:01:48.214860-07:00 NOTICE moblab-network-bridge-init[4080]: External  Internal eth0
        2018-08-07T13:01:48.216878-07:00 NOTICE moblab-network-bridge-init[4081]: Finding interfaces by device type
        2018-08-07T13:01:48.224474-07:00 NOTICE moblab-network-bridge-init[4084]: External eth0 Internal eth0
        2018-08-07T13:01:48.242202-07:00 NOTICE moblab-network-bridge-init[4089]: Found WAN Ethernet interface eth0.
        2018-08-07T13:01:48.244217-07:00 NOTICE moblab-network-bridge-init[4090]: stopping shill
        2018-08-07T13:01:48.383689-07:00 NOTICE moblab-network-bridge-init[4094]: Bringing up network bridge lxcbr0
        2018-08-07T13:01:48.416353-07:00 NOTICE moblab-network-bridge-init[4105]: setting server IP address to 192.168.231.1
        2018-08-07T13:01:48.422129-07:00 NOTICE moblab-network-bridge-init[4107]: starting moblab-dhcpd-init
        2018-08-07T13:01:48.434768-07:00 NOTICE moblab-network-bridge-init[4115]: starting shill with lxcbr0,wlan0 blacklisted
        2018-08-07T13:01:48.435992-07:00 NOTICE moblab-dhcpd-init[4117]: preparing lease and pid files for dhcpd
        2018-08-07T13:01:48.442513-07:00 NOTICE moblab-dhcpd-init[4122]: lxcbr0 will be used for subnet.
        2018-08-07T13:01:48.443637-07:00 NOTICE moblab-dhcpd-init[4124]: starting DHCP service against lxcbr0
        2018-08-07T13:01:48.475108-07:00 NOTICE moblab-network-bridge-init[4143]: Verified kernel module br_netfilter
        2018-08-07T13:01:53.477626-07:00 NOTICE moblab-network-bridge-init[4327]: Configuring NAT Service.
        2018-08-07T13:01:53.492731-07:00 NOTICE moblab-network-bridge-init[4334]: Enabling IP forwarding
        2018-08-07T13:01:53.493914-07:00 NOTICE moblab-network-bridge-init[4335]: Finding interfaces by ip address
        2018-08-07T13:02:03.504379-07:00 NOTICE moblab-network-bridge-init[4518]: Finding interfaces by ip address
        2018-08-07T13:02:13.514352-07:00 NOTICE moblab-network-bridge-init[4606]: Finding interfaces by ip address
        2018-08-07T13:02:23.527210-07:00 NOTICE moblab-network-bridge-init[4803]: Finding interfaces by ip address
        2018-08-07T13:02:33.540093-07:00 NOTICE moblab-network-bridge-init[4960]: Finding interfaces by ip address
        2018-08-07T13:02:43.550788-07:00 NOTICE moblab-network-bridge-init[5142]: Finding interfaces by ip address
        2018-08-07T13:02:53.565278-07:00 NOTICE moblab-network-bridge-init[5322]: Finding interfaces by ip address
        2018-08-07T13:02:53.573355-07:00 NOTICE moblab-network-bridge-init[5340]: External  Internal eth0
        2018-08-07T13:02:53.574211-07:00 NOTICE moblab-network-bridge-init[5341]: Finding interfaces by device type
        2018-08-07T13:02:53.578427-07:00 NOTICE moblab-network-bridge-init[5344]: External eth0 Internal eth0
        2018-08-07T13:02:53.583318-07:00 NOTICE moblab-network-bridge-init[5349]: Found LAN Ethernet interface eth0.
        2018-08-07T13:02:53.584302-07:00 NOTICE moblab-network-bridge-init[5350]: stopping shill
        2018-08-07T13:02:53.645792-07:00 NOTICE moblab-network-bridge-init[5354]: starting shill with lxcbr0,wlan0 and eth0 blacklisted
        2018-08-07T13:02:53.685100-07:00 NOTICE moblab-network-bridge-init[5376]: Bringing up eth0
        2018-08-07T13:02:58.694339-07:00 NOTICE moblab-network-bridge-init[5558]: Configuring NAT Service.
        2018-08-07T13:02:58.705002-07:00 NOTICE moblab-network-bridge-init[5562]: Enabling IP forwarding
        2018-08-07T13:02:58.707138-07:00 NOTICE moblab-network-bridge-init[5563]: Ending.

These are the bits from the second boot (with the USB dongle attached)
        2018-08-07T13:50:38.334018-07:00 NOTICE moblab-network-bridge-init[2423]: Starting.
        2018-08-07T13:50:38.335743-07:00 NOTICE moblab-network-bridge-init[2425]: Finding interfaces by ip address
        2018-08-07T13:50:38.360933-07:00 NOTICE moblab-network-bridge-init[2450]: External eth0 Internal eth1
        2018-08-07T13:50:38.361925-07:00 NOTICE moblab-network-bridge-init[2451]: External eth0 Internal eth1
        2018-08-07T13:50:38.375235-07:00 NOTICE moblab-network-bridge-init[2458]: Found WAN Ethernet interface eth0.
        2018-08-07T13:50:38.377771-07:00 NOTICE moblab-network-bridge-init[2459]: stopping shill
        2018-08-07T13:50:38.519052-07:00 NOTICE moblab-network-bridge-init[2479]: Bringing up network bridge lxcbr0
        2018-08-07T13:50:38.552572-07:00 NOTICE moblab-network-bridge-init[2517]: setting server IP address to 192.168.231.1
        2018-08-07T13:50:38.559580-07:00 NOTICE moblab-network-bridge-init[2519]: starting moblab-dhcpd-init
        2018-08-07T13:50:38.575871-07:00 NOTICE moblab-network-bridge-init[2527]: starting shill with lxcbr0,wlan0 blacklisted
        2018-08-07T13:50:38.578234-07:00 NOTICE moblab-dhcpd-init[2529]: preparing lease and pid files for dhcpd
        2018-08-07T13:50:38.585063-07:00 NOTICE moblab-dhcpd-init[2534]: lxcbr0 will be used for subnet.
        2018-08-07T13:50:38.586620-07:00 NOTICE moblab-dhcpd-init[2536]: starting DHCP service against lxcbr0
        2018-08-07T13:50:38.621736-07:00 NOTICE moblab-network-bridge-init[2555]: Verified kernel module br_netfilter
        2018-08-07T13:50:43.627416-07:00 NOTICE moblab-network-bridge-init[2810]: Configuring NAT Service.

I've attached the full messages file showing both boots.
messages
270 KB View Download
Cc: jrbarnette@chromium.org
FWIW, the Moblab is running a custom build based off of
R69-10773.0.0.  The build has changes unrelated to the code
for DHCP, and in any event, have subsequently been committed
to the tree.

Status: Available (was: Untriaged)

Sign in to add a comment