[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-rawhide #305

ci at centos.org ci at centos.org
Fri Apr 5 19:22:04 UTC 2019


See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhide/305/display/redirect>

------------------------------------------
[...truncated 6.23 KB...]
FAIL: test_connect.py
=====================

============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-3.9.3, py-1.7.0, pluggy-0.8.1
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhide/ws/,> inifile:
collected 35 items

../../tests/test_connect.py E.....F........E..................E          [100%]

==================================== ERRORS ====================================
_________ ERROR at setup of TestConnect.test_connect_domain_create_xml _________

self = <test_connect.TestConnect object at 0x7fb6b4578eb8>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_connect_domain_create_xml'>>

    @pytest.fixture(autouse=True)
    def libvirt_dbus_setup(self, request):
        """Start libvirt-dbus for each test function
        """
        os.environ['LIBVIRT_DEBUG'] = '3'
        self.libvirt_dbus = subprocess.Popen([exe, '--session'])
        self.bus = dbus.SessionBus()
    
        for i in range(10):
            if self.bus.name_has_owner('org.libvirt'):
                break
            time.sleep(0.1)
        else:
>           raise TimeoutError('error starting libvirt-dbus')
E           TimeoutError: error starting libvirt-dbus

../../tests/libvirttest.py:44: TimeoutError
---------------------------- Captured stderr setup -----------------------------
dbus-daemon[30002]: Cannot setup inotify for '/home/jenkins/.local/share/dbus-1/services'; error 'Permission denied'
 ERROR at setup of TestConnect.test_connect_interface_lookup_by_property[InterfaceLookupByMAC-MAC] 

self = <test_connect.TestConnect object at 0x7fb6b4518908>

    @pytest.fixture
    def interface_create(self):
        """ Fixture to define dummy interface on the test driver
    
        This fixture should be used in the setup of every test manipulating
        with interfaces.
        """
        path = self.connect.InterfaceDefineXML(xmldata.minimal_interface_xml, 0)
        obj = self.bus.get_object('org.libvirt', path)
        interface_obj = dbus.Interface(obj, 'org.libvirt.Interface')
>       interface_obj.Create(0)

../../tests/libvirttest.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.7/site-packages/dbus/proxies.py:70: in __call__
    return self._proxy_method(*args, **keywords)
/usr/lib64/python3.7/site-packages/dbus/proxies.py:145: in __call__
    **keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dbus._dbus.SessionBus (session) at 0x7fb6b46be308>
bus_name = dbus.String(':1.1')
object_path = dbus.ObjectPath('/org/libvirt/Test/interface/11_3a22_3a33_3a44_3a55_3a66')
dbus_interface = 'org.libvirt.Interface', method = 'Create', signature = 'u'
args = (0,), timeout = -1.0, byte_arrays = False, kwargs = {}
get_args_opts = {'byte_arrays': False}
message = <dbus.lowlevel.MethodCallMessage path: /org/libvirt/Test/interface/11_3a22_3a33_3a44_3a55_3a66, iface: org.libvirt.Interface, member: Create dest: :1.1>

    def call_blocking(self, bus_name, object_path, dbus_interface, method,
                      signature, args, timeout=-1.0,
                      byte_arrays=False, **kwargs):
        """Call the given method, synchronously.
        :Since: 0.81.0
        """
        if object_path == LOCAL_PATH:
            raise DBusException('Methods may not be called on the reserved '
                                'path %s' % LOCAL_PATH)
        if dbus_interface == LOCAL_IFACE:
            raise DBusException('Methods may not be called on the reserved '
                                'interface %s' % LOCAL_IFACE)
        # no need to validate other args - MethodCallMessage ctor will do
    
        get_args_opts = dict(byte_arrays=byte_arrays)
        if is_py2:
            get_args_opts['utf8_strings'] = kwargs.get('utf8_strings', False)
        elif 'utf8_strings' in kwargs:
            raise TypeError("unexpected keyword argument 'utf8_strings'")
    
        message = MethodCallMessage(destination=bus_name,
                                    path=object_path,
                                    interface=dbus_interface,
                                    method=method)
        # Add the arguments to the function
        try:
            message.append(signature=signature, *args)
        except Exception as e:
            logging.basicConfig()
            _logger.error('Unable to set arguments %r according to '
                          'signature %r: %s: %s',
                          args, signature, e.__class__, e)
            raise
    
        # make a blocking call
        reply_message = self.send_message_with_reply_and_block(
>           message, timeout)
E       dbus.exceptions.DBusException: org.libvirt.Error: Requested operation is not valid

/usr/lib64/python3.7/site-packages/dbus/connection.py:651: DBusException
 ERROR at setup of TestConnect.test_connect_storage_vol_lookup_by_property[StorageVolLookupByPath-Path] 

self = <test_connect.TestConnect object at 0x7fb6b44c3828>

    @pytest.fixture
    def storage_volume_create(self):
        """ Fixture to create dummy storage volume on the test driver
    
        This fixture should be used in the setup of every test manipulating
        with test volume.
        """
        _, test_storage_pool = self.get_test_storage_pool()
        interface_obj = dbus.Interface(test_storage_pool,
                                       'org.libvirt.StoragePool')
>       path = interface_obj.StorageVolCreateXML(xmldata.minimal_storage_vol_xml, 0)

../../tests/libvirttest.py:122: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.7/site-packages/dbus/proxies.py:70: in __call__
    return self._proxy_method(*args, **keywords)
/usr/lib64/python3.7/site-packages/dbus/proxies.py:145: in __call__
    **keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dbus._dbus.SessionBus (session) at 0x7fb6b46be308>
bus_name = dbus.String(':1.1')
object_path = dbus.ObjectPath('/org/libvirt/Test/storagepool/_35bb2ad9_388a_cdfe_461a_b8907f6e53fe')
dbus_interface = 'org.libvirt.StoragePool', method = 'StorageVolCreateXML'
signature = 'su'
args = ('\n<volume>\n  <name>sparse.img</name>\n  <capacity unit="G">2</capacity>\n  <target>\n    <path>/var/lib/virt/images/sparse.img</path>\n  </target>\n</volume>\n', 0)
timeout = -1.0, byte_arrays = False, kwargs = {}
get_args_opts = {'byte_arrays': False}
message = <dbus.lowlevel.MethodCallMessage path: /org/libvirt/Test/storagepool/_35bb2ad9_388a_cdfe_461a_b8907f6e53fe, iface: org.libvirt.StoragePool, member: StorageVolCreateXML dest: :1.1>

    def call_blocking(self, bus_name, object_path, dbus_interface, method,
                      signature, args, timeout=-1.0,
                      byte_arrays=False, **kwargs):
        """Call the given method, synchronously.
        :Since: 0.81.0
        """
        if object_path == LOCAL_PATH:
            raise DBusException('Methods may not be called on the reserved '
                                'path %s' % LOCAL_PATH)
        if dbus_interface == LOCAL_IFACE:
            raise DBusException('Methods may not be called on the reserved '
                                'interface %s' % LOCAL_IFACE)
        # no need to validate other args - MethodCallMessage ctor will do
    
        get_args_opts = dict(byte_arrays=byte_arrays)
        if is_py2:
            get_args_opts['utf8_strings'] = kwargs.get('utf8_strings', False)
        elif 'utf8_strings' in kwargs:
            raise TypeError("unexpected keyword argument 'utf8_strings'")
    
        message = MethodCallMessage(destination=bus_name,
                                    path=object_path,
                                    interface=dbus_interface,
                                    method=method)
        # Add the arguments to the function
        try:
            message.append(signature=signature, *args)
        except Exception as e:
            logging.basicConfig()
            _logger.error('Unable to set arguments %r according to '
                          'signature %r: %s: %s',
                          args, signature, e.__class__, e)
            raise
    
        # make a blocking call
        reply_message = self.send_message_with_reply_and_block(
>           message, timeout)
E       dbus.exceptions.DBusException: org.libvirt.Error: operation failed: storage vol already exists

/usr/lib64/python3.7/site-packages/dbus/connection.py:651: DBusException
=================================== FAILURES ===================================
____________________ TestConnect.test_connect_list_domains _____________________

self = <test_connect.TestConnect object at 0x7fb6b46bae48>

    def test_connect_list_domains(self):
        domains = self.connect.ListDomains(0)
        assert isinstance(domains, dbus.Array)
>       assert len(domains) == 1
E       AssertionError: assert 2 == 1
E        +  where 2 = len(dbus.Array([dbus.ObjectPath('/org/libvirt/Test/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f'), dbus.ObjectPath('/org/libvirt/Test/domain/_763fb09f_7f58_403e_9c96_d61a40ee29c9')], signature=dbus.Signature('o')))

../../tests/test_connect.py:62: AssertionError
=============================== warnings summary ===============================
tests/test_connect.py::TestConnect::()::test_connect_interface_lookup_by_property[InterfaceLookupByMAC-MAC]
  source:362: DeprecationWarning: invalid escape sequence \
  source:399: DeprecationWarning: invalid escape sequence \

tests/test_connect.py::TestConnect::()::test_connect_node_device_create_xml
  /usr/lib/python3.7/site-packages/_pytest/python.py:164: RemovedInPytest4Warning: Fixture "node_device_create" called directly. Fixtures are not meant to be called directly, are created automatically when test functions request them as parameters. See https://docs.pytest.org/en/latest/fixture.html for more information.
    testfunction(**testargs)

tests/test_connect.py::TestConnect::()::test_connect_storage_vol_lookup_by_property[StorageVolLookupByPath-Path]
  source:362: DeprecationWarning: invalid escape sequence \
  source:399: DeprecationWarning: invalid escape sequence \

-- Docs: https://docs.pytest.org/en/latest/warnings.html
========== 1 failed, 31 passed, 5 warnings, 3 error in 14.40 seconds ===========
FAIL test_connect.py (exit status: 1)

FAIL: test_domain.py
====================

============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-3.9.3, py-1.7.0, pluggy-0.8.1
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhide/ws/,> inifile:
collected 10 items

../../tests/test_domain.py .......E..                                    [100%]

==================================== ERRORS ====================================
__________________ ERROR at setup of TestDomain.test_undefine __________________

self = <test_domain.TestDomain object at 0x7fb681e9a6a0>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_undefine'>>

    @pytest.fixture(autouse=True)
    def libvirt_dbus_setup(self, request):
        """Start libvirt-dbus for each test function
        """
        os.environ['LIBVIRT_DEBUG'] = '3'
        self.libvirt_dbus = subprocess.Popen([exe, '--session'])
        self.bus = dbus.SessionBus()
    
        for i in range(10):
            if self.bus.name_has_owner('org.libvirt'):
                break
            time.sleep(0.1)
        else:
>           raise TimeoutError('error starting libvirt-dbus')
E           TimeoutError: error starting libvirt-dbus

../../tests/libvirttest.py:44: TimeoutError
====================== 9 passed, 1 error in 12.94 seconds ======================
FAIL test_domain.py (exit status: 1)

+ exit 1
Build step 'Execute shell' marked build as failure




More information about the Libvirt-ci mailing list