[Libvirt-ci] Build failed in Jenkins: libvirt+mingw32-build » libvirt-fedora-rawhide #489
by ci@centos.org
See <https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...>
Changes:
[pkrempa] util: Move the VIR_AUTO(CLEAN|PTR) helper macros into a separate header
[pkrempa] util: Don't include 'viralloc.h' into other header files
[pkrempa] util: Move enum convertors into virenum.(c|h)
[pkrempa] Include unistd.h directly by files using it
------------------------------------------
[...truncated 132.02 KB...]
GEN libvirtd.logrotate
GEN logging/log_protocol.c
GEN locking/lock_protocol.c
GEN admin/admin_protocol.c
GEN rpc/virnetprotocol.c
GEN rpc/virkeepaliveprotocol.c
GEN lxc/lxc_monitor_protocol.c
GEN remote/lxc_protocol.c
GEN remote/remote_protocol.c
GEN remote/qemu_protocol.c
GEN libvirt.syms
GEN libvirt_admin.def
GEN libvirt.def
/usr/bin/gmake all-am
gmake[3]: Entering directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
CC libvirt_driver_la-datatypes.lo
CC libvirt_driver_la-driver.lo
CC libvirt_driver_la-libvirt.lo
CC libvirt_driver_la-libvirt-domain.lo
CC libvirt_driver_la-libvirt-domain-snapshot.lo
CC libvirt_driver_la-libvirt-host.lo
CC libvirt_driver_la-libvirt-interface.lo
CC libvirt_driver_la-libvirt-network.lo
CC libvirt_driver_la-libvirt-nodedev.lo
CC libvirt_driver_la-libvirt-nwfilter.lo
CC libvirt_driver_la-libvirt-secret.lo
CC libvirt_driver_la-libvirt-storage.lo
CC libvirt_driver_la-libvirt-stream.lo
CC libvirt_qemu_la-libvirt-qemu.lo
CC libvirt_lxc_la-libvirt-lxc.lo
CC libvirt_admin_la-libvirt-admin.lo
CC libvirt_admin_la-datatypes.lo
CC admin/libvirt_driver_admin_la-admin_protocol.lo
CC admin/libvirt_driver_admin_la-admin_server.lo
CC admin/libvirt_driver_admin_la-admin_server_dispatch.lo
GEN util/virkeycode-linux.pod
GEN util/virkeycode-osx.pod
GEN util/virkeycode-atset1.pod
GEN util/virkeycode-atset2.pod
GEN util/virkeycode-atset3.pod
GEN util/virkeycode-xtkbd.pod
GEN util/virkeycode-usb.pod
GEN util/virkeycode-win32.pod
GEN util/virkeycode-qnum.pod
GEN util/virkeyname-linux.pod
GEN util/virkeyname-osx.pod
GEN util/virkeyname-win32.pod
CC util/libvirt_util_la-viralloc.lo
CC util/libvirt_util_la-virarch.lo
CC util/libvirt_util_la-virarptable.lo
CC util/libvirt_util_la-viratomic.lo
CC util/libvirt_util_la-viraudit.lo
CC util/libvirt_util_la-virauth.lo
CC util/libvirt_util_la-virauthconfig.lo
CC util/libvirt_util_la-virbitmap.lo
CC util/libvirt_util_la-virbuffer.lo
CC util/libvirt_util_la-virperf.lo
CC util/libvirt_util_la-vircgroup.lo
CC util/libvirt_util_la-vircgroupbackend.lo
CC util/libvirt_util_la-vircgroupv1.lo
CC util/libvirt_util_la-vircgroupv2.lo
CC util/libvirt_util_la-virclosecallbacks.lo
CC util/libvirt_util_la-vircommand.lo
CC util/libvirt_util_la-virconf.lo
CC util/libvirt_util_la-vircrypto.lo
CC util/libvirt_util_la-virdbus.lo
CC util/libvirt_util_la-virdevmapper.lo
CC util/libvirt_util_la-virdnsmasq.lo
CC util/libvirt_util_la-virebtables.lo
CC util/libvirt_util_la-virenum.lo
CC util/libvirt_util_la-virerror.lo
CC util/libvirt_util_la-virevent.lo
CC util/libvirt_util_la-vireventpoll.lo
CC util/libvirt_util_la-virfcp.lo
CC util/libvirt_util_la-virfdstream.lo
CC util/libvirt_util_la-virfile.lo
CC util/libvirt_util_la-virfirewall.lo
CC util/libvirt_util_la-virfirewalld.lo
CC util/libvirt_util_la-virfirmware.lo
CC util/libvirt_util_la-virgettext.lo
CC util/libvirt_util_la-virgic.lo
CC util/libvirt_util_la-virhash.lo
CC util/libvirt_util_la-virhashcode.lo
CC util/libvirt_util_la-virhook.lo
CC util/libvirt_util_la-virhostcpu.lo
CC util/libvirt_util_la-virhostdev.lo
CC util/libvirt_util_la-virhostmem.lo
CC util/libvirt_util_la-viridentity.lo
CC util/libvirt_util_la-virinitctl.lo
CC util/libvirt_util_la-viriptables.lo
CC util/libvirt_util_la-viriscsi.lo
CC util/libvirt_util_la-virjson.lo
CC util/libvirt_util_la-virkeycode.lo
CC util/libvirt_util_la-virkeyfile.lo
CC util/libvirt_util_la-virlease.lo
CC util/libvirt_util_la-virlockspace.lo
CC util/libvirt_util_la-virlog.lo
CC util/libvirt_util_la-virmacaddr.lo
CC util/libvirt_util_la-virmacmap.lo
CC util/libvirt_util_la-virmodule.lo
CC util/libvirt_util_la-virnetdev.lo
CC util/libvirt_util_la-virnetdevbandwidth.lo
CC util/libvirt_util_la-virnetdevbridge.lo
CC util/libvirt_util_la-virnetdevip.lo
CC util/libvirt_util_la-virnetdevmacvlan.lo
CC util/libvirt_util_la-virnetdevmidonet.lo
CC util/libvirt_util_la-virnetdevopenvswitch.lo
CC util/libvirt_util_la-virnetdevtap.lo
CC util/libvirt_util_la-virnetdevveth.lo
CC util/libvirt_util_la-virnetdevvlan.lo
CC util/libvirt_util_la-virnetdevvportprofile.lo
CC util/libvirt_util_la-virnetlink.lo
CC util/libvirt_util_la-virnodesuspend.lo
CC util/libvirt_util_la-virkmod.lo
CC util/libvirt_util_la-virnuma.lo
CC util/libvirt_util_la-virobject.lo
CC util/libvirt_util_la-virpci.lo
CC util/libvirt_util_la-virpidfile.lo
CC util/libvirt_util_la-virpolkit.lo
CC util/libvirt_util_la-virportallocator.lo
CC util/libvirt_util_la-virprocess.lo
CC util/libvirt_util_la-virqemu.lo
CC util/libvirt_util_la-virrandom.lo
CC util/libvirt_util_la-virresctrl.lo
CC util/libvirt_util_la-virrotatingfile.lo
CC util/libvirt_util_la-virscsi.lo
CC util/libvirt_util_la-virscsihost.lo
CC util/libvirt_util_la-virscsivhost.lo
CC util/libvirt_util_la-virseclabel.lo
CC util/libvirt_util_la-virsecret.lo
CC util/libvirt_util_la-virsexpr.lo
CC util/libvirt_util_la-virsocketaddr.lo
CC util/libvirt_util_la-virstorageencryption.lo
CC util/libvirt_util_la-virstoragefile.lo
CC util/libvirt_util_la-virstoragefilebackend.lo
CC util/libvirt_util_la-virstring.lo
In file included from ../../src/util/virstoragefile.c:27:
../../src/util/virstoragefile.c: In function 'virStorageNetHostDefClear':
../../src/util/virstoragefile.c:1765:17: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
VIR_FREE(def->socket);
^~
../../src/util/viralloc.h:555:47: note: in definition of macro 'VIR_FREE'
# define VIR_FREE(ptr) virFree(1 ? (void *) &(ptr) : (ptr))
^~~
../../src/util/virstoragefile.c:1765:17: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
VIR_FREE(def->socket);
^~
../../src/util/viralloc.h:555:55: note: in definition of macro 'VIR_FREE'
# define VIR_FREE(ptr) virFree(1 ? (void *) &(ptr) : (ptr))
^~~
In file included from ../../src/util/virstoragefile.c:37:
../../src/util/virstoragefile.c: In function 'virStorageNetHostDefCopy':
../../src/util/virstoragefile.c:1816:27: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(dst->socket, src->socket) < 0)
^~
../../src/util/virstring.h:162:43: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
../../src/util/virstoragefile.c:1816:40: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(dst->socket, src->socket) < 0)
^~
../../src/util/virstring.h:162:49: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
In file included from ../../src/util/virbitmap.h:25,
from ../../src/util/virstoragefile.h:27,
from ../../src/util/virstoragefilebackend.h:26,
from ../../src/util/virstoragefile.c:23:
../../src/util/virstoragefile.c: In function 'virStorageSourceIsSameLocation':
../../src/util/virstoragefile.c:2371:44: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^
../../src/internal.h:85:7: note: in definition of macro 'STRNEQ_NULLABLE'
((a) ? !(b) || STRNEQ((a), (b)) : !!(b))
^
../../src/util/virstoragefile.c:2371:64: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^
../../src/internal.h:85:14: note: in definition of macro 'STRNEQ_NULLABLE'
((a) ? !(b) || STRNEQ((a), (b)) : !!(b))
^
../../src/util/virstoragefile.c:2371:44: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^
../../src/internal.h:72:31: note: in definition of macro 'STRNEQ'
# define STRNEQ(a, b) (strcmp(a, b) != 0)
^
../../src/util/virstoragefile.c:2371:17: note: in expansion of macro 'STRNEQ_NULLABLE'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^~~~~~~~~~~~~~~
../../src/util/virstoragefile.c:2371:64: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^
../../src/internal.h:72:34: note: in definition of macro 'STRNEQ'
# define STRNEQ(a, b) (strcmp(a, b) != 0)
^
../../src/util/virstoragefile.c:2371:17: note: in expansion of macro 'STRNEQ_NULLABLE'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^~~~~~~~~~~~~~~
../../src/util/virstoragefile.c:2371:64: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
STRNEQ_NULLABLE(a->hosts[i].socket, b->hosts[i].socket))
^
../../src/internal.h:85:42: note: in definition of macro 'STRNEQ_NULLABLE'
((a) ? !(b) || STRNEQ((a), (b)) : !!(b))
^
In file included from ../../src/util/virstoragefile.c:37:
../../src/util/virstoragefile.c: In function 'virStorageSourceParseBackingURI':
../../src/util/virstoragefile.c:2690:34: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(src->hosts->socket, STRSKIP(uri->query, "socket=")) < 0)
^~
../../src/util/virstring.h:162:43: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
../../src/util/virstoragefile.c: In function 'virStorageSourceRBDAddHost':
../../src/util/virstoragefile.c:2788:30: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
src->hosts[src->nhosts-1].socket = NULL;
^
In file included from ../../src/util/virstoragefile.c:37:
../../src/util/virstoragefile.c: In function 'virStorageSourceParseNBDColonString':
../../src/util/virstoragefile.c:2945:34: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(src->hosts->socket, backing[2]) < 0)
^~
../../src/util/virstring.h:162:43: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
../../src/util/virstoragefile.c: In function 'virStorageSourceParseBackingJSONSocketAddress':
../../src/util/virstoragefile.c:3173:28: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(host->socket, socket) < 0)
^~
../../src/util/virstring.h:162:43: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
../../src/util/virstoragefile.c: In function 'virStorageSourceParseBackingJSONNbd':
../../src/util/virstoragefile.c:3344:41: error: 'virStorageNetHostDef' {aka 'struct _virStorageNetHostDef'} has no member named 'socket_used_without_including_sys_socket_h'
if (VIR_STRDUP(src->hosts[0].socket, path) < 0)
^
../../src/util/virstring.h:162:43: note: in definition of macro 'VIR_STRDUP'
# define VIR_STRDUP(dst, src) virStrdup(&(dst), src, true, VIR_FROM_THIS, \
^~~
gmake[3]: *** [Makefile:12241: util/libvirt_util_la-virstoragefile.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm util/virkeyname-osx.pod util/virkeycode-xtkbd.pod util/virkeycode-atset3.pod util/virkeycode-usb.pod util/virkeycode-qnum.pod util/virkeycode-win32.pod util/virkeyname-linux.pod util/virkeycode-osx.pod util/virkeycode-linux.pod util/virkeycode-atset1.pod util/virkeyname-win32.pod util/virkeycode-atset2.pod
gmake[3]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake[2]: *** [Makefile:7063: all] Error 2
gmake[2]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake[1]: *** [Makefile:2125: all-recursive] Error 1
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake: *** [Makefile:2018: all] Error 2
Build step 'Execute shell' marked build as failure
5 years, 8 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-rawhide #305
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhi...>
------------------------------------------
[...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-rawhi...,> 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-rawhi...,> 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
5 years, 8 months