[Libvirt-ci] Build failed in Jenkins: libvirt+mingw32-build » libvirt-fedora-rawhide #58
by ci@centos.org
See <https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...>
Changes:
[mprivozn] virsh: Implement vsh-table to iface-list
[mprivozn] virsh: Implement vshTable API to net-list and net-dhcp-leases
[mprivozn] virsh: Implement vshTable API to secret-list
[mprivozn] virsh: Implement vshTable API to nwfilter-list and nwfilterbinding-list
[mprivozn] virsh: Implement vshTable API to snapshot-list.
[mprivozn] virsh: Set up cmdDomblkinfo() and cmdDomblkinfoPrint() for vshTable API
[mprivozn] virsh: Implement vshTable API to domblkinfo
[mprivozn] virsh: Implement vshTable API to domblklist
[mprivozn] virsh: Implement vshTable API to domiflist
[mprivozn] virsh: Implement vshTable API to vcpupin, iothreadinfo, domfsinfo
[mprivozn] virsh: Implement vshTable API to pool-list
[mprivozn] virsh: Implement vshTable API to vol-list
[mprivozn] virt-admin: Implement vshTable API to server-list and client-list
[mprivozn] util: Fix misaligned arguments and misaligned conditions for
[mprivozn] build-aux:check-spacing: Add wrapper function of CheckFunctionBody
[mprivozn] build-aux:check-spacing: Add wrapper function of KillComments
[mprivozn] build-aux:check-spacing: Add wrapper function of CheckWhiteSpaces
[mprivozn] build-aux:check-spacing: Add wrapper function of CheckCurlyBrackets
[mprivozn] build-aux:check-spacing: Introduce a new rule to check misaligned stuff
------------------------------------------
[...truncated 136.43 KB...]
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
CC util/libvirt_util_la-virsysinfo.lo
CC util/libvirt_util_la-virsystemd.lo
CC util/libvirt_util_la-virthread.lo
CC util/libvirt_util_la-virthreadjob.lo
CC util/libvirt_util_la-virthreadpool.lo
CC util/libvirt_util_la-virtime.lo
CC util/libvirt_util_la-virtpm.lo
CC util/libvirt_util_la-virtypedparam.lo
CC util/libvirt_util_la-virusb.lo
CC util/libvirt_util_la-viruri.lo
CC util/libvirt_util_la-virutil.lo
CC util/libvirt_util_la-viruuid.lo
CC util/libvirt_util_la-virvhba.lo
CC util/libvirt_util_la-virvsock.lo
CC util/libvirt_util_la-virxml.lo
CC util/libvirt_util_la-virmdev.lo
CC util/libvirt_util_la-virfilecache.lo
CC conf/libvirt_conf_la-netdev_bandwidth_conf.lo
CC conf/libvirt_conf_la-netdev_vport_profile_conf.lo
CC conf/libvirt_conf_la-netdev_vlan_conf.lo
CC conf/libvirt_conf_la-capabilities.lo
CC conf/libvirt_conf_la-domain_addr.lo
CC conf/libvirt_conf_la-domain_capabilities.lo
CC conf/libvirt_conf_la-domain_conf.lo
CC conf/libvirt_conf_la-domain_audit.lo
CC conf/libvirt_conf_la-domain_nwfilter.lo
CC conf/libvirt_conf_la-virsavecookie.lo
CC conf/libvirt_conf_la-snapshot_conf.lo
CC conf/libvirt_conf_la-numa_conf.lo
CC conf/libvirt_conf_la-virdomainobjlist.lo
CC conf/libvirt_conf_la-object_event.lo
CC conf/libvirt_conf_la-domain_event.lo
CC conf/libvirt_conf_la-network_event.lo
CC conf/libvirt_conf_la-storage_event.lo
CC conf/libvirt_conf_la-node_device_event.lo
CC conf/libvirt_conf_la-secret_event.lo
CC conf/libvirt_conf_la-network_conf.lo
CC conf/libvirt_conf_la-virnetworkobj.lo
CC conf/libvirt_conf_la-networkcommon_conf.lo
CC conf/libvirt_conf_la-nwfilter_params.lo
CC conf/libvirt_conf_la-nwfilter_ipaddrmap.lo
CC conf/libvirt_conf_la-nwfilter_conf.lo
CC conf/libvirt_conf_la-virnwfilterobj.lo
CC conf/libvirt_conf_la-virnwfilterbindingdef.lo
CC conf/libvirt_conf_la-virnwfilterbindingobj.lo
CC conf/libvirt_conf_la-virnwfilterbindingobjlist.lo
CC conf/libvirt_conf_la-node_device_conf.lo
CC conf/libvirt_conf_la-virnodedeviceobj.lo
CC conf/libvirt_conf_la-storage_adapter_conf.lo
CC conf/libvirt_conf_la-storage_conf.lo
CC conf/libvirt_conf_la-virstorageobj.lo
CC conf/libvirt_conf_la-interface_conf.lo
CC conf/libvirt_conf_la-virinterfaceobj.lo
CC conf/libvirt_conf_la-secret_conf.lo
CC conf/libvirt_conf_la-virsecretobj.lo
CC conf/libvirt_conf_la-cpu_conf.lo
CC conf/libvirt_conf_la-virchrdev.lo
CC conf/libvirt_conf_la-device_conf.lo
CC cpu/libvirt_cpu_la-cpu.lo
CC cpu/libvirt_cpu_la-cpu_x86.lo
CC cpu/libvirt_cpu_la-cpu_s390.lo
CC cpu/libvirt_cpu_la-cpu_arm.lo
CC cpu/libvirt_cpu_la-cpu_ppc64.lo
CC cpu/libvirt_cpu_la-cpu_map.lo
CC security/libvirt_security_manager_la-security_driver.lo
CC security/libvirt_security_manager_la-security_nop.lo
CC security/libvirt_security_manager_la-security_stack.lo
CC security/libvirt_security_manager_la-security_dac.lo
CC security/libvirt_security_manager_la-security_manager.lo
CC access/libvirt_driver_access_la-viraccessperm.lo
CC access/libvirt_driver_access_la-viraccessmanager.lo
CC access/libvirt_driver_access_la-viraccessdrivernop.lo
CC access/libvirt_driver_access_la-viraccessdriverstack.lo
CC access/libvirt_driver_access_la-viraccessapicheck.lo
CC access/libvirt_driver_access_la-viraccessapicheckqemu.lo
CC access/libvirt_driver_access_la-viraccessapichecklxc.lo
CC access/libvirt_driver_access_la-viraccessdriverpolkit.lo
CC rpc/libvirt_net_rpc_la-virnetmessage.lo
CC rpc/libvirt_net_rpc_la-virnettlscontext.lo
CC rpc/libvirt_net_rpc_la-virnetsocket.lo
CC rpc/libvirt_net_rpc_la-virkeepalive.lo
CC rpc/libvirt_net_rpc_la-virnetprotocol.lo
CC rpc/libvirt_net_rpc_la-virkeepaliveprotocol.lo
CC rpc/libvirt_net_rpc_la-virnetsshsession.lo
CC rpc/libvirt_net_rpc_server_la-virnetserverprogram.lo
CC rpc/libvirt_net_rpc_server_la-virnetserverservice.lo
CC rpc/libvirt_net_rpc_server_la-virnetserverclient.lo
CC rpc/libvirt_net_rpc_server_la-virnetservermdns.lo
CC rpc/libvirt_net_rpc_server_la-virnetdaemon.lo
CC rpc/libvirt_net_rpc_server_la-virnetserver.lo
CC rpc/libvirt_net_rpc_client_la-virnetclientprogram.lo
CC rpc/libvirt_net_rpc_client_la-virnetclientstream.lo
CC rpc/libvirt_net_rpc_client_la-virnetclient.lo
CC phyp/libvirt_driver_phyp_la-phyp_driver.lo
CC test/libvirt_driver_test_la-test_driver.lo
CC esx/libvirt_driver_esx_la-esx_driver.lo
CC esx/libvirt_driver_esx_la-esx_interface_driver.lo
CC esx/libvirt_driver_esx_la-esx_network_driver.lo
CC esx/libvirt_driver_esx_la-esx_storage_driver.lo
CC esx/libvirt_driver_esx_la-esx_storage_backend_vmfs.lo
CC esx/libvirt_driver_esx_la-esx_storage_backend_iscsi.lo
CC esx/libvirt_driver_esx_la-esx_stream.lo
CC esx/libvirt_driver_esx_la-esx_util.lo
CC esx/libvirt_driver_esx_la-esx_vi.lo
CC esx/libvirt_driver_esx_la-esx_vi_methods.lo
CC esx/libvirt_driver_esx_la-esx_vi_types.lo
CC vmx/libvirt_vmx_la-vmx.lo
CC vmware/libvirt_driver_vmware_la-vmware_driver.lo
CC vmware/libvirt_driver_vmware_la-vmware_conf.lo
CC secret/libvirt_secret_la-secret_util.lo
CC remote/libvirt_driver_remote_la-remote_driver.lo
CC remote/libvirt_driver_remote_la-remote_protocol.lo
CC remote/libvirt_driver_remote_la-lxc_protocol.lo
CC remote/libvirt_driver_remote_la-qemu_protocol.lo
CC logging/libvirt_driver_la-log_protocol.lo
CC logging/libvirt_driver_la-log_manager.lo
CC locking/libvirt_driver_la-lock_manager.lo
CC locking/libvirt_driver_la-lock_driver_nop.lo
CC locking/libvirt_driver_la-domain_lock.lo
CC admin/libvirt_admin_la-admin_protocol.lo
CCLD libvirt_driver_admin.la
GEN util/virkeycode-linux.7
GEN util/virkeycode-osx.7
GEN util/virkeycode-atset1.7
GEN util/virkeycode-atset2.7
GEN util/virkeycode-atset3.7
GEN util/virkeycode-xtkbd.7
GEN util/virkeycode-usb.7
GEN util/virkeycode-win32.7
GEN util/virkeycode-qnum.7
GEN util/virkeyname-linux.7
GEN util/virkeyname-osx.7
GEN util/virkeyname-win32.7
CCLD libvirt_util.la
CCLD libvirt_conf.la
CCLD libvirt_cpu.la
CCLD libvirt_security_manager.la
CCLD libvirt_driver_access.la
CCLD libvirt-net-rpc.la
CCLD libvirt-net-rpc-server.la
CCLD libvirt-net-rpc-client.la
CCLD libvirt_driver_phyp.la
CCLD libvirt_driver_test.la
CCLD libvirt_driver_esx.la
CCLD libvirt_vmx.la
CCLD libvirt_driver_vmware.la
CCLD libvirt_secret.la
CCLD libvirt_driver_remote.la
CCLD libvirt_driver.la
CCLD libvirt.la
CCLD libvirt-lxc.la
CCLD libvirt-qemu.la
CCLD libvirt-admin.la
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]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
Making all in tools
gmake[2]: Entering directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
GEN libvirt-guests.sh
/usr/bin/gmake all-am
gmake[3]: Entering directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
CC virsh-virsh.o
CC virsh-virsh-completer.o
CC virsh-virsh-console.o
CC virsh-virsh-domain.o
CC virsh-virsh-domain-monitor.o
CC virsh-virsh-host.o
CC virsh-virsh-interface.o
CC virsh-virsh-network.o
CC virsh-virsh-nodedev.o
CC virsh-virsh-nwfilter.o
CC virsh-virsh-pool.o
CC virsh-virsh-secret.o
In file included from ../../tools/virsh-domain.c:53:
../../tools/virsh-domain.c: In function 'virshVcpuPinQuery':
../../tools/virsh-domain.c:6952:39: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
if (virAsprintf(&vcpuStr, "%lu", i) < 0)
^~~~~ ~
../../src/util/virstring.h:261:31: note: in definition of macro 'virAsprintf'
strp, __VA_ARGS__)
^~~~~~~~~~~
cc1: all warnings being treated as errors
gmake[3]: *** [Makefile:2909: virsh-virsh-domain.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake[2]: *** [Makefile:2430: all] Error 2
gmake[2]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake[1]: *** [Makefile:2111: all-recursive] Error 1
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt+mingw32-build/systems=libvirt-fedora-ra...'>
gmake: *** [Makefile:2004: all] Error 2
Build step 'Execute shell' marked build as failure
6 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-28 #38
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-28/38...>
------------------------------------------
[...truncated 27.37 KB...]
_, domain = self.get_test_domain()
> domain.Shutdown(0)
../../tests/test_domain.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fcac152e3b8>
bus_name = dbus.String(':1.2')
object_path = dbus.ObjectPath('/org/libvirt/Test/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f')
dbus_interface = 'org.libvirt.Domain', method = 'Shutdown', 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/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f, iface: org.libvirt.Domain, member: Shutdown dest: :1.2>
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: internal error: domain 'test' not running
/usr/lib64/python3.6/site-packages/dbus/connection.py:651: DBusException
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
================= 4 failed, 5 passed, 1 error in 13.40 seconds =================
FAIL test_domain.py (exit status: 1)
FAIL: test_interface.py
=======================
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-3.4.2, py-1.5.4, pluggy-0.6.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-28/ws/,> inifile:
collected 5 items
../../tests/test_interface.py E..EE [100%]
==================================== ERRORS ====================================
___________ ERROR at setup of TestInterface.test_interface_undefine ____________
self = <test_interface.TestInterface object at 0x7fb8438c2390>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_interface_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
---------------------------- Captured stderr setup -----------------------------
dbus-daemon[23445]: Cannot setup inotify for '/home/jenkins/.local/share/dbus-1/services'; error 'Permission denied'
______ ERROR at setup of TestInterface.test_interface_get_xml_description ______
self = <test_interface.TestInterface object at 0x7fb84389ee10>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fb843d76bf8>
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.6/site-packages/dbus/connection.py:651: DBusException
________ ERROR at setup of TestInterface.test_interface_properties_type ________
self = <test_interface.TestInterface object at 0x7fb8437c5fd0>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fb843d76bf8>
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.6/site-packages/dbus/connection.py:651: DBusException
====================== 2 passed, 3 error in 7.00 seconds =======================
FAIL test_interface.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
6 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-rawhide #38
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhi...>
------------------------------------------
[...truncated 23.98 KB...]
_, domain = self.get_test_domain()
> domain.Shutdown(0)
../../tests/test_domain.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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 0x7fa68c65d8e0>
bus_name = dbus.String(':1.3')
object_path = dbus.ObjectPath('/org/libvirt/Test/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f')
dbus_interface = 'org.libvirt.Domain', method = 'Shutdown', 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/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f, iface: org.libvirt.Domain, member: Shutdown dest: :1.3>
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: internal error: domain 'test' not running
/usr/lib64/python3.7/site-packages/dbus/connection.py:651: DBusException
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
================= 2 failed, 7 passed, 1 error in 11.06 seconds =================
FAIL test_domain.py (exit status: 1)
FAIL: test_interface.py
=======================
============================= test session starts ==============================
platform linux -- Python 3.7.0, pytest-3.6.3, py-1.5.4, pluggy-0.6.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-rawhi...,> inifile:
collected 5 items
../../tests/test_interface.py E..EE [100%]
==================================== ERRORS ====================================
___________ ERROR at setup of TestInterface.test_interface_undefine ____________
self = <test_interface.TestInterface object at 0x7f57ed662d68>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_interface_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
---------------------------- Captured stderr setup -----------------------------
dbus-daemon[12223]: Cannot setup inotify for '/home/jenkins/.local/share/dbus-1/services'; error 'Permission denied'
______ ERROR at setup of TestInterface.test_interface_get_xml_description ______
self = <test_interface.TestInterface object at 0x7f57ed5b5828>
@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 0x7f57ed661410>
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 TestInterface.test_interface_properties_type ________
self = <test_interface.TestInterface object at 0x7f57ed521518>
@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 0x7f57ed661410>
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
====================== 2 passed, 3 error in 7.70 seconds =======================
FAIL test_interface.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
6 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-27 #38
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-27/38...>
------------------------------------------
[...truncated 26.58 KB...]
self.connect.connect_to_signal('DomainEvent', domain_undefined)
_, domain = self.get_test_domain()
> domain.Shutdown(0)
../../tests/test_domain.py:143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fcbf5526360>
bus_name = dbus.String(':1.1')
object_path = dbus.ObjectPath('/org/libvirt/Test/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f')
dbus_interface = 'org.libvirt.Domain', method = 'Shutdown', 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/domain/_6695eb01_f6a4_8304_79aa_97f2502e193f, iface: org.libvirt.Domain, member: Shutdown 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: internal error: domain 'test' not running
/usr/lib64/python3.6/site-packages/dbus/connection.py:651: DBusException
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
================= 4 failed, 5 passed, 1 error in 12.13 seconds =================
FAIL test_domain.py (exit status: 1)
FAIL: test_interface.py
=======================
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-27/ws/,> inifile:
collected 5 items
../../tests/test_interface.py .E.EE
==================================== ERRORS ====================================
____________ ERROR at setup of TestInterface.test_interface_destroy ____________
self = <test_interface.TestInterface object at 0x7fc59ec48ef0>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_interface_destroy'>>
@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
______ ERROR at setup of TestInterface.test_interface_get_xml_description ______
self = <test_interface.TestInterface object at 0x7fc59e7ae358>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fc59eca7ba0>
bus_name = dbus.String(':1.2')
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.2>
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.6/site-packages/dbus/connection.py:651: DBusException
________ ERROR at setup of TestInterface.test_interface_properties_type ________
self = <test_interface.TestInterface object at 0x7fc59e752be0>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7fc59eca7ba0>
bus_name = dbus.String(':1.2')
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.2>
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.6/site-packages/dbus/connection.py:651: DBusException
====================== 2 passed, 3 error in 7.68 seconds =======================
FAIL test_interface.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
6 years, 3 months
[Libvirt-ci] Build failed in Jenkins: virt-viewer-build » libvirt-freebsd-10 #35
by ci@centos.org
See <https://ci.centos.org/job/virt-viewer-build/systems=libvirt-freebsd-10/35...>
------------------------------------------
Started by upstream project "virt-viewer-build" build number 35
originally caused by:
Started by upstream project "libvirt-glib-build" build number 32
originally caused by:
Started by upstream project "libvirt-build" build number 47
originally caused by:
Started by an SCM change
Started by an SCM change
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on libvirt-freebsd-10 (libvirt) in workspace <https://ci.centos.org/job/virt-viewer-build/systems=libvirt-freebsd-10/ws/>
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://pagure.io/virt-viewer.git # timeout=10
Fetching upstream changes from https://pagure.io/virt-viewer.git
> git --version # timeout=10
> git fetch --tags --progress https://pagure.io/virt-viewer.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 65ef66e42a6db2a9826fffef0db49920a02d358f (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 65ef66e42a6db2a9826fffef0db49920a02d358f
Commit message: "Spice: listen for new 'SpiceSession::disconnected' signal"
> git rev-list --no-walk 65ef66e42a6db2a9826fffef0db49920a02d358f # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
FATAL: Invalid id: 65ef66e42a6db2a9826fffef0db49920a02d358f
Process leaked file descriptors. See https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors for more information
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from n64.gusty.ci.centos.org/172.19.2.192:1027
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
at com.sun.proxy.$Proxy86.clean(Unknown Source)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl.clean(RemoteGitImpl.java:450)
at hudson.plugins.git.extensions.impl.CleanCheckout.onCheckoutCompleted(CleanCheckout.java:30)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1264)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1798)
at hudson.matrix.MatrixRun.run(MatrixRun.java:153)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
org.eclipse.jgit.errors.InvalidObjectIdException: Invalid id: 65ef66e42a6db2a9826fffef0db49920a02d358f
Process leaked file descriptors. See https://jenkins.io/redirect/troubleshooting/process-leaked-file-descriptors for more information
at org.eclipse.jgit.lib.ObjectId.fromString(ObjectId.java:232)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.validateRevision(CliGitAPIImpl.java:866)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.reset(CliGitAPIImpl.java:465)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clean(CliGitAPIImpl.java:801)
at hudson.plugins.git.GitAPI.clean(GitAPI.java:311)
at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:929)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Thread.java:748)
6 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-28 #31
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-28/31...>
------------------------------------------
[...truncated 6.25 KB...]
platform linux -- Python 3.6.6, pytest-3.4.2, py-1.5.4, pluggy-0.6.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-28/ws/,> inifile:
collected 35 items
../../tests/test_connect.py .E.............E..................E [100%]
==================================== ERRORS ====================================
_________ ERROR at setup of TestConnect.test_connect_domain_define_xml _________
self = <test_connect.TestConnect object at 0x7f2318b74e48>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_connect_domain_define_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
ERROR at setup of TestConnect.test_connect_interface_lookup_by_property[InterfaceLookupByMAC-MAC]
self = <test_connect.TestConnect object at 0x7f2318c4ceb8>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7f2318c10308>
bus_name = dbus.String(':1.2')
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.2>
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.6/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 0x7f2318c3d630>
@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.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/lib64/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x7f2318c10308>
bus_name = dbus.String(':1.2')
object_path = dbus.ObjectPath('/org/libvirt/Test/storagepool/_dfe224cb_28fb_8dd0_c4b2_64eb3f0f4566')
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/_dfe224cb_28fb_8dd0_c4b2_64eb3f0f4566, iface: org.libvirt.StoragePool, member: StorageVolCreateXML dest: :1.2>
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.6/site-packages/dbus/connection.py:651: DBusException
===================== 32 passed, 3 error in 10.30 seconds ======================
FAIL test_connect.py (exit status: 1)
FAIL: test_network.py
=====================
============================= test session starts ==============================
platform linux -- Python 3.6.6, pytest-3.4.2, py-1.5.4, pluggy-0.6.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-28/ws/,> inifile:
collected 7 items
../../tests/test_network.py ...E..F [100%]
==================================== ERRORS ====================================
______________ ERROR at setup of TestNetwork.test_network_destroy ______________
self = <test_network.TestNetwork object at 0x7fbf74d529e8>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_network_destroy'>>
@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
=================================== FAILURES ===================================
TestNetwork.test_network_update[4-4-0-\n <host mac='00:16:3e:77:e2:ed' name='foo.example.com' ip='192.168.122.10'/>\n -0]
self = <test_network.TestNetwork object at 0x7fbf74d4ccc0>, command = '4'
section = '4', parentIndex = 0
xml_str = "\n <host mac='00:16:3e:77:e2:ed' name='foo.example.com' ip='192.168.122.10'/>\n "
flags = 0
@pytest.mark.parametrize("command, section, parentIndex, xml_str, flags", [
('4', '4', 0, ip_dhcp_host_xml, 0), # add-first, ip-dhcp-host
])
def test_network_update(self, command, section, parentIndex, xml_str, flags):
> _, test_network = self.get_test_network()
../../tests/test_network.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <test_network.TestNetwork object at 0x7fbf74d4ccc0>
def get_test_network(self):
"""Fetch information for the test network from test driver
Returns:
(dbus.proxies.ProxyObject, dbus.proxies.ProxyObject):
Test Network Object, Local proxy for the test Network Object.
"""
> path = self.connect.ListNetworks(0)[0]
E IndexError: list index out of range
../../tests/libvirttest.py:138: IndexError
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
================= 1 failed, 5 passed, 1 error in 5.98 seconds ==================
FAIL test_network.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
6 years, 3 months