[Libvirt-ci] Build failed in Jenkins: libvirt-build » libvirt-freebsd-12 #812
by ci@centos.org
See <https://ci.centos.org/job/libvirt-build/systems=libvirt-freebsd-12/812/di...>
Changes:
[mprivozn] Add .editorconfig
[mprivozn] tests: fix xml2xml tpm-emulator.xml test
[mprivozn] dbus: correctly build reply message
[mprivozn] qemu: replace logCtxt with qemuDomainLogAppendMessage()
[mprivozn] qemu: add socket datagram capability
[mprivozn] qemu: add dbus-vmstate capability
[mprivozn] qemu: reset VM id after external devices stop
[mprivozn] qemu-security: add qemuSecurityCommandRun()
[mprivozn] qemu: add dbus-vmstate
[mprivozn] domain-conf: add network def private data
[mprivozn] qemu: add qemuDomainNetworkPrivate
[mprivozn] qemu-conf: add configurable slirp-helper location
[mprivozn] qemu-conf: add slirp state dir
[mprivozn] qemu: add slirp helper unit
[mprivozn] qemu-domain: save and restore slirp state
[mprivozn] qemu: add a flag to the cookie to prevent slirp-helper setup
[mprivozn] qemu-migration: prevent migration if dbus-vmstate is required
[mprivozn] qemu-migration: prevent migration if slirp cannot be migrated
[mprivozn] qemu-extdevice: prepare, start and stop slirp-helper
[mprivozn] qemu-command: use -net socket, fd= with slirp-helper
[mprivozn] qemu-process: prepare slirp-helper
[mprivozn] qemu-hotplug: handle hotplugging of slirp-helper
[mprivozn] tests: add slirp-helper qemuxml2argv test
------------------------------------------
[...truncated 140.98 KB...]
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-virhostuptime.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-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-virnetworkportdef.lo
CC conf/libvirt_conf_la-capabilities.lo
CC conf/libvirt_conf_la-checkpoint_conf.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-moment_conf.lo
CC conf/libvirt_conf_la-snapshot_conf.lo
CC conf/libvirt_conf_la-numa_conf.lo
CC conf/libvirt_conf_la-virdomaincheckpointobjlist.lo
CC conf/libvirt_conf_la-virdomainobjlist.lo
CC conf/libvirt_conf_la-virdomainmomentobjlist.lo
CC conf/libvirt_conf_la-virdomainsnapshotobjlist.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-node_device_util.lo
CC conf/libvirt_conf_la-virnodedeviceobj.lo
CC conf/libvirt_conf_la-storage_adapter_conf.lo
CC conf/libvirt_conf_la-storage_capabilities.lo
CC conf/libvirt_conf_la-virstorageobj.lo
CC conf/libvirt_conf_la-storage_conf.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 security/libvirt_security_manager_la-security_util.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_la-virnetsaslcontext.lo
CC rpc/libvirt_net_rpc_la-virnetlibsshsession.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-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_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
CC vbox/libvirt_driver_vbox_impl_la-vbox_glue.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_driver.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_snapshot_conf.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_V5_0.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_V5_1.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_V5_2.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_common.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_network.lo
CC vbox/libvirt_driver_vbox_impl_la-vbox_storage.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_agent.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_alias.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_block.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_blockjob.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_capabilities.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_command.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_dbus.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_domain.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_domain_address.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_cgroup.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_extdevice.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_firmware.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_hostdev.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_hotplug.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_conf.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_process.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_migration.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_migration_cookie.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_migration_params.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_monitor.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_monitor_text.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_monitor_json.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_driver.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_interface.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_security.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_qapi.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_slirp.lo
CC qemu/libvirt_driver_qemu_impl_la-qemu_tpm.lo
../../src/qemu/qemu_slirp.c:301:26: error: unused variable 'cmdstr' [-Werror,-Wunused-variable]
VIR_AUTOFREE(char *) cmdstr = NULL;
^
1 error generated.
gmake[3]: *** [Makefile:10983: qemu/libvirt_driver_qemu_impl_la-qemu_slirp.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm util/virkeycode-linux.pod util/virkeycode-atset3.pod util/virkeycode-usb.pod util/virkeycode-xtkbd.pod util/virkeycode-win32.pod util/virkeyname-linux.pod util/virkeyname-win32.pod util/virkeycode-osx.pod util/virkeycode-qnum.pod util/virkeyname-osx.pod util/virkeycode-atset1.pod util/virkeycode-atset2.pod
gmake[3]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-build/systems=libvirt-freebsd-12/ws/bui...'>
gmake[2]: *** [Makefile:7500: all] Error 2
gmake[2]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-build/systems=libvirt-freebsd-12/ws/bui...'>
gmake[1]: *** [Makefile:2261: all-recursive] Error 1
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-build/systems=libvirt-freebsd-12/ws/build'>
gmake: *** [Makefile:2154: all] Error 2
Build step 'Execute shell' marked build as failure
5 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-29 #616
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/61...>
------------------------------------------
[...truncated 3.84 KB...]
Making check in data
gmake[1]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
Making check in docs
gmake[1]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
Making check in src
gmake[1]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
Making check in tests
gmake[1]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
/usr/bin/gmake test_util
gmake[2]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
CC test_util-test_util.o
CCLD test_util
gmake[2]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
/usr/bin/gmake check-TESTS
gmake[2]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[3]: Entering directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
PASS: test_util
PASS: test_interface.py
PASS: test_domain.py
FAIL: test_connect.py
PASS: test_network.py
PASS: test_nodedev.py
PASS: test_storage.py
============================================================================
Testsuite summary for libvirt-dbus 1.4.0
============================================================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to libvir-list(a)redhat.com
============================================================================
gmake[3]: *** [Makefile:766: test-suite.log] Error 1
gmake[3]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[2]: *** [Makefile:874: check-TESTS] Error 2
gmake[2]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake[1]: *** [Makefile:990: check-am] Error 2
gmake[1]: Leaving directory '<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws...'>
gmake: *** [Makefile:460: check-recursive] Error 1
+ cat tests/test-suite.log
==============================================
libvirt-dbus 1.4.0: tests/test-suite.log
==============================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test_connect.py
=====================
============================= test session starts ==============================
platform linux -- Python 3.7.4, pytest-3.6.4, py-1.5.4, pluggy-0.6.0
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-29/ws/,> inifile:
collected 35 items
../../tests/test_connect.py ...........E...E..................E [100%]
==================================== ERRORS ====================================
ERROR at setup of TestConnect.test_connect_properties_return_type[Version-UInt64]
self = <test_connect.TestConnect object at 0x7fd14d318090>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_connect_properties_return_type[Version-UInt64]'>>
@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 0x7fd14d37f5d0>
@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 0x7fd14d3b9350>
bus_name = dbus.String(':1.12')
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.12>
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 0x7fd14d348310>
@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:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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 0x7fd14d3b9350>
bus_name = dbus.String(':1.12')
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.12>
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
===================== 32 passed, 3 error in 16.27 seconds ======================
FAIL test_connect.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
5 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-fedora-30 #613
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-30/61...>
------------------------------------------
[...truncated 21.72 KB...]
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.
___________________________ TestDomain.test_suspend ____________________________
self = <test_domain.TestDomain object at 0x7eff83a89590>
def test_suspend(self):
def domain_suspended(path, event, detail):
if event != libvirttest.DomainEvent.SUSPENDED:
return
assert detail == libvirttest.DomainEventSuspendedDetailType.PAUSED
assert isinstance(path, dbus.ObjectPath)
self.loop.quit()
self.connect.connect_to_signal('DomainEvent', domain_suspended)
obj, domain = self.get_test_domain()
> domain.Suspend()
../../tests/test_domain.py:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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 0x7eff83db1e90>
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 = 'Suspend', signature = ''
args = (), 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: Suspend 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.7/site-packages/dbus/connection.py:651: DBusException
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
___________________________ TestDomain.test_undefine ___________________________
self = <test_domain.TestDomain object at 0x7eff83aba8d0>
def test_undefine(self):
def domain_undefined(path, event, detail):
if event != libvirttest.DomainEvent.UNDEFINED:
return
assert detail == libvirttest.DomainEventUndefinedDetailType.REMOVED
assert isinstance(path, dbus.ObjectPath)
self.loop.quit()
self.connect.connect_to_signal('DomainEvent', domain_undefined)
_, 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 0x7eff83db1e90>
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.7/site-packages/dbus/connection.py:651: DBusException
--------------------------- Captured stderr teardown ---------------------------
Disconnected from D-Bus.
=============================== warnings summary ===============================
tests/test_domain.py::TestDomain::()::test_resume
source:362: DeprecationWarning: invalid escape sequence \
source:399: DeprecationWarning: invalid escape sequence \
tests/test_domain.py::TestDomain::()::test_shutdown
source:362: DeprecationWarning: invalid escape sequence \
source:399: DeprecationWarning: invalid escape sequence \
tests/test_domain.py::TestDomain::()::test_suspend
source:362: DeprecationWarning: invalid escape sequence \
source:399: DeprecationWarning: invalid escape sequence \
tests/test_domain.py::TestDomain::()::test_undefine
source:362: DeprecationWarning: invalid escape sequence \
source:399: DeprecationWarning: invalid escape sequence \
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========== 4 failed, 5 passed, 8 warnings, 1 error in 11.84 seconds ===========
FAIL test_domain.py (exit status: 1)
FAIL: test_interface.py
=======================
============================= test session starts ==============================
platform linux -- Python 3.7.4, pytest-3.9.3, py-1.7.0, pluggy-0.8.1
rootdir: <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-fedora-30/ws/,> inifile:
collected 5 items
../../tests/test_interface.py ...E. [100%]
==================================== ERRORS ====================================
______ ERROR at setup of TestInterface.test_interface_get_xml_description ______
self = <test_interface.TestInterface object at 0x7f3ab8269510>
request = <SubRequest 'libvirt_dbus_setup' for <Function 'test_interface_get_xml_description'>>
@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
====================== 4 passed, 1 error in 7.41 seconds =======================
FAIL test_interface.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
5 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-freebsd-12 #612
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/6...>
------------------------------------------
[...truncated 3.79 KB...]
Making check in data
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in docs
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in src
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in tests
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
/usr/local/bin/gmake test_util
gmake[2]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
CC test_util-test_util.o
CCLD test_util
gmake[2]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
/usr/local/bin/gmake check-TESTS
gmake[2]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[3]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
PASS: test_util
PASS: test_interface.py
PASS: test_domain.py
PASS: test_network.py
PASS: test_nodedev.py
FAIL: test_connect.py
PASS: test_storage.py
============================================================================
Testsuite summary for libvirt-dbus 1.4.0
============================================================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to libvir-list(a)redhat.com
============================================================================
gmake[3]: *** [Makefile:766: test-suite.log] Error 1
gmake[3]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[2]: *** [Makefile:874: check-TESTS] Error 2
gmake[2]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: *** [Makefile:990: check-am] Error 2
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake: *** [Makefile:460: check-recursive] Error 1
+ cat tests/test-suite.log
==============================================
libvirt-dbus 1.4.0: tests/test-suite.log
==============================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test_connect.py
=====================
============================= test session starts ==============================
platform freebsd12 -- Python 3.6.9, pytest-4.5.0, py-1.8.0, pluggy-0.12.0
rootdir: /usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/ws/>
collected 35 items
../../tests/test_connect.py ..........E....E..................E [100%]
==================================== ERRORS ====================================
_ ERROR at setup of TestConnect.test_connect_properties_return_type[Secure-Boolean] _
self = <test_connect.TestConnect object at 0x802ff5128>
request = <SubRequest 'libvirt_dbus_setup' for <Function test_connect_properties_return_type[Secure-Boolean]>>
@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 0x80305bf98>
@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/local/lib/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x802f13678>
bus_name = dbus.String(':1.11')
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.11>
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/local/lib/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 0x803028dd8>
@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:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x802f13678>
bus_name = dbus.String(':1.11')
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.11>
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/local/lib/python3.6/site-packages/dbus/connection.py:651: DBusException
===================== 32 passed, 3 error in 13.08 seconds ======================
FAIL test_connect.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
5 years, 3 months
[Libvirt-ci] Build failed in Jenkins: libvirt-dbus-check » libvirt-freebsd-12 #609
by ci@centos.org
See <https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/6...>
------------------------------------------
[...truncated 3.94 KB...]
Making check in data
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in docs
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in src
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: Nothing to be done for 'check'.
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
Making check in tests
gmake[1]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
/usr/local/bin/gmake test_util
gmake[2]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
CC test_util-test_util.o
CCLD test_util
gmake[2]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
/usr/local/bin/gmake check-TESTS
gmake[2]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[3]: Entering directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
PASS: test_util
PASS: test_interface.py
PASS: test_domain.py
PASS: test_network.py
FAIL: test_connect.py
PASS: test_nodedev.py
PASS: test_storage.py
============================================================================
Testsuite summary for libvirt-dbus 1.4.0
============================================================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to libvir-list(a)redhat.com
============================================================================
gmake[3]: *** [Makefile:766: test-suite.log] Error 1
gmake[3]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[2]: *** [Makefile:874: check-TESTS] Error 2
gmake[2]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake[1]: *** [Makefile:990: check-am] Error 2
gmake[1]: Leaving directory '/usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/w...'>
gmake: *** [Makefile:460: check-recursive] Error 1
+ cat tests/test-suite.log
==============================================
libvirt-dbus 1.4.0: tests/test-suite.log
==============================================
# TOTAL: 7
# PASS: 6
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test_connect.py
=====================
============================= test session starts ==============================
platform freebsd12 -- Python 3.6.9, pytest-4.5.0, py-1.8.0, pluggy-0.12.0
rootdir: /usr<https://ci.centos.org/job/libvirt-dbus-check/systems=libvirt-freebsd-12/ws/>
collected 35 items
../../tests/test_connect.py .....E.........E..................E [100%]
==================================== ERRORS ====================================
_____ ERROR at setup of TestConnect.test_connect_find_storage_pool_sources _____
self = <test_connect.TestConnect object at 0x803095710>
request = <SubRequest 'libvirt_dbus_setup' for <Function test_connect_find_storage_pool_sources>>
@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 0x803007358>
@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/local/lib/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x802f19678>
bus_name = dbus.String(':1.6')
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.6>
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/local/lib/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 0x803054b70>
@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:125:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:70: in __call__
return self._proxy_method(*args, **keywords)
/usr/local/lib/python3.6/site-packages/dbus/proxies.py:145: in __call__
**keywords)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dbus._dbus.SessionBus (session) at 0x802f19678>
bus_name = dbus.String(':1.6')
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.6>
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/local/lib/python3.6/site-packages/dbus/connection.py:651: DBusException
===================== 32 passed, 3 error in 15.72 seconds ======================
FAIL test_connect.py (exit status: 1)
+ exit 1
Build step 'Execute shell' marked build as failure
5 years, 3 months