Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethernet/hotplug-{{ interface }} fails without potential latency #1197

Open
scotthu27 opened this issue Apr 19, 2024 · 1 comment
Open

ethernet/hotplug-{{ interface }} fails without potential latency #1197

scotthu27 opened this issue Apr 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@scotthu27
Copy link
Contributor

Bug Description

The ethernet functions normally even though the test case fails repeatedly.

Possible reason seems to be the test case starts pinging on cable detection, ignoring the potential latency between cable plug-in and system network setup. See implementation of the test case:

$ eth_hotplugging.py {{ interface }} && gateway_ping_test.py --interface {{ interface }}

This could be fixed by adding few seconds of latency in between. For example:

$ eth_hotplugging.py {{ interface }} && sleep 5 && gateway_ping_test.py --interface {{ interface }}

The SKU could pass the modified test case.

To Reproduce

  1. run ethernet/hotplug-{{ interface }} test

Environment

OS: jammy
checkbox type: debian
checkbox version: 4.0.0.dev194

Relevant log output

[Checkbox job `com.canonical.certification::ethernet/hotplug-enp2s0` output]

stdout
------
Press enter and unplug the ethernet cable from the port enp2s0 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!
Failed to find a host to ping on interface enp2s0
FAIL: Unable to ping any host with the above interfaces

stderr
------
ERROR:root:Could not find def gateway info in /proc
WARNING: systemd-networkd is not running, output will be incomplete.

Failed to query link bit rates: Unit dbus-org.freedesktop.network1.service not found.
Failed to query link DHCP leases: Unit dbus-org.freedesktop.network1.service not found.

Additional context

No response

@scotthu27 scotthu27 added the bug Something isn't working label Apr 19, 2024
Copy link

Thank you for reporting us your feedback!

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

This message was autogenerated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant