canonical / checkbox

Checkbox
https://checkbox.readthedocs.io
GNU General Public License v3.0
30 stars 47 forks source link

ethernet/hotplug-.* failed due to unable to ping the host #1260

Closed LiaoU3 closed 1 month ago

LiaoU3 commented 4 months ago

Bug Description

ethernet/hotplug-eth0 failed, however, the function is well indeed.

submission: https://certification.canonical.com/hardware/202311-32317/submission/371615/

To Reproduce

  1. sudo snap install checkbox24 --beta
  2. sudo snap install checkbox --channel 24.04/beta
  3. checkbox.checkbox-cli
  4. Select client-cert-iot-server-24-04-manual
  5. Select Ethernet Hotplut Test

Environment

Relevant log output

Press enter and unplug the ethernet cable from the port eth0 of the System.
After 15 seconds plug it back in.
Checkbox session may be interrupted but it should come back up.
Waiting for cable to get disconnected.
....Cable unplugged!
Waiting for the cable to get connected.
......Cable detected!
ERROR:root:Could not find def gateway info in /proc
Failed to find a host to ping on interface eth0
FAIL: Unable to ping any host with the above interfaces

Additional context

No response

syncronize-issues-to-jira[bot] commented 4 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1448.

This message was autogenerated

baconYao commented 3 months ago

Same issue can be reproduced on UC22 as well

Failure rate: 100%

Baoshan

Hook25 commented 3 months ago

Dumb question could this be because we try right after detecting the re-plugging connectivity? I think a few retries with some exponential backoff can't be bad in this situation while we just detect connected && check connection, which is not optimal. What do you think? Can you just run this command and see if running the second one a few seconds from the first fixes this?

LiaoU3 commented 1 month ago

This is duplicated to #1197