Some Netplan-related autopkgtests are failing on armhf

Bug #2033391 reported by Danilo Egea Gondolfo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netplan.io (Ubuntu)
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned
network-manager (Ubuntu)
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned

Bug Description

The root cause appears to be NM not being ready yet when the test starts.

# /usr/bin/python3 /tmp/autopkgtest.kW7u4i/build.K7E/src/debian/tests/nm_netplan.py
test_nmcli_add_device_and_change_it (__main__.TestNetplan.test_nmcli_add_device_and_change_it)
Uses the nmcli to add a connection and validates if the ... Warning: nmcli (1.44.0) and NetworkManager (Unknown) versions don't match. Restarting NetworkManager is advised.
Error: NetworkManager is not running.
FAIL

We need to wait until Network Manager is ready before starting the test.

Related branches

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Well, actually, there are tests from nm.py failing for the same reason...

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

I'm running some tests with the linked MP.

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Both tests that require building a kernel module are failing due to the new default gcc

794s autopkgtest [10:41:29]: test killswitches-no-urfkill: [-----------------------
794s make -C /lib/modules/6.3.0-7-generic/build KBUILD_SRC=/lib/modules/6.3.0-7-generic/build M=/tmp/autopkgtest.6Iru72/build.A2V/src/debian/tests
794s make[1]: Entering directory '/usr/src/linux-headers-6.3.0-7-generic'
794s warning: the compiler differs from the one used to build the kernel
794s The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1) 12.3.0
794s You are using:
794s CC [M] /tmp/autopkgtest.6Iru72/build.A2V/src/debian/tests/fake-rfkill.o
794s /bin/sh: 1: gcc-12: not found
794s make[2]: *** [scripts/Makefile.build:260: /tmp/autopkgtest.6Iru72/build.A2V/src/debian/tests/fake-rfkill.o] Error 127
794s make[1]: *** [Makefile:2030: /tmp/autopkgtest.6Iru72/build.A2V/src/debian/tests] Error 2
794s make[1]: Leaving directory '/usr/src/linux-headers-6.3.0-7-generic'
794s make: *** [debian/tests/Makefile:5: fake-rfkill] Error 2

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

The patch helped with nm.py and nm_netplan.py tests but the ones that require building kernel modules are still failing due to the gcc version.

1749s autopkgtest [00:14:05]: @@@@@@@@@@@@@@@@@@@@ summary
1749s wpa-dhclient PASS
1749s nm.py PASS
1749s killswitches-no-urfkill FAIL non-zero exit status 2
1749s urfkill-integration FAIL non-zero exit status 2
1749s nm_netplan.py PASS

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.44.0-1ubuntu2

---------------
network-manager (1.44.0-1ubuntu2) mantic; urgency=medium

  * d/t/{nm.py,nm_netplan.py,network_test_base.py} (LP: #2033391):
    - Wait until NM is ready before starting tests
    - Add a delay loop checking if NM is already on-line before running each
      test.
  * d/t/nm.py: remove expectedFailure from both tests in Hotplug.
    - It's not clear why they were expected to fail. With NM 1.44.0 they are passing.
    - As this class states that the APs are set up with NM already running, in
      test_auto_detect_ap() self.start_nm() was moved to run before
      self.setup_ap() and the assert was fixed to get the actual gobject data.

 -- Danilo Egea Gondolfo <email address hidden> Wed, 30 Aug 2023 10:09:50 +0100

Changed in network-manager (Ubuntu Mantic):
status: New → Fix Released
Changed in netplan.io (Ubuntu Mantic):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.