Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-118338-69294/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/oz-0.18.1-13.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-118338-69294/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lz2aW3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf oz-0.18.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/oz-0.18.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd oz-0.18.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Enable-USB-controller-and-keyboard-for-aarch64-for-a.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-Revert-Don-t-write-kickstart-so-initial-setup-won-t-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0003-Don-t-abort-when-the-data-in-_wait_for_install_finis.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0004-Fix-for-running-on-python3-and-building-on-EL8-or-hi.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0005-Fix-RHEL-templates-to-pass-required-useuefi-paramete.patch + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0006-Use-discard-unmap-for-images.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0007-Don-t-write-kickstart-so-initial-setup-won-t-think-r.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0008-Python-3-compat-fixes-py.test-and-ConfigParser.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0009-Unpick-unnecessary-useuefi-arg-on-the-Guest-classes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0010-Python-compat-Callable-is-in-collections.abc-since-P.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0011-Tests-multiple-fixes-to-expected-guest-XML.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0012-Add-testing-instructions-to-README.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0013-Add-monotonic-to-requirements.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0014-Update-oz.spec.in-to-match-current-Fedora.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0015-tests-handle-libvirt_type-not-being-kvm.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0016-tests-handle-guest-image-path-being-the-system-one.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0017-Update-pylint-and-flake8-commands-in-Makefile.patch + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0018-Add-ability-to-run-the-unit-tests-in-Fedora-and-EL7-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0019-Add-a-Github-Action-workflow-to-run-CI-checks.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0020-CI-use-sudo-assume-docker-is-present-always-pass-lin.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0021-Allow-image-size-specification-using-any-SI-or-IEC-u.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-tests-mock-network-functions-so-tests-work-with-no-n.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.drjE6j + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd oz-0.18.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Cz8rwU + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch ++ dirname /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch + cd oz-0.18.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() warning: no files found matching 'docs/*.rng' warning: no files found matching 'man/examples/*.example' warning: no files found matching 'man/examples/header' warning: no files found matching 'man/examples/footer' + rm -rfv /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/usr/bin/__pycache__ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/isocontent/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/isos/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/floppycontent/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/floppies/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/icicletmp/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/jeos/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/kernels/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/var/lib/oz/screenshots/ + mkdir -p /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/etc/oz + cp oz.cfg /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/etc/oz + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.18.1-13.oc9 --unique-debug-suffix -0.18.1-13.oc9.noarch --unique-debug-src-base oz-0.18.1-13.oc9.noarch -S debugsourcefiles.list /builddir/build/BUILD/oz-0.18.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.zqLrwF + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd oz-0.18.1 + libvirtd -d + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + PATH=/builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/usr/lib64/python3.11/site-packages:/builddir/build/BUILDROOT/oz-0.18.1-13.oc9.noarch/usr/lib/python3.11/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/pytest tests/ ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 rootdir: /builddir/build/BUILD/oz-0.18.1 collected 109 items tests/factory/test_factory.py ...FFFFFFFFFFFFFFFF [ 17%] tests/guest/test_guest.py FFFFFFFFFFFFFF.FFFFFFFFFFFFFFF [ 44%] tests/ozutil/test_ozutil.py ............................................ [ 85%] ............... [ 99%] tests/tdl/test_tdl.py . [100%] =================================== FAILURES =================================== _______________________________ test_fedora_core _______________________________ def test_fedora_core(): for version in ["1", "2", "3", "4", "5", "6"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro='FedoraCore', version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/FedoraCore.py:96: in get_class return FedoraCoreGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/FedoraCore.py:62: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing FedoraCore-1-i386-url _________________________________ test_fedora __________________________________ def test_fedora(): for version in ["7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro='Fedora', version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Fedora-7-i386-url ___________________________________ test_rhl ___________________________________ def test_rhl(): for version in ["7.0", "7.1", "7.2", "7.3", "8", "9"]: > runtest(distro='RHL', version=version, arch='i386', installtype='url', expect_success=True) tests/factory/test_factory.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHL.py:111: in get_class return RHL7xand8Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHL.py:88: in __init__ oz.RedHat.RedHatFDGuest.__init__(self, tdl, config, auto, output_disk, oz/RedHat.py:859: in __init__ oz.Guest.FDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1805: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHL-7.0-i386-url _________________________________ test_rhel21 __________________________________ def test_rhel21(): for version in ["GOLD", "U2", "U3", "U4", "U5", "U6"]: > runtest(distro='RHEL-2.1', version=version, arch='i386', installtype='url', expect_success=True) tests/factory/test_factory.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_2_1.py:52: in get_class return RHEL21Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHEL_2_1.py:34: in __init__ oz.RedHat.RedHatFDGuest.__init__(self, tdl, config, auto, output_disk, oz/RedHat.py:859: in __init__ oz.Guest.FDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1805: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-2.1-GOLD-i386-url __________________________________ test_rhel3 __________________________________ def test_rhel3(): for distro in ["RHEL-3", "CentOS-3"]: for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: for arch in ["i386", "x86_64"]: > runtest(distro=distro, version=version, arch=arch, installtype='url', expect_success=True) tests/factory/test_factory.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_3.py:111: in get_class return RHEL3Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHEL_3.py:45: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-3-GOLD-i386-url __________________________________ test_rhel4 __________________________________ def test_rhel4(): for distro in ["RHEL-4", "CentOS-4", "ScientificLinux-4"]: for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro=distro, version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_4.py:136: in get_class return RHEL4Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHEL_4.py:72: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-4-GOLD-i386-url __________________________________ test_rhel5 __________________________________ def test_rhel5(): for distro in ["RHEL-5", "CentOS-5", "ScientificLinux-5"]: for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9", "U10", "U11"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro=distro, version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_5.py:156: in get_class return RHEL5Guest(tdl, config, auto, netdev, diskbus, output_disk, oz/RHEL_5.py:80: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-5-GOLD-i386-url __________________________________ test_rhel6 __________________________________ def test_rhel6(): for distro in ["RHEL-6", "CentOS-6", "ScientificLinux-6", "OEL-6"]: for version in ["0", "1", "2", "3", "4", "5", "6", "7", "8"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro=distro, version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_6.py:68: in get_class return RHEL6Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHEL_6.py:35: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-6-0-i386-url __________________________________ test_rhel7 __________________________________ def test_rhel7(): for distro in ["RHEL-7", "CentOS-7"]: for version in ["0", "1", "2"]: for arch in ["i386", "x86_64"]: for installtype in ["url", "iso"]: > runtest(distro=distro, version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/RHEL_7.py:74: in get_class return RHEL7Guest(tdl, config, auto, output_disk, netdev, diskbus, oz/RHEL_7.py:35: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing RHEL-7-0-i386-url _________________________________ test_debian __________________________________ def test_debian(): for version in ["5", "6", "7", "8", "9"]: for arch in ["i386", "x86_64"]: > runtest(distro='Debian', version=version, arch=arch, installtype='iso', expect_success=True) tests/factory/test_factory.py:248: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Debian.py:690: in get_class return DebianGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/Debian.py:102: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Debian-5-i386-iso _________________________________ test_windows _________________________________ def test_windows(): > runtest(distro='Windows', version='2000', arch='i386', installtype='iso', expect_success=True) tests/factory/test_factory.py:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Windows.py:326: in get_class return Windows_v5(tdl, config, auto, output_disk, netdev, oz/Windows.py:54: in __init__ Windows.__init__(self, tdl, config, auto, output_disk, netdev, diskbus, oz/Windows.py:40: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Windows-2000-i386-iso ________________________________ test_opensuse _________________________________ def test_opensuse(): for version in ["10.3", "11.0", "11.1", "11.2", "11.3", "11.4", "12.1", "12.2", "12.3", "13.1", "13.2"]: for arch in ["i386", "x86_64"]: > runtest(distro='OpenSUSE', version=version, arch=arch, installtype='iso', expect_success=True) tests/factory/test_factory.py:277: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/OpenSUSE.py:544: in get_class return OpenSUSEGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/OpenSUSE.py:139: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing OpenSUSE-10.3-i386-iso _________________________________ test_ubuntu __________________________________ def test_ubuntu(): for version in ["5.04", "5.10", "6.06", "6.06.1", "6.06.2", "6.10", "7.04", "7.10", "8.04", "8.04.1", "8.04.2", "8.04.3", "8.04.4", "8.10", "9.04", "9.10", "10.04", "10.04.1", "10.04.2", "10.04.3", "10.10", "11.04", "11.10", "12.04", "12.04.1", "12.04.2", "12.04.3", "12.10", "13.04", "13.10", "14.04", "14.10", "15.04", "15.10", "16.04", "16.10", "17.04", "17.10", "18.04"]: for arch in ["i386", "x86_64"]: for installtype in ["iso", "url"]: > runtest(distro='Ubuntu', version=version, arch=arch, installtype=installtype, expect_success=True) tests/factory/test_factory.py:296: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Ubuntu.py:1341: in get_class return UbuntuGuest(tdl, config, auto, output_disk, "initrd.lz", oz/Ubuntu.py:700: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Ubuntu-5.04-i386-iso ________________________________ test_mandrake _________________________________ def test_mandrake(): for version in ["8.2", "9.1", "9.2", "10.0", "10.1"]: > runtest(distro='Mandrake', version=version, arch='i386', installtype='iso', expect_success=True) tests/factory/test_factory.py:307: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Mandrake.py:170: in get_class return MandrakeGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/Mandrake.py:70: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, netdev, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Mandrake-8.2-i386-iso ________________________________ test_mandriva _________________________________ def test_mandriva(): for version in ["2005", "2006.0", "2007.0", "2008.0"]: for arch in ["i386", "x86_64"]: > runtest(distro='Mandriva', version=version, arch=arch, installtype='iso', expect_success=True) tests/factory/test_factory.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Mandriva.py:140: in get_class return MandrivaGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/Mandriva.py:60: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, netdev, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Mandriva-2005-i386-iso _________________________________ test_mageia __________________________________ def test_mageia(): for version in ["2", "3", "4", "4.1", "5"]: for arch in ["i386", "x86_64"]: > runtest(distro='Mageia', version=version, arch=arch, installtype='iso', expect_success=True) tests/factory/test_factory.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/factory/test_factory.py:104: in runtest oz.GuestFactory.guest_factory(tdl, config, None) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Mageia.py:576: in get_class return MageiaGuest(tdl, config, auto, output_disk, netdev, diskbus, oz/Mageia.py:91: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (i686) oz/Guest.py:78: OzException ----------------------------- Captured stdout call ----------------------------- Testing Mageia-2-i386-iso __________________________ test_geteltorito_none_src ___________________________ def test_geteltorito_none_src(): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException __________________________ test_geteltorito_none_dst ___________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_none_dst0') def test_geteltorito_none_dst(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException __________________________ test_geteltorito_short_pvd __________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_short_pvd0') def test_geteltorito_short_pvd(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _______________________ test_geteltorito_bogus_pvd_desc ________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_pvd_des0') def test_geteltorito_bogus_pvd_desc(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _______________________ test_geteltorito_bogus_pvd_ident _______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_pvd_ide0') def test_geteltorito_bogus_pvd_ident(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_geteltorito_bogus_pvd_unused _______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_pvd_unu0') def test_geteltorito_bogus_pvd_unused(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_geteltorito_bogus_pvd_unused2 ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_pvd_unu1') def test_geteltorito_bogus_pvd_unused2(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:190: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_geteltorito_short_boot_sector ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_short_boot_se0') def test_geteltorito_short_boot_sector(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_geteltorito_bogus_boot_sector ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_boot_se0') def test_geteltorito_bogus_boot_sector(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:232: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _____________________ test_geteltorito_bogus_boot_isoident _____________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_boot_is0') def test_geteltorito_bogus_boot_isoident(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _____________________ test_geteltorito_bogus_boot_version ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_boot_ve0') def test_geteltorito_bogus_boot_version(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_geteltorito_bogus_boot_torito ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_boot_to0') def test_geteltorito_bogus_boot_torito(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:306: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _________________________ test_geteltorito_bogus_bootp _________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_geteltorito_bogus_bootp0') def test_geteltorito_bogus_bootp(tmpdir): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:332: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _______________________________ test_init_guest ________________________________ def test_init_guest(): > guest = setup_guest(tdlxml2) tests/guest/test_guest.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ____________________________ test_icicle_generation ____________________________ def test_icicle_generation(): > guest = setup_guest(tdlxml) tests/guest/test_guest.py:389: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ____________________________ test_xml_generation_1 _____________________________ def test_xml_generation_1(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ____________________________ test_xml_generation_2 _____________________________ def test_xml_generation_2(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:485: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ________________________ test_get_disks_and_interfaces _________________________ def test_get_disks_and_interfaces(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:504: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ____________ test_get_disks_and_interfaces_missing_interface_target ____________ def test_get_disks_and_interfaces_missing_interface_target(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:519: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ________ test_get_disks_and_interfaces_missing_interface_target_device _________ def test_get_disks_and_interfaces_missing_interface_target_device(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:532: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________ test_get_disks_and_interfaces_missing_disk_target _______________ def test_get_disks_and_interfaces_missing_disk_target(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:545: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ___________ test_get_disks_and_interfaces_missing_disk_target_device ___________ def test_get_disks_and_interfaces_missing_disk_target_device(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:558: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_modify_libvirt_xml_for_serial ______________________ def test_modify_libvirt_xml_for_serial(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _____________ test_modify_libvirt_xml_for_serial_too_many_targets ______________ def test_modify_libvirt_xml_for_serial_too_many_targets(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:587: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________ test_modify_libvirt_xml_for_serial_missing_devices ______________ def test_modify_libvirt_xml_for_serial_missing_devices(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException _____________ test_modify_libvirt_xml_for_serial_too_many_devices ______________ def test_modify_libvirt_xml_for_serial_too_many_devices(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:611: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________________ test_modify_libvirt_xml_diskimage _______________________ def test_modify_libvirt_xml_diskimage(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:624: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ____________ test_modify_libvirt_xml_diskimage_missing_disk_source _____________ def test_modify_libvirt_xml_diskimage_missing_disk_source(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException ______________ test_modify_libvirt_xml_diskimage_too_many_drivers ______________ def test_modify_libvirt_xml_diskimage_too_many_drivers(): # Provide a macaddress so testing is easier > guest = setup_guest(tdlxml, macaddress='52:54:00:04:cc:a6') tests/guest/test_guest.py:656: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/guest/test_guest.py:82: in setup_guest guest = oz.GuestFactory.guest_factory(tdl, config, None, macaddress=macaddress) oz/GuestFactory.py:105: in guest_factory klass = getattr(module, importname).get_class(tdl, config, auto, oz/Fedora.py:342: in get_class return FedoraGuest(tdl, config, auto, netdev, True, diskbus, False, oz/Fedora.py:263: in __init__ oz.RedHat.RedHatLinuxCDYumGuest.__init__(self, tdl, config, auto, oz/RedHat.py:736: in __init__ oz.RedHat.RedHatLinuxCDGuest.__init__(self, tdl, config, auto, oz/RedHat.py:44: in __init__ oz.Linux.LinuxCDGuest.__init__(self, tdl, config, auto, output_disk, oz/Linux.py:37: in __init__ oz.Guest.CDGuest.__init__(self, tdl, config, auto, output_disk, oz/Guest.py:1337: in __init__ Guest.__init__(self, tdl, config, auto, output_disk, nicmodel, oz/Guest.py:252: in __init__ self.connect_to_libvirt() oz/Guest.py:129: in connect_to_libvirt self._discover_libvirt_type() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _discover_libvirt_type(self): """ Internal method to discover the libvirt type (qemu, kvm, etc) that we should use, if not specified by the user. """ if self.libvirt_type is None: doc = lxml.etree.fromstring(self.libvirt_conn.getCapabilities()) # Libvirt calls the old intel 32-bit architecture i686, while we # refer to it as i386. Do the mapping here, since we need to look # up the libvirt name. libvirtarch = self.tdl.arch if libvirtarch == 'i386': libvirtarch = 'i686' if len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='kvm']" % (libvirtarch))) > 0: self.libvirt_type = 'kvm' elif len(doc.xpath("/capabilities/guest/arch[@name='%s']/domain[@type='qemu']" % (libvirtarch))) > 0: self.libvirt_type = 'qemu' else: > raise oz.OzException.OzException("This host does not support virtualization type kvm or qemu for TDL arch (%s)" % (libvirtarch)) E oz.OzException.OzException: This host does not support virtualization type kvm or qemu for TDL arch (x86_64) oz/Guest.py:78: OzException =============================== warnings summary =============================== tests/factory/test_factory.py: 17 warnings /builddir/build/BUILD/oz-0.18.1/tests/factory/test_factory.py:91: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead. config = configparser.SafeConfigParser() tests/factory/test_factory.py: 17 warnings /builddir/build/BUILD/oz-0.18.1/tests/factory/test_factory.py:92: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead. config.readfp(StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) tests/factory/test_factory.py::test_fedora_core /usr/lib64/python3.11/site-packages/M2Crypto/__init__.py:33: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. __ver = Version(__version__) tests/guest/test_guest.py: 29 warnings /builddir/build/BUILD/oz-0.18.1/tests/guest/test_guest.py:71: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead. config = configparser.SafeConfigParser() tests/guest/test_guest.py: 29 warnings /builddir/build/BUILD/oz-0.18.1/tests/guest/test_guest.py:72: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead. config.readfp(StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) tests/guest/test_guest.py::test_init_guest_bad_arch /builddir/build/BUILD/oz-0.18.1/tests/guest/test_guest.py:377: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead. config = configparser.SafeConfigParser() tests/guest/test_guest.py::test_init_guest_bad_arch /builddir/build/BUILD/oz-0.18.1/tests/guest/test_guest.py:378: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead. config.readfp(StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/factory/test_factory.py::test_fedora_core - oz.OzException.OzExc... FAILED tests/factory/test_factory.py::test_fedora - oz.OzException.OzExceptio... FAILED tests/factory/test_factory.py::test_rhl - oz.OzException.OzException: ... FAILED tests/factory/test_factory.py::test_rhel21 - oz.OzException.OzExceptio... FAILED tests/factory/test_factory.py::test_rhel3 - oz.OzException.OzException... FAILED tests/factory/test_factory.py::test_rhel4 - oz.OzException.OzException... FAILED tests/factory/test_factory.py::test_rhel5 - oz.OzException.OzException... FAILED tests/factory/test_factory.py::test_rhel6 - oz.OzException.OzException... FAILED tests/factory/test_factory.py::test_rhel7 - oz.OzException.OzException... FAILED tests/factory/test_factory.py::test_debian - oz.OzException.OzExceptio... FAILED tests/factory/test_factory.py::test_windows - oz.OzException.OzExcepti... FAILED tests/factory/test_factory.py::test_opensuse - oz.OzException.OzExcept... FAILED tests/factory/test_factory.py::test_ubuntu - oz.OzException.OzExceptio... FAILED tests/factory/test_factory.py::test_mandrake - oz.OzException.OzExcept... FAILED tests/factory/test_factory.py::test_mandriva - oz.OzException.OzExcept... FAILED tests/factory/test_factory.py::test_mageia - oz.OzException.OzExceptio... FAILED tests/guest/test_guest.py::test_geteltorito_none_src - oz.OzException.... FAILED tests/guest/test_guest.py::test_geteltorito_none_dst - oz.OzException.... FAILED tests/guest/test_guest.py::test_geteltorito_short_pvd - oz.OzException... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_pvd_desc - oz.OzExce... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_pvd_ident - oz.OzExc... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_pvd_unused - oz.OzEx... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_pvd_unused2 - oz.OzE... FAILED tests/guest/test_guest.py::test_geteltorito_short_boot_sector - oz.OzE... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_boot_sector - oz.OzE... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_boot_isoident - oz.O... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_boot_version - oz.Oz... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_boot_torito - oz.OzE... FAILED tests/guest/test_guest.py::test_geteltorito_bogus_bootp - oz.OzExcepti... FAILED tests/guest/test_guest.py::test_init_guest - oz.OzException.OzExceptio... FAILED tests/guest/test_guest.py::test_icicle_generation - oz.OzException.OzE... FAILED tests/guest/test_guest.py::test_xml_generation_1 - oz.OzException.OzEx... FAILED tests/guest/test_guest.py::test_xml_generation_2 - oz.OzException.OzEx... FAILED tests/guest/test_guest.py::test_get_disks_and_interfaces - oz.OzExcept... FAILED tests/guest/test_guest.py::test_get_disks_and_interfaces_missing_interface_target FAILED tests/guest/test_guest.py::test_get_disks_and_interfaces_missing_interface_target_device FAILED tests/guest/test_guest.py::test_get_disks_and_interfaces_missing_disk_target FAILED tests/guest/test_guest.py::test_get_disks_and_interfaces_missing_disk_target_device FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_for_serial - oz.OzE... FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_for_serial_too_many_targets FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_for_serial_missing_devices FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_for_serial_too_many_devices FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_diskimage - oz.OzEx... FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_diskimage_missing_disk_source FAILED tests/guest/test_guest.py::test_modify_libvirt_xml_diskimage_too_many_drivers ================== 45 failed, 64 passed, 95 warnings in 5.58s ================== error: Bad exit status from /var/tmp/rpm-tmp.zqLrwF (%check) Bad exit status from /var/tmp/rpm-tmp.zqLrwF (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/oz.spec