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

Issue 623632 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

eth0 of the moblab could change

Project Member Reported by ntang@google.com, Jun 27 2016

Issue description

Some moblab code assumes "eth0" is the moblab public port (like in client/common_lib/site_utils.py). However, sometimes, eth0 (direct cable network) and eth1 (USB dongle network) assignment could be swapped. Not a critical issue so far. But for consistency, we should eithe enforce this at upstart init time, or not assume the default assignment always hold.
 

Comment 1 by sbasi@chromium.org, Jun 27 2016

I don't know how you can enforce this at the init time as the kernel does the interface to name assignment. We could in the autotest code have a utility function to return the proper interface or mac address.
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 28 2016

Labels: Hotlist-Google

Comment 3 by krk@chromium.org, Sep 19 2016

Status: Unconfirmed (was: Untriaged)

Comment 4 by ntang@google.com, Dec 12 2016

Status: Started (was: Unconfirmed)
I am going to add a check on the usb network interface.

Comment 5 by ntang@google.com, Dec 14 2016

Cc: cros-peng-moblab@google.com
Owner: ntang@chromium.org
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 21 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/7b549fa6c193531a43f7a173840bfd8e8e6823d5

commit 7b549fa6c193531a43f7a173840bfd8e8e6823d5
Author: Michael Tang <ntang@google.com>
Date: Tue Dec 13 07:49:06 2016

Use the moblab public network interface's mac address as identity.

BUG= chromium:623632 
TEST=unittest.

Change-Id: Ib46c5c53bfd5c719b01b55ceefbe275dc4b48cb2
Reviewed-on: https://chromium-review.googlesource.com/418869
Commit-Ready: Michael Tang <ntang@chromium.org>
Tested-by: Michael Tang <ntang@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Michael Tang <ntang@chromium.org>

[modify] https://crrev.com/7b549fa6c193531a43f7a173840bfd8e8e6823d5/client/common_lib/site_utils_unittest.py
[modify] https://crrev.com/7b549fa6c193531a43f7a173840bfd8e8e6823d5/client/common_lib/site_utils.py

Project Member

Comment 7 by bugdroid1@chromium.org, Dec 23 2016

Labels: merge-merged-release-R56-9000.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/bf4c10fb83658400ba5a4fd8b71a80c8dd062c1d

commit bf4c10fb83658400ba5a4fd8b71a80c8dd062c1d
Author: Michael Tang <ntang@google.com>
Date: Tue Dec 13 07:49:06 2016

Use the moblab public network interface's mac address as identity.

BUG= chromium:623632 
TEST=unittest.

Change-Id: Ib46c5c53bfd5c719b01b55ceefbe275dc4b48cb2
Reviewed-on: https://chromium-review.googlesource.com/418869
Commit-Ready: Michael Tang <ntang@chromium.org>
Tested-by: Michael Tang <ntang@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Michael Tang <ntang@chromium.org>
(cherry picked from commit 7b549fa6c193531a43f7a173840bfd8e8e6823d5)
Reviewed-on: https://chromium-review.googlesource.com/423107
Reviewed-by: Mohan Konduri <krk@chromium.org>
Commit-Queue: Michael Tang <ntang@chromium.org>
Trybot-Ready: Michael Tang <ntang@chromium.org>

[modify] https://crrev.com/bf4c10fb83658400ba5a4fd8b71a80c8dd062c1d/client/common_lib/site_utils_unittest.py
[modify] https://crrev.com/bf4c10fb83658400ba5a4fd8b71a80c8dd062c1d/client/common_lib/site_utils.py

Comment 8 by ntang@google.com, Feb 23 2017

Status: Fixed (was: Started)

Sign in to add a comment