python 3.1 introduced a new module called importlib. imp is deprecated since 3.4. Also some parts of importlib will be deprecated in 3.6. See: https://docs.python.org/3.6/library/importlib.html http://stackoverflow.com/questions/35288021/what-is-the-equivalent-of-imp-find-module-in-importlib
In [1] I understand that some methods, but not the whole importlib are deprecated. In VDSM I found some references to importlib.import_module, which seems to be not deprecated. Gal, can you please help me to understand which calls should be removed from VDSM? [1] https://docs.python.org/3.6/library/importlib.html
maybe I wasn't clear in the description of the bug :) the use of importlib is ok, the problem is that some parts of VDSM are using imp which is pending deprecation in favor of importlib. as you can see in: https://docs.python.org/3/library/imp.html a search in vdsm will show you that the following code still uses imp: lib/sos/vdsm.py.in static/usr/bin/vdsm-tool tests/bridge_test I notice it while I was working on packaging sos, probably because I once wrote a similar patch for otopi: https://gerrit.ovirt.org/#/c/91908/
None of the occurrences of "imp" is related to network, moving to infra.
Verification is that vdsm-tool still works correctly.
Verified on vdsm-4.40.5-1.el8ev.x86_64
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.