waiting for network probing up may fail before default timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I observed wait_network_up could fail on some of my board for the network probe up with a latency, it will fail before timeout.
So a previous patch of mine can't work, I suggest to use time.sleep(timeout) to make it more reliable.
The logs from my board, it only detect 4 times and network reports failure, but the timeout is far away reached:
* Documentation: http://
root@master:~# Waiting for network to come up
LC_ALL=C ping -W4 -c1 192.168.12.8
LC_ALL=C ping -W4 -c1 192.168.12.8
connect: Network is unreachable
root@master:~# LC_ALL=C ping -W4 -c1 192.168.12.8
LC_ALL=C ping -W4 -c1 192.168.12.8
connect: Network is unreachable
root@master:~# LC_ALL=C ping -W4 -c1 192.168.12.8
root@master:~# Lava failed at action deploy_linaro_image with error: Network can't probe up when deployment
Related branches
- Spring Zhang (community): Disapprove
- Paul Larson (community): Needs Fixing
-
Diff: 14 lines (+2/-1)1 file modifiedlava_dispatcher/client.py (+2/-1)
It should be trying more than 4 times in the 2 minutes that it currently waits. How long does it take each time before ping exits?