RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1795304 - [NMCI] tests/integration/interface_common_test.py::test_take_over_virtual_interface_and_rollback
Summary: [NMCI] tests/integration/interface_common_test.py::test_take_over_virtual_int...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-27 16:28 UTC by Vladimir Benes
Modified: 2021-03-22 11:11 UTC (History)
7 users (show)

Fixed In Version: nmstate-0.3.2-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:08:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4696 0 None None None 2020-11-04 03:08:48 UTC

Description Vladimir Benes 2020-01-27 16:28:00 UTC
Description of problem:
________________ test_take_over_virtual_interface_and_rollback _________________

ip_link_dummy = None

    def test_take_over_virtual_interface_and_rollback(ip_link_dummy):
>       with dummy_interface(DUMMY_INTERFACE) as dummy_desired_state:

tests/integration/interface_common_test.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.6/contextlib.py:81: in __enter__
    return next(self.gen)
tests/integration/interface_common_test.py:59: in dummy_interface
    libnmstate.apply(dummy_desired_state)
/usr/lib/python3.6/site-packages/libnmstate/netapplier.py:66: in apply
    state.State(desired_state), verify_change, commit, rollback_timeout
/usr/lib/python3.6/site-packages/libnmstate/netapplier.py:148: in _apply_ifaces_state
    con_profiles=ifaces_add_configs + ifaces_edit_configs,
/usr/lib64/python3.6/contextlib.py:88: in __exit__
    next(self.gen)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    @contextmanager
    def _setup_providers():
        mainloop = nmclient.mainloop()
        yield
        success = mainloop.run(timeout=MAINLOOP_TIMEOUT)
        if not success:
            nmclient.mainloop(refresh=True)
            raise NmstateLibnmError(
                "Unexpected failure of libnm when running the mainloop: {}".format(
>                   mainloop.error
                )
            )
E           libnmstate.error.NmstateLibnmError: Unexpected failure of libnm when running the mainloop: run timeout

/usr/lib/python3.6/site-packages/libnmstate/netapplier.py:215: NmstateLibnmError
------------------------------ Captured log setup ------------------------------
DEBUG    root:cmd.py:40 ip link add dummy_test type dummy (cwd None)
DEBUG    root:cmd.py:53 SUCCESS: <err> = b''; <rc> = 0
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/connection.py", line 172, in _active_connection_callback
    nm_act_con = src_object.activate_connection_finish(result)
GLib.Error: nm-manager-error-quark: The device 'dummy_test' has no connections available for activation. (2)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/connection.py", line 192, in _active_connection_callback
    elif self._is_ovs_plugin_missing(e):
  File "/usr/lib/python3.6/site-packages/libnmstate/nm/connection.py", line 246, in _is_ovs_plugin_missing
    self._con_profile.is_type(
AttributeError: 'NoneType' object has no attribute 'is_type'
------------------------------ Captured log call -------------------------------
DEBUG    root:checkpoint.py:117 Checkpoint /org/freedesktop/NetworkManager/Checkpoint/293 created for all devices: 60
DEBUG    root:netapplier.py:221 Adding new interfaces: []
DEBUG    root:netapplier.py:233 Editing interfaces: ['dummy_test']
DEBUG    root:connection.py:461 Connection settings for ConnectionSetting.create:
id: dummy_test
iface: dummy_test
uuid: 2b70ebed-04de-4c7c-b562-778f4f2ff280
type: dummy
autoconnect: True
autoconnect_slaves: <enum NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_YES of type NM.SettingConnectionAutoconnectSlaves>
DEBUG    root:nmclient.py:115 Executing NM action: func=add_connection_async
DEBUG    root:connection.py:337 Connection adding succeeded: dev=dummy_test
DEBUG    root:nmclient.py:115 Executing NM action: func=_safe_modify_async
DEBUG    root:device.py:143 Device reapply failed on dummy_test: error=nm-device-error-quark: Device is not activated (4)
Fallback to device activation
WARNING  root:nmclient.py:213 NM main-loop timed out.
DEBUG    root:checkpoint.py:139 Checkpoint /org/freedesktop/NetworkManager/Checkpoint/293 rollback executed: dbus.Dictionary({dbus.String('/org/freedesktop/NetworkManager/Devices/46'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/3'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/4'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/2'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/6'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/7'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/1'): dbus.UInt32(0), dbus.String('/org/freedesktop/NetworkManager/Devices/5'): dbus.UInt32(0)}, signature=dbus.Signature('su'))
---------------------------- Captured log teardown -----------------------------
DEBUG    root:cmd.py:40 ip link del dummy_test (cwd None)
DEBUG    root:cmd.py:53 SUCCESS: <err> = b''; <rc> = 0


Version-Release number of selected component (if applicable):
platform linux -- Python 3.6.8, pytest-5.3.4, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
RPMs: NetworkManager-1.22.4-1.el8.x86_64
OS: Red Hat Enterprise Linux 8.2 Beta (Ootpa)

rootdir: /mnt/tests/NetworkManager-ci/nmstate, inifile: tox.ini
collecting ... collected 192 items / 191 deselected / 1 selected

nmstate-0.2.1-0.20200127.851git22ea377.el8

Comment 1 Till Maas 2020-02-21 08:54:20 UTC
There have been several changes to Nmstate and NM that fix problems like this. Vlad, could you please check if this issue is still present in the NM CI?

Comment 2 Vladimir Benes 2020-02-21 15:38:45 UTC
still seeing this in nmstate-0.2.5 and NM-1.22.8

Comment 8 Gris Ge 2020-06-17 06:11:37 UTC
Hi  Vladimir,

Can you try again in NMCI with nmstate-0.3.2-1.el8.

I tested in my VM(RHEL 8.3), the test case passed.

Comment 9 Mingyu Shi 2020-07-17 16:33:05 UTC
Verified with versions:
nmstate-0.3.3-2.el8.noarch
NetworkManager-1.26.0-1.el8.x86_64
DISTRO=RHEL-8.3.0-20200717.n.0                             
DISTRO=RHEL-8.3.0-20200717.n.0                             
Linux dell-per740-06.rhts.eng.pek2.redhat.com 4.18.0-226.el8.x86_64 #1 SMP Wed Jul 15 07:40:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


[00:29:41@dell-per740-06 ~/nmstate/tests/integration]0# pytest interface_common_test.py -vv 
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.6.8, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
RPMs: NetworkManager-1.26.0-1.el8.x86_64
OS: Red Hat Enterprise Linux 8.3 Beta (Ootpa)
nmstate: nmstate-0.3.3-2.el8.noarch

rootdir: /root/nmstate, inifile: tox.ini
collected 3 items                                                                                                                                                                                                                            

interface_common_test.py::test_iface_description_removal PASSED  [ 33%]
interface_common_test.py::test_take_over_virtual_interface_then_remove PASSED  [ 66%]
interface_common_test.py::test_take_over_virtual_interface_and_rollback PASSED [100%]

Comment 13 errata-xmlrpc 2020-11-04 03:08:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4696


Note You need to log in before you can comment on or make changes to this bug.