Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Issue 3334002: Retry delbr on linux_router deconfig (Closed)

Created:
10 years, 3 months ago by Paul Stewart
Modified:
9 years, 7 months ago
Reviewers:
Sam Leffler, DaleCurtis
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano, ericli, petkov+cc_chromium.org
Base URL:
ssh://gitrw.chromium.org/autotest.git
Visibility:
Public.

Description

Retry delbr on linux_router deconfig With small but non-zero probability test bomb out doing an "addif" in tests where there's a "config" step followed by another "config" step. This is because in order to do the "config", we quickly do a "deconfig" and another "config". In that short period of time after hostapd is started, it might take a while for hostapd to come to a halt, holding the bridge device open. If you look through the logs, you'll find that the previous "delbr" of the bridge interface did not succeed, but its error was ignored. More troublingly, it seems that the automated tests seem to run into this issue much more regularly than developers do with "run_remote_tests". This change retries the "delbr" between sleeps if the first one fails, and then exit with an error if the last attempt is not successful. BUG=none (chat from dalecurtis) TEST=Reran SecMat 00* Revert "Move deftxkey into first config block" This reverts commit ad52b3d64a0ee579caa77123969288f3b9fe81d2.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M server/site_linux_router.py View 2 chunks +14 lines, -3 lines 2 comments Download
M server/site_tests/network_WiFiSecMat/001StaticKeyWEP104 View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paul Stewart
10 years, 3 months ago (2010-09-01 20:39:17 UTC) #1
DaleCurtis
LGTM
10 years, 3 months ago (2010-09-01 20:49:55 UTC) #2
Sam Leffler
http://codereview.chromium.org/3334002/diff/1/2 File server/site_linux_router.py (right): http://codereview.chromium.org/3334002/diff/1/2#newcode328 server/site_linux_router.py:328: (self.bridgeif, result.stderr)) would it be better to wait on ...
10 years, 3 months ago (2010-09-01 21:15:07 UTC) #3
Paul Stewart
Neither of those techniques are easily implementable and solve the base problem, alas. http://codereview.chromium.org/3334002/diff/1/2 File ...
10 years, 3 months ago (2010-09-01 23:00:47 UTC) #4
Sam Leffler
10 years, 3 months ago (2010-09-01 23:35:37 UTC) #5
LGTM then

Powered by Google App Engine
This is Rietveld 408576698