Reproducible in local VM based autopkgtest with old vs new libvirt Can be reduced to one test like /tmp/autopkgtest.hEvpE1/build.rQh/src$ python3 -Wd -m pytest -vv -rs tests/factory/test_factory.py::test_ubuntu
ubuntu@autopkgtest:/tmp/autopkgtest.Pe4Bbu/build.ROR/src$ python3 -Wd -m pytest -vv -rs tests/factory/test_factory.py::test_ubuntu /usr/lib/python3/dist-packages/_pytest/compat.py:340: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk. See https://docs.pytest.org/en/stable/deprecations.html#terminalreporter-writer for more information. return getattr(object, name, default) ===================================================================================== test session starts ===================================================================================== platform linux -- Python 3.9.6, pytest-6.0.2, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /tmp/autopkgtest.Pe4Bbu/build.ROR/src collected 1 item tests/factory/test_factory.py::test_ubuntu FAILED [100%] ========================================================================================== FAILURES =========================================================================================== _________________________________________________________________________________________ test_ubuntu _________________________________________________________________________________________ def test_ubuntu(): for version in ["5.04", "5.10", "6.06", "6.06.1", "6.06.2", "6.10", "7.04", "7.10", "8.04", "8.04.1", "8.04.2", "8.04.3", "8.04.4", "8.10", "9.04", "9.10", "10.04", "10.04.1", "10.04.2", "10.04.3", "10.10", "11.04", "11.10", "12.04", "12.04.1", "12.04.2", "12.04.3", "12.10", "13.04", "13.10", "14.04", "14.10", "15.04", "15.10", "16.04", "16.10", "17.04", "17.10", "18.04"]: for arch in ["i386", "x86_64"]: for installtype in ["iso", "url"]: > runtest(distro='Ubuntu', version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:290: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:98: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:101: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Ubuntu.py:1341: in get_class return UbuntuGuest(tdl, config, auto, output_disk, "initrd.lz", oz/Ubuntu.py:700: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1313: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:248: in __init__ self.connect_to_libvirt() oz/Guest.py:127: in connect_to_libvirt self.libvirt_conn = libvirt.open(self.libvirt_uri) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'qemu:///session' def open(name=None): """This function should be called first to get a connection to the Hypervisor and xen store If @name is None, if the LIBVIRT_DEFAULT_URI environment variable is set, then it will be used. Otherwise if the client configuration file has the "uri_default" parameter set, then it will be used. Finally probing will be done to determine a suitable default driver to activate. This involves trying each hypervisor in turn until one successfully opens. If connecting to an unprivileged hypervisor driver which requires the libvirtd daemon to be active, it will automatically be launched if not already running. This can be prevented by setting the environment variable LIBVIRT_AUTOSTART=0 URIs are documented at https://libvirt.org/uri.html virConnectClose should be used to release the resources after the connection is no longer needed. """ ret = libvirtmod.virConnectOpen(name) if ret is None: > raise libvirtError('virConnectOpen() failed') E libvirt.libvirtError: Failed to connect socket to '/run/user/1000/libvirt/virtqemud-sock': No such file or directory /usr/lib/python3/dist-packages/libvirt.py:336: libvirtError ------------------------------------------------------------------------------------ Captured stdout call ------------------------------------------------------------------------------------- Testing Ubuntu-5.04-i386-iso ====================================================================================== warnings summary ======================================================================================= tests/factory/test_factory.py:60 /tmp/autopkgtest.Pe4Bbu/build.ROR/src/tests/factory/test_factory.py:60: ResourceWarning: unclosed file <_io.TextIOWrapper name='/proc/net/route' mode='r' encoding='UTF-8'> route = default_route() tests/factory/test_factory.py::test_ubuntu /tmp/autopkgtest.Pe4Bbu/build.ROR/src/tests/factory/test_factory.py:90: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead. config = configparser.SafeConfigParser() tests/factory/test_factory.py::test_ubuntu /tmp/autopkgtest.Pe4Bbu/build.ROR/src/tests/factory/test_factory.py:91: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. config.readfp(StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) -- Docs: https://docs.pytest.org/en/stable/warnings.html ================================================================================ 1 failed, 3 warnings in 6.12s ================================================================================ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1939677 Title: oz test fails in impish with new libvirt 7.6 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1939677/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
