Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/fence-agents.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-265074-63969/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/fence-agents.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/fence-agents-4.10.0-20.0.1.an8.6.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/fence-agents.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-265074-63969/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/fence-agents.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.j0b1nV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fence-agents-4.10.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/fence-agents-4.10.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd fence-agents-4.10.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ha-cloud-support-aliyun.patch):' Patch #0 (ha-cloud-support-aliyun.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/aliyun/fence_aliyun.py Patch #1 (ha-cloud-support-aws.patch): + echo 'Patch #1 (ha-cloud-support-aws.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/aws/fence_aws.py Patch #2 (ha-cloud-support-azure.patch): + echo 'Patch #2 (ha-cloud-support-azure.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/azure_fence.py.py Patch #3 (ha-cloud-support-google.patch): + echo 'Patch #3 (ha-cloud-support-google.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/gce/fence_gce.py Patch #4 (ha-openstack-support.patch): + echo 'Patch #4 (ha-openstack-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/compute/fence_compute.py patching file agents/evacuate/fence_evacuate.py patching file agents/openstack/fence_openstack.py Patch #5 (bundled-pexpect.patch): + echo 'Patch #5 (bundled-pexpect.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/azure_arm/fence_azure_arm.py patching file agents/hpblade/fence_hpblade.py patching file agents/ilo/fence_ilo.py patching file agents/ldom/fence_ldom.py patching file agents/Makefile.am patching file agents/netio/fence_netio.py patching file agents/raritan/fence_raritan.py patching file agents/sanbox2/fence_sanbox2.py patching file agents/vmware/fence_vmware.py patching file agents/wti/fence_wti.py patching file lib/fencing.py.py Hunk #2 succeeded at 505 (offset 9 lines). patching file lib/fencing_snmp.py.py patching file make/agentpycheck.mk Hunk #1 succeeded at 10 (offset 1 line). patching file make/fencebuild.mk patching file make/fenceman.mk Patch #6 (bundled-suds.patch): + echo 'Patch #6 (bundled-suds.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/vmware_soap/fence_vmware_soap.py Patch #7 (bz2010709-1-fence_amt_ws-fix-or-causing-dead-code.patch): + echo 'Patch #7 (bz2010709-1-fence_amt_ws-fix-or-causing-dead-code.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/amt_ws/fence_amt_ws.py Patch #8 (bz2010709-2-fence_amt_ws-boot-option.patch): + echo 'Patch #8 (bz2010709-2-fence_amt_ws-boot-option.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/amt_ws/fence_amt_ws.py Patch #9 (bz2000954-1-configure-fix-virt.patch): + echo 'Patch #9 (bz2000954-1-configure-fix-virt.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file configure.ac Patch #10 (bz2000954-2-fence_kubevirt.patch): + echo 'Patch #10 (bz2000954-2-fence_kubevirt.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/kubevirt/fence_kubevirt.py Patch #11 (bz2022334-fence_zvmip-add-ssl-tls-support.patch): + echo 'Patch #11 (bz2022334-fence_zvmip-add-ssl-tls-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/zvm/fence_zvmip.py patching file tests/data/metadata/fence_zvmip.xml patching file agents/zvm/fence_zvmip.py patching file tests/data/metadata/fence_zvmip.xml Patch #12 (bz2029791-1-fence_openstack-add-ssl-insecure.patch): + echo 'Patch #12 (bz2029791-1-fence_openstack-add-ssl-insecure.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/openstack/fence_openstack.py Hunk #1 succeeded at 90 (offset 1 line). Hunk #2 succeeded at 128 (offset 1 line). Hunk #3 succeeded at 221 (offset 1 line). Hunk #4 succeeded at 270 (offset 1 line). Hunk #5 succeeded at 281 (offset 1 line). patching file tests/data/metadata/fence_openstack.xml Patch #13 (bz2029791-2-fence_openstack-cacert-default.patch): + echo 'Patch #13 (bz2029791-2-fence_openstack-cacert-default.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/openstack/fence_openstack.py Hunk #1 succeeded at 128 (offset 1 line). Hunk #2 succeeded at 196 (offset 1 line). patching file tests/data/metadata/fence_openstack.xml Patch #14 (bz2000954-3-fence_kubevirt-get-namespace-from-context.patch): + echo 'Patch #14 (bz2000954-3-fence_kubevirt-get-namespace-from-context.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=2 patching file agents/kubevirt/fence_kubevirt.py Hunk #1 succeeded at 13 (offset 1 line). Hunk #2 succeeded at 41 (offset 1 line). Hunk #3 succeeded at 71 (offset 1 line). Hunk #4 succeeded at 85 (offset 1 line). Hunk #5 succeeded at 111 (offset 1 line). Hunk #6 succeeded at 132 (offset 1 line). patching file tests/data/metadata/fence_kubevirt.xml Hunk #1 succeeded at 18 with fuzz 2 (offset -5 lines). Patch #15 (bz2041933-bz2041935-1-fence_openstack-clouds-openrc.patch): + echo 'Patch #15 (bz2041933-bz2041935-1-fence_openstack-clouds-openrc.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=1 patching file lib/fencing.py.py Hunk #1 succeeded at 1145 (offset 2 lines). patching file agents/openstack/fence_openstack.py Hunk #1 succeeded at 8 with fuzz 1. Hunk #2 succeeded at 27 (offset 1 line). Hunk #3 succeeded at 171 (offset 1 line). Hunk #4 succeeded at 179 (offset 1 line). Hunk #5 succeeded at 202 (offset 1 line). Hunk #6 succeeded at 242 (offset 1 line). Hunk #7 succeeded at 252 (offset 1 line). Hunk #8 succeeded at 261 (offset 1 line). Hunk #9 succeeded at 313 (offset 1 line). patching file tests/data/metadata/fence_openstack.xml Patch #16 (bz2041933-bz2041935-2-fence_openstack-clouds-openrc.patch): + echo 'Patch #16 (bz2041933-bz2041935-2-fence_openstack-clouds-openrc.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/openstack/fence_openstack.py Hunk #2 succeeded at 29 (offset 1 line). Hunk #3 succeeded at 209 (offset 1 line). Hunk #4 succeeded at 223 (offset 1 line). Hunk #5 succeeded at 231 (offset 1 line). Hunk #6 succeeded at 240 (offset 1 line). Hunk #7 succeeded at 250 (offset 1 line). Hunk #8 succeeded at 266 (offset 1 line). Hunk #9 succeeded at 310 (offset 1 line). patching file tests/data/metadata/fence_openstack.xml Patch #17 (bz2042496-fence_ibm_vpc-fence_ibm_powervs.patch): + echo 'Patch #17 (bz2042496-fence_ibm_vpc-fence_ibm_powervs.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/ibm_powervs/fence_ibm_powervs.py patching file agents/ibm_vpc/fence_ibm_vpc.py patching file tests/data/metadata/fence_ibm_powervs.xml patching file tests/data/metadata/fence_ibm_vpc.xml Patch #18 (bz2022334-fence_zvmip-add-disable-ssl.patch): + echo 'Patch #18 (bz2022334-fence_zvmip-add-disable-ssl.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file lib/fencing.py.py Hunk #1 succeeded at 1504 (offset 2 lines). patching file agents/zvm/fence_zvmip.py patching file tests/data/metadata/fence_zvmip.xml Patch #19 (bz2086839-1-fence_apc-fence_ilo_moonshot-import-logging.patch): + echo 'Patch #19 (bz2086839-1-fence_apc-fence_ilo_moonshot-import-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/apc/fence_apc.py patching file agents/ilo_moonshot/fence_ilo_moonshot.py Patch #20 (bz2086839-2-fence_lpar-fix-import-fail_usage.patch): + echo 'Patch #20 (bz2086839-2-fence_lpar-fix-import-fail_usage.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/lpar/fence_lpar.py Patch #21 (bz2123009-fence_ibm_powervs-proxy-private-api-servers.patch): + echo 'Patch #21 (bz2123009-fence_ibm_powervs-proxy-private-api-servers.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/ibm_powervs/fence_ibm_powervs.py patching file agents/ibm_powervs/fence_ibm_powervs.py patching file tests/data/metadata/fence_ibm_powervs.xml Patch #22 (bz2123465-fence_ibm_vpc-remove-unused-instance-parameter-limit-optional.patch): + echo 'Patch #22 (bz2123465-fence_ibm_vpc-remove-unused-instance-parameter-limit-optional.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/ibm_vpc/fence_ibm_vpc.py patching file tests/data/metadata/fence_ibm_vpc.xml Patch #23 (bz2123010-fence_ibm_vpc-add-proxy-support.patch): + echo 'Patch #23 (bz2123010-fence_ibm_vpc-add-proxy-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/ibm_vpc/fence_ibm_vpc.py patching file tests/data/metadata/fence_ibm_vpc.xml Patch #24 (bz2127872-fence_ibm_vpc-add-token-cache-support.patch): + echo 'Patch #24 (bz2127872-fence_ibm_vpc-add-token-cache-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file make/agentpycheck.mk patching file Makefile.am patching file configure.ac Hunk #2 succeeded at 592 (offset 12 lines). patching file m4/PKG_CHECK_VAR.m4 patching file make/fencebuild.mk patching file systemd/Makefile.am patching file systemd/fence-agents.conf.in patching file agents/ibm_vpc/fence_ibm_vpc.py patching file tests/data/metadata/fence_ibm_vpc.xml Patch #25 (bz2136200-fence_gce-update.patch): + echo 'Patch #25 (bz2136200-fence_gce-update.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/gce/fence_gce.py Patch #26 (bz2149691-1-all-agents-unify-ssl-parameters.patch): + echo 'Patch #26 (bz2149691-1-all-agents-unify-ssl-parameters.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/cisco_ucs/fence_cisco_ucs.py patching file agents/docker/fence_docker.py patching file agents/ibmz/fence_ibmz.py Hunk #1 succeeded at 520 (offset -14 lines). Hunk #2 succeeded at 534 (offset -14 lines). patching file agents/rhevm/fence_rhevm.py patching file agents/skalar/fence_skalar.py patching file agents/vmware_rest/fence_vmware_rest.py patching file agents/vmware_soap/fence_vmware_soap.py Hunk #1 succeeded at 35 (offset 1 line). patching file agents/vmware_vcloud/fence_vmware_vcloud.py patching file agents/zvm/fence_zvmip.py patching file lib/fencing.py.py Hunk #1 succeeded at 797 (offset 8 lines). patching file tests/data/metadata/fence_docker.xml Patch #27 (bz2149691-2-fence_zvmip-connect-error.patch): + echo 'Patch #27 (bz2149691-2-fence_zvmip-connect-error.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file agents/zvm/fence_zvmip.py + sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S3Vm7B + umask 022 + cd /builddir/build/BUILD + cd fence-agents-4.10.0 + export PYTHON=/usr/libexec/platform-python + PYTHON=/usr/libexec/platform-python + LIBS='/builddir/build/SOURCES/requirements-*.txt' + echo awscli + for x in $LIBS ++ echo /builddir/build/SOURCES/requirements-aliyun.txt ++ sed -E 's/.*requirements-(.*).txt/\1/' + /usr/libexec/platform-python -m pip install --target support/aliyun --no-index --find-links /builddir/build/SOURCES -r /builddir/build/SOURCES/requirements-aliyun.txt Collecting aliyun-python-sdk-ecs (from -r /builddir/build/SOURCES/requirements-aliyun.txt (line 1)) Collecting aliyuncli>=2.1.5 (from -r /builddir/build/SOURCES/requirements-aliyun.txt (line 3)) Collecting aliyun-python-sdk-core>=2.11.5 (from aliyun-python-sdk-ecs->-r /builddir/build/SOURCES/requirements-aliyun.txt (line 1)) Collecting jmespath<=0.7.1,>=0.7.0 (from aliyuncli>=2.1.5->-r /builddir/build/SOURCES/requirements-aliyun.txt (line 3)) Collecting colorama<=0.3.3,>=0.2.5 (from aliyuncli>=2.1.5->-r /builddir/build/SOURCES/requirements-aliyun.txt (line 3)) Collecting pycryptodome>=3.4.7 (from aliyun-python-sdk-core>=2.11.5->aliyun-python-sdk-ecs->-r /builddir/build/SOURCES/requirements-aliyun.txt (line 1)) Building wheels for collected packages: aliyun-python-sdk-core, colorama, pycryptodome Running setup.py bdist_wheel for aliyun-python-sdk-core: started Running setup.py bdist_wheel for aliyun-python-sdk-core: finished with status 'done' Stored in directory: /builddir/.cache/pip/wheels/98/fd/32/ea9bd7287e90113c6dff59c0bea37d8efc4e78f7842988eae9 Running setup.py bdist_wheel for colorama: started Running setup.py bdist_wheel for colorama: finished with status 'done' Stored in directory: /builddir/.cache/pip/wheels/8e/85/67/f1d9eea13f4b2909e69ee8787b04bcf562cba762af3dfb127b Running setup.py bdist_wheel for pycryptodome: started Running setup.py bdist_wheel for pycryptodome: finished with status 'done' Stored in directory: /builddir/.cache/pip/wheels/a2/79/94/97a43fc65033dad5efd30a2ef2bb72b83f4c0d3971ba582068 Successfully built aliyun-python-sdk-core colorama pycryptodome Installing collected packages: pycryptodome, aliyun-python-sdk-core, aliyun-python-sdk-ecs, jmespath, colorama, aliyuncli Successfully installed aliyun-python-sdk-core-2.11.5 aliyun-python-sdk-ecs-4.24.7 aliyuncli-2.1.10 colorama-0.3.3 jmespath-0.7.1 pycryptodome-3.10.1 + for x in $LIBS ++ echo /builddir/build/SOURCES/requirements-aws.txt ++ sed -E 's/.*requirements-(.*).txt/\1/' + /usr/libexec/platform-python -m pip install --target support/aws --no-index --find-links /builddir/build/SOURCES -r /builddir/build/SOURCES/requirements-aws.txt Collecting boto3 (from -r /builddir/build/SOURCES/requirements-aws.txt (line 1)) Collecting jmespath<1.0.0 (from -r /builddir/build/SOURCES/requirements-aws.txt (line 2)) Collecting botocore<1.21.0,>=1.20.102 (from boto3->-r /builddir/build/SOURCES/requirements-aws.txt (line 1)) Collecting s3transfer<0.5.0,>=0.4.0 (from boto3->-r /builddir/build/SOURCES/requirements-aws.txt (line 1)) Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.21.0,>=1.20.102->boto3->-r /builddir/build/SOURCES/requirements-aws.txt (line 1)) Complete output from command python setup.py egg_info: Download error on https://pypi.org/simple/setuptools_scm/: [Errno -2] Name or service not known -- Some packages may not be found! Download error on https://pypi.org/simple/setuptools-scm/: [Errno -2] Name or service not known -- Some packages may not be found! Couldn't find index page for 'setuptools_scm' (maybe misspelled?) Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found! No local packages or working download links found for setuptools_scm Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-klvg06ub/python-dateutil/setup.py", line 56, in "test": Unsupported File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 128, in setup _install_setup_requires(attrs) File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs replace_conflicting=True, File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 770, in resolve replace_conflicting=replace_conflicting File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1053, in best_match return self.obtain(req, installer) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in obtain return installer(requirement) File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 672, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm') ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-klvg06ub/python-dateutil/ error: Bad exit status from /var/tmp/rpm-tmp.S3Vm7B (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.S3Vm7B (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/fence-agents.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 598, 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 x86_64 --nodeps /builddir/build/SPECS/fence-agents.spec