Mock Version: 2.17 Mock Version: 2.17 Mock Version: 2.17 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm.spec'], chrootPath='/var/lib/mock/v8.3-incoming-5764-10297/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sm.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/sm-3.0.10-1.2.1.xcpng8.3.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sm.spec'], chrootPath='/var/lib/mock/v8.3-incoming-5764-10297/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sm.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Am5Mun + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sm-3.0.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/sm-3.0.10.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sm-3.0.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/0001-Update-xs-sm.service-s-description-for-XCP-ng.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0002-feat-drivers-add-CephFS-and-GlusterFS-drivers.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0003-feat-drivers-add-XFS-driver.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0004-feat-drivers-add-ZFS-driver-to-avoid-losing-VDI-meta.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0005-feat-drivers-add-LinstorSR-driver.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0006-feat-tests-add-unit-tests-concerning-ZFS-close-xcp-n.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0007-Added-SM-Driver-for-MooseFS.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0008-Avoid-usage-of-umount-in-ISOSR-when-legacy_mode-is-u.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0009-MooseFS-SR-uses-now-UUID-subdirs-for-each-SR.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0010-Fix-is_open-call-for-many-drivers-25.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0011-Remove-SR_CACHING-capability-for-many-SR-types-24.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0012-Fix-code-coverage-regarding-MooseFSSR-and-ZFSSR-29.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0013-py3-simple-changes-from-futurize-on-XCP-ng-drivers.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0014-py3-futurize-fix-of-xmlrpc-calls-for-CephFS-GlusterF.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0015-py3-use-of-integer-division-operator.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0016-test_on_slave-allow-to-work-with-SR-using-absolute-P.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0017-py3-switch-interpreter-to-python3.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0018-Support-recent-version-of-coverage-tool.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0019-feat-LinstorSR-import-all-8.2-changes.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0020-feat-LinstorSR-is-now-compatible-with-python-3.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0021-Remove-SR_PROBE-from-ZFS-capabilities-36.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0022-Fix-vdi-ref-when-static-vdis-are-used.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0023-Repair-coverage-to-be-compatible-with-8.3-test-env.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0024-Support-IPv6-for-NFS-ISO-SR.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0025-Support-IPv6-in-Ceph-Driver.patch + /usr/bin/patch -p1 -s + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lhSPx6 + umask 022 + cd /builddir/build/BUILD + cd sm-3.0.10 + DESTDIR=/builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 + make make -C dcopy make[1]: Entering directory `/builddir/build/BUILD/sm-3.0.10/dcopy' cc -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall dcopy.c atomicio.c -o dcopy cc -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall tp.c -o tp make[1]: Leaving directory `/builddir/build/BUILD/sm-3.0.10/dcopy' make -C linstor make[1]: Entering directory `/builddir/build/BUILD/sm-3.0.10/linstor' cc -Wall -std=gnu99 linstor-monitord.c -o linstor-monitord make[1]: Leaving directory `/builddir/build/BUILD/sm-3.0.10/linstor' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.GqaBnQ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 ++ dirname /builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 + '[' '!' -d /usr/lib/opamroot ']' + cd sm-3.0.10 + DESTDIR=/builddir/build/BUILDROOT/sm-3.0.10-1.2.1.xcpng8.3.x86_64 + make install make -C dcopy make[1]: Entering directory `/builddir/build/BUILD/sm-3.0.10/dcopy' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/builddir/build/BUILD/sm-3.0.10/dcopy' make -C linstor make[1]: Entering directory `/builddir/build/BUILD/sm-3.0.10/linstor' cc -Wall -std=gnu99 linstor-monitord.c -o linstor-monitord make[1]: Leaving directory `/builddir/build/BUILD/sm-3.0.10/linstor' Checking drivers/SR.py ... Checking drivers/SRCommand.py ... Checking drivers/VDI.py ... Checking drivers/BaseISCSI.py ... Checking drivers/cleanup.py ... Checking drivers/lvutil.py ... Checking drivers/lvmcache.py ... Checking drivers/util.py ... Checking drivers/verifyVHDsOnSR.py ... Checking drivers/scsiutil.py ... Checking drivers/scsi_host_rescan.py ... Checking drivers/vhdutil.py ... Checking drivers/linstorjournaler.py ... Checking drivers/linstorvhdutil.py ... Checking drivers/linstorvolumemanager.py ... Checking drivers/lvhdutil.py ... Checking drivers/cifutils.py ... Checking drivers/xs_errors.py ... Checking drivers/nfs.py ... Checking drivers/devscan.py ... Checking drivers/sysdevice.py ... Checking drivers/iscsilib.py ... Checking drivers/mpath_dmp.py ... Checking drivers/mpath_null.py ... Checking drivers/mpath_cli.py ... Checking drivers/mpathutil.py ... Checking drivers/LUNperVDI.py ... Checking drivers/mpathcount.py ... Checking drivers/refcounter.py ... Checking drivers/journaler.py ... Checking drivers/fjournaler.py ... Checking drivers/lock.py ... Checking drivers/flock.py ... Checking drivers/ipc.py ... Checking drivers/srmetadata.py ... Checking drivers/metadata.py ... Checking drivers/lvmanager.py ... Checking drivers/blktap2.py ... Checking drivers/lcache.py ... Checking drivers/resetvdis.py ... Checking drivers/wwid_conf.py ... Checking drivers/trim_util.py ... Checking drivers/pluginutil.py ... Checking drivers/fcoelib.py ... Checking drivers/constants.py ... Checking drivers/cbtutil.py ... Checking drivers/sr_health_check.py ... Checking drivers/FileSR.py ... Checking drivers/NFSSR.py ... Checking drivers/EXTSR.py ... Checking drivers/RawISCSISR.py ... Checking drivers/DummySR.py ... Checking drivers/udevSR.py ... Checking drivers/ISOSR.py ... Checking drivers/HBASR.py ... Checking drivers/LinstorSR.py ... ************* Module LinstorSR E:1638,51: Undefined variable 'long' (undefined-variable) E:1921,51: Undefined variable 'long' (undefined-variable) E:1938,26: Too many positional arguments for classmethod call (too-many-function-args) Checking drivers/LVHDSR.py ... Checking drivers/LVHDoISCSISR.py ... Checking drivers/LVHDoHBASR.py ... Checking drivers/SHMSR.py ... Checking drivers/SMBSR.py ... Checking drivers/LVHDoFCoESR.py ... Checking drivers/CephFSSR.py ... Checking drivers/GlusterFSSR.py ... Checking drivers/XFSSR.py ... Checking drivers/ZFSSR.py ... Checking drivers/MooseFSSR.py ... make: *** [precheck] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.GqaBnQ (%install) Bad exit status from /var/tmp/rpm-tmp.GqaBnQ (%install) Child return code was: 1 EXCEPTION: [Error()] 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 600, 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 --target x86_64 --nodeps /builddir/build/SPECS/sm.spec