Merge ~danilogondolfo/network-manager/+git/network-manager:lp2023183 into network-manager:ubuntu/master

Proposed by Danilo Egea Gondolfo
Status: Merged
Merge reported by: Lukas Märdian
Merged at revision: bde1e4c2cf75fbc705d7bf6ddd20ad3592cbb8df
Proposed branch: ~danilogondolfo/network-manager/+git/network-manager:lp2023183
Merge into: network-manager:ubuntu/master
Diff against target: 31 lines (+11/-1)
2 files modified
debian/changelog (+10/-0)
debian/tests/network_test_base.py (+1/-1)
Reviewer Review Type Date Requested Status
Lukas Märdian Approve
Review via email: mp+454594@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

We seem to be hitting the race condition described in the comments in debian/tests/network_test_base.py on arm64. A few tests are consistently failing there.

Increasing the waiting time between creating and reading the veth pair MAC address seems to fix the issue.

It would be good to have this in mantic as well if possible.

Without the extra waiting time:

https://autopkgtest.ubuntu.com/results/autopkgtest-mantic-danilogondolfo-network-manager2/mantic/arm64/n/network-manager/20231025_194552_7ade5@/log.gz

With the extra waiting time:

https://autopkgtest.ubuntu.com/results/autopkgtest-mantic-danilogondolfo-network-manager2/mantic/arm64/n/network-manager/20231025_220809_b5452@/log.gz

https://autopkgtest.ubuntu.com/results/autopkgtest-mantic-danilogondolfo-network-manager2/mantic/arm64/n/network-manager/20231025_230748_f5cb2@/log.gz

Revision history for this message
Lukas Märdian (slyon) wrote :

Thanks for providing real autopkgtest results!

LGTM. I will cherry-pick your commit 8fd8f8a into my pending upload for Noble, dropping your d/changelog commit.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 6d2b453..bc8d02b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+network-manager (1.44.2-1ubuntu3) noble; urgency=medium
7+
8+ * debian/tests/network_test_base.py:
9+ Increase the waiting time between creating a veth pair and reading their
10+ MAC addresses. On arm64, the system is taking longer to change the MAC
11+ after creation, leading to failures due to differences in the expected
12+ and current MAC addresses. See LP# 2023183.
13+
14+ -- Danilo Egea Gondolfo <danilo.egea.gondolfo@canonical.com> Thu, 26 Oct 2023 10:01:23 +0100
15+
16 network-manager (1.44.2-1ubuntu2) noble; urgency=medium
17
18 [ Lukas Märdian ]
19diff --git a/debian/tests/network_test_base.py b/debian/tests/network_test_base.py
20index be7c86f..c65be61 100644
21--- a/debian/tests/network_test_base.py
22+++ b/debian/tests/network_test_base.py
23@@ -127,7 +127,7 @@ class NetworkTestBase(unittest.TestCase):
24 # systemd, as it will change the initial MAC address after the device
25 # was created and networkd took control. Give it some time, so we read
26 # the correct MAC address
27- time.sleep(0.1)
28+ time.sleep(1)
29 with open("/sys/class/net/%s/address" % klass.dev_w_ap) as f:
30 klass.mac_w_ap = f.read().strip().upper()
31 with open("/sys/class/net/%s/address" % klass.dev_w_client) as f:

Subscribers

People subscribed via source and target branches