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-7469-20348/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.2.3-1.8.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-7469-20348/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.WChkZ1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sm-3.2.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/sm-3.2.3.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sm-3.2.3 + /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-Repair-coverage-to-be-compatible-with-8.3-test-env.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0023-Support-IPv6-in-Ceph-Driver.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0024-lvutil-use-wipefs-not-dd-to-clear-existing-signature.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0025-feat-LargeBlock-introduce-largeblocksr-51.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0026-feat-LVHDSR-add-a-way-to-modify-config-of-LVMs-60.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0027-reflect-upstream-changes-in-our-tests.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0028-CA-398425-correctly-check-for-multiple-targets-in-iS.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0029-Synchronization-with-8.2-LINSTOR-before-a-stable-rel.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0030-Prevent-wrong-mypy-error-regarding-_linstor-member-n.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0031-Fix-many-invalid-escape-sequences.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0032-Fix-many-invalid-escape-sequences-on-regexes.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0033-Fix-override-of-FileSR.attach.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0034-Fix-override-of-BaseISCSISR.detach.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0035-Fix-override-of-VDI.delete-in-many-subclasses.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0036-Fix-override-of-VDI._do_snapshot.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0037-Fix-override-of-VDI.load-in-LVHDVDI-cleanup.py.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0038-Use-a-specific-var-for-NFS-options-in-ISOSR.attach.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0039-Modernize-Lock-class-using-staticmethod-decorator.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0040-Modernize-GC-using-staticmethod-decorator.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0041-Modernize-RefCounter-using-staticmethod-decorator.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0042-Simplify-FakeSMBSR-implementation-remove-member-vars.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0043-Use-for-session-instead-of-for-e.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0044-Define-and-details-attr-on-Failure-mock.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0045-Fix-util.SRtoXML-calls-in-many-drivers.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0046-Replace-Dict-variable-with-info-in-LVHDSR.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0047-Prevent-mypy-errors-when-a-variable-type-is-changed-.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0048-Prevent-bad-mypy-error-in-TestMultiLUNISCSISR-using-.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0049-Count-correctly-IQN-sessions-during-ISCSISR-attach.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0050-Use-importlib-instead-of-imp-which-is-deprecated-in-.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0051-Replace-deprecated-calls-to-distutils.spawn.find_exe.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0052-Replace-deprecated-calls-to-distutils.util.strtobool.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0053-Fix-_locked_load-calls-compatibility-with-python-3.1.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0054-Use-static-analysis-tool-mypy.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0055-Add-mypy-stubs.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0056-Use-abstract-properties-for-child-classes-if-necessa.patch + /usr/bin/patch -p1 -s + /usr/bin/cat /builddir/build/SOURCES/0057-Use-override-everywhere.patch + /usr/bin/patch -p1 -s + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.g7FIhF + umask 022 + cd /builddir/build/BUILD + cd sm-3.2.3 + make make -C dcopy make[1]: Entering directory `/builddir/build/BUILD/sm-3.2.3/dcopy' cc -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -Wall dcopy.c atomicio.c -o dcopy cc -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -Wall tp.c -o tp make[1]: Leaving directory `/builddir/build/BUILD/sm-3.2.3/dcopy' make -C linstor make[1]: Entering directory `/builddir/build/BUILD/sm-3.2.3/linstor' cc -Wall -std=gnu99 linstor-monitord.c -o linstor-monitord make[1]: Leaving directory `/builddir/build/BUILD/sm-3.2.3/linstor' + make -C misc/fairlock make: Entering directory `/builddir/build/BUILD/sm-3.2.3/misc/fairlock' gcc -c -o fairlock.o fairlock.c -I. gcc -o fairlock fairlock.o -I. make: Leaving directory `/builddir/build/BUILD/sm-3.2.3/misc/fairlock' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.VF3Vgj + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 ++ dirname /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 + '[' '!' -d /usr/lib/opamroot ']' + cd sm-3.2.3 + make -C misc/fairlock install DESTDIR=/builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 make: Entering directory `/builddir/build/BUILD/sm-3.2.3/misc/fairlock' install -D -m 755 fairlock /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64/usr/libexec/fairlock install -D -m 644 fairlock@.service /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64/usr/lib/systemd/system/fairlock@.service install -D -m 644 fairlock.py /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64/usr/lib/python3.6/site-packages/fairlock.py python3 -m compileall /builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64/usr/lib/python3.6/site-packages/fairlock.py Compiling '/builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64/usr/lib/python3.6/site-packages/fairlock.py'... make: Leaving directory `/builddir/build/BUILD/sm-3.2.3/misc/fairlock' + make install DESTDIR=/builddir/build/BUILDROOT/sm-3.2.3-1.8.xcpng8.3.x86_64 make -C dcopy make[1]: Entering directory `/builddir/build/BUILD/sm-3.2.3/dcopy' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/builddir/build/BUILD/sm-3.2.3/dcopy' make -C linstor make[1]: Entering directory `/builddir/build/BUILD/sm-3.2.3/linstor' cc -Wall -std=gnu99 linstor-monitord.c -o linstor-monitord make[1]: Leaving directory `/builddir/build/BUILD/sm-3.2.3/linstor' PYTHONPATH=./drivers:./misc/fairlock:$PYTHONPATH /usr/bin/pylint-3 --rcfile=tests/pylintrc drivers/SR.py drivers/SRCommand.py drivers/VDI.py drivers/BaseISCSI.py drivers/cleanup.py drivers/lvutil.py drivers/lvmcache.py drivers/util.py drivers/verifyVHDsOnSR.py drivers/scsiutil.py drivers/scsi_host_rescan.py drivers/vhdutil.py drivers/linstorjournaler.py drivers/linstorvhdutil.py drivers/linstorvolumemanager.py drivers/lvhdutil.py drivers/cifutils.py drivers/xs_errors.py drivers/nfs.py drivers/devscan.py drivers/sysdevice.py drivers/iscsilib.py drivers/mpath_dmp.py drivers/mpath_null.py drivers/mpath_cli.py drivers/mpathutil.py drivers/LUNperVDI.py drivers/mpathcount.py drivers/refcounter.py drivers/journaler.py drivers/fjournaler.py drivers/lock.py drivers/flock.py drivers/lock_queue.py drivers/ipc.py drivers/srmetadata.py drivers/metadata.py drivers/lvmanager.py drivers/blktap2.py drivers/lcache.py drivers/resetvdis.py drivers/wwid_conf.py drivers/trim_util.py drivers/pluginutil.py drivers/fcoelib.py drivers/constants.py drivers/cbtutil.py drivers/sr_health_check.py drivers/FileSR.py drivers/NFSSR.py drivers/EXTSR.py drivers/RawISCSISR.py drivers/DummySR.py drivers/udevSR.py drivers/ISOSR.py drivers/HBASR.py drivers/LinstorSR.py drivers/LVHDSR.py drivers/LVHDoISCSISR.py drivers/LVHDoHBASR.py drivers/SHMSR.py drivers/SMBSR.py drivers/LVHDoFCoESR.py drivers/CephFSSR.py drivers/GlusterFSSR.py drivers/XFSSR.py drivers/ZFSSR.py drivers/MooseFSSR.py drivers/LargeBlockSR.py Traceback (most recent call last): File "/usr/bin/pylint-3", line 11, in load_entry_point('pylint==1.6.5', 'console_scripts', 'pylint')() File "/usr/lib/python3.6/site-packages/pylint/__init__.py", line 17, in run_pylint Run(sys.argv[1:]) File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 1333, in __init__ linter.check(args) File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 755, in check self._do_check(files_or_modules) File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 886, in _do_check self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers) File "/usr/lib/python3.6/site-packages/pylint/lint.py", line 967, in check_astroid_module walker.walk(ast_node) File "/usr/lib/python3.6/site-packages/pylint/utils.py", line 959, in walk self.walk(child) File "/usr/lib/python3.6/site-packages/pylint/utils.py", line 956, in walk cb(astroid) File "/usr/lib/python3.6/site-packages/pylint/checkers/variables.py", line 1051, in visit_import module = next(node.infer_name_module(parts[0])) File "/usr/lib/python3.6/site-packages/astroid/context.py", line 49, in cache_generator for result in generator: File "/usr/lib/python3.6/site-packages/astroid/bases.py", line 302, in wrapped for res in _func(node, context, **kwargs): File "/usr/lib/python3.6/site-packages/astroid/inference.py", line 123, in infer_import yield self.do_import_module(name) File "/usr/lib/python3.6/site-packages/astroid/mixins.py", line 129, in do_import_module relative_only=level and level >= 1) File "/usr/lib/python3.6/site-packages/astroid/scoped_nodes.py", line 492, in import_module return MANAGER.ast_from_module_name(absmodname) File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 136, in ast_from_module_name return self.ast_from_file(filepath, modname, fallback=False) File "/usr/lib/python3.6/site-packages/astroid/manager.py", line 86, in ast_from_file return AstroidBuilder(self).file_build(filepath, modname) File "/usr/lib/python3.6/site-packages/astroid/builder.py", line 141, in file_build module = self._data_build(data, modname, path) File "/usr/lib/python3.6/site-packages/astroid/builder.py", line 185, in _data_build module = builder.visit_module(node, modname, node_file, package) File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 154, in visit_module newnode.body = [self.visit(child, newnode) for child in node.body] File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 154, in newnode.body = [self.visit(child, newnode) for child in node.body] File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 167, in visit return visit_method(node, parent, assign_ctx) File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 957, in visit_classdef newnode = super(TreeRebuilder3k, self).visit_classdef(node, parent, assign_ctx) File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 357, in visit_classdef for child in node.body] File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 357, in for child in node.body] File "/usr/lib/python3.6/site-packages/astroid/rebuilder.py", line 165, in visit visit_method = getattr(self, visit_name) AttributeError: 'TreeRebuilder3k' object has no attribute 'visit_annassign' make: *** [precheck] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.VF3Vgj (%install) Bad exit status from /var/tmp/rpm-tmp.VF3Vgj (%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