On further investigations I have found out that, despite of Network
Manager setting up all the requested configurations correctly, sometimes
the nmdev.get_ip6_config() in the check_connected_device_config()
function in nm.py stays empty (but does not stay None) letting the
initial test pass and the check for the IP addresses fail. We do not
have a type too slow reaction here which could get worked around/fixed
by adding a longer delay or making timeouts longer, the structure stays
empty even after several minutes. The request for this structure seems
not to cause any interaction with network manager as the debug log which
is shown on each failed test does not show entries at the time of
calling the get_ip6_config() method.

Skipping the check_connected_device_config() call makes the remaining
tests of the configuration/connection being done and they all pass
safely, especially also the check_low_level_config() call which actually
confirms that the interface has gotten the correct IP addresses
(check_connected_device_config() in the IPv6 case only checks for the
minimum number of IPs though).

So as a workaround (fix?) I have skipped the
check_connected_device_config() function call now. This way all tests
pass for me with the correct IP addresses confirmed.

This I have done in the last commit in the merge request attached to
this bug report. The others are general fixes/improvements on the nm.py
script.

** Changed in: network-manager (Ubuntu)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836209

Title:
  network-manager 1.18.0-1ubuntu5 ADT test failure with linux 5.2.0-8.9

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1836209/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to