Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/sos.spec'], chrootPath='/var/lib/mock/sos-3.7-11.el7.centos-20200317233522-12/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1005) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/sos.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python: No such file or directory Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/sos-3.7-11.el7.centos.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/sos.spec'], chrootPath='/var/lib/mock/sos-3.7-11.el7.centos-20200317233522-12/root'shell=Falseuid=1005env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/sos.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2oKcqp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sos-3.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/3.7.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sos-3.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (skip-generating-doc.patch):' Patch #0 (skip-generating-doc.patch): + /usr/bin/cat /builddir/build/SOURCES/skip-generating-doc.patch + /usr/bin/patch -p1 --fuzz=0 patching file Makefile + echo 'Patch #1 (sos-bz1656812-bump-release.patch):' Patch #1 (sos-bz1656812-bump-release.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1656812-bump-release.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos.spec patching file sos/__init__.py + echo 'Patch #2 (sos-bz1639166-pcp-pmlogger-no-limit.patch):' Patch #2 (sos-bz1639166-pcp-pmlogger-no-limit.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1639166-pcp-pmlogger-no-limit.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/pcp.py Patch #3 (sos-bz1697854-plugopts-default-datatypes.patch): + echo 'Patch #3 (sos-bz1697854-plugopts-default-datatypes.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1697854-plugopts-default-datatypes.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/maas.py patching file sos/plugins/mysql.py patching file sos/plugins/npm.py patching file sos/plugins/pacemaker.py patching file sos/plugins/postgresql.py Patch #4 (sos-bz1697813-plugin-vs-command-timeouts.patch): + echo 'Patch #4 (sos-bz1697813-plugin-vs-command-timeouts.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1697813-plugin-vs-command-timeouts.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/foreman.py patching file sos/plugins/satellite.py Patch #5 (sos-bz1311129-sos-conf-disabled-plugins-manpages.patch): + echo 'Patch #5 (sos-bz1311129-sos-conf-disabled-plugins-manpages.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1311129-sos-conf-disabled-plugins-manpages.patch + /usr/bin/patch -p1 --fuzz=0 patching file man/en/sos.conf.5 patching file sos/__init__.py Patch #6 (sos-bz1702802-openstack_instack-ansible-log.patch): + echo 'Patch #6 (sos-bz1702802-openstack_instack-ansible-log.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1702802-openstack_instack-ansible-log.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/openstack_instack.py + echo 'Patch #7 (sos-bz1706060-vdsm-plugin.patch):' Patch #7 (sos-bz1706060-vdsm-plugin.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1706060-vdsm-plugin.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py patching file sos/plugins/vdsm.py patching file sos/plugins/vdsm.py patching file sos/plugins/vdsm.py patching file sos/plugins/vdsm.py patching file sos/plugins/vdsm.py patching file sos/plugins/vdsm.py + echo 'Patch #8 (sos-bz1711305-katello-qpid-certificate.patch):' Patch #8 (sos-bz1711305-katello-qpid-certificate.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1711305-katello-qpid-certificate.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/katello.py + echo 'Patch #9 (sos-bz1736424-timeouted-plugin-stop-further-collection.patch):' Patch #9 (sos-bz1736424-timeouted-plugin-stop-further-collection.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1736424-timeouted-plugin-stop-further-collection.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py Hunk #1 succeeded at 629 (offset -23 lines). Hunk #2 succeeded at 832 (offset -23 lines). Hunk #3 succeeded at 984 (offset -34 lines). Hunk #4 succeeded at 1192 (offset -18 lines). + echo 'Patch #10 (sos-bz1736422-cmd-poll-performance.patch):' Patch #10 (sos-bz1736422-cmd-poll-performance.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1736422-cmd-poll-performance.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/utilities.py + echo 'Patch #11 (sos-bz1751576-gluster-deployment-cleanup-logs.patch):' Patch #11 (sos-bz1751576-gluster-deployment-cleanup-logs.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1751576-gluster-deployment-cleanup-logs.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/ovirt_hosted_engine.py + echo 'Patch #12 (sos-bz1751577-vdsm-fix-shell-commands.patch):' Patch #12 (sos-bz1751577-vdsm-fix-shell-commands.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1751577-vdsm-fix-shell-commands.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/vdsm.py Hunk #1 succeeded at 92 (offset -1 lines). + echo 'Patch #13 (sos-bz1751578-ovn-plugins-containerized.patch):' Patch #13 (sos-bz1751578-ovn-plugins-containerized.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1751578-ovn-plugins-containerized.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/ovn_central.py patching file sos/plugins/ovn_host.py patching file sos/plugins/ovn_central.py patching file sos/plugins/ovn_host.py Patch #14 (sos-bz1760737-kernel-trace-disabled.patch): + echo 'Patch #14 (sos-bz1760737-kernel-trace-disabled.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1760737-kernel-trace-disabled.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py Hunk #1 succeeded at 63 (offset -1 lines). patching file sos/plugins/kernel.py Hunk #2 succeeded at 139 (offset -1 lines). Patch #15 (sos-bz1769259-interim-sysroot-forbidden-paths.patch): + echo 'Patch #15 (sos-bz1769259-interim-sysroot-forbidden-paths.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1769259-interim-sysroot-forbidden-paths.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py Hunk #1 succeeded at 586 (offset -145 lines). Hunk #2 succeeded at 613 (offset -145 lines). patching file sos/plugins/__init__.py Hunk #1 succeeded at 651 (offset -70 lines). Hunk #2 succeeded at 663 (offset -149 lines). patching file sos/plugins/kernel.py patching file tests/plugin_tests.py Hunk #2 succeeded at 234 (offset -2 lines). patching file sos/plugins/__init__.py Hunk #1 succeeded at 655 (offset -70 lines). patching file sos/plugins/__init__.py Hunk #1 succeeded at 593 (offset -145 lines). patching file sos/plugins/ceph.py Hunk #1 succeeded at 73 (offset -30 lines). patching file sos/plugins/openstack_octavia.py patching file sos/plugins/vdsm.py patching file sos/plugins/__init__.py Hunk #2 succeeded at 1290 (offset -248 lines). patching file sos/policies/__init__.py Hunk #1 succeeded at 818 (offset -4 lines). Hunk #2 succeeded at 871 (offset -4 lines). patching file sos/archive.py Hunk #4 succeeded at 679 (offset -5 lines). patching file sos/sosreport.py Hunk #1 succeeded at 374 (offset -5 lines). patching file tests/archive_tests.py Patch #16 (sos-bz1683904-option_to_limit_namespaces.patch): + echo 'Patch #16 (sos-bz1683904-option_to_limit_namespaces.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1683904-option_to_limit_namespaces.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/networking.py patching file sos/policies/redhat.py + echo 'Patch #17 (sos-3.7-centos-branding.patch):' Patch #17 (sos-3.7-centos-branding.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-3.7-centos-branding.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/policies/redhat.py Hunk #1 succeeded at 31 (offset -1 lines). Hunk #4 succeeded at 253 (offset 23 lines). Hunk #5 succeeded at 274 (offset 12 lines). Hunk #6 succeeded at 343 (offset 19 lines). Hunk #7 succeeded at 352 (offset 19 lines). patching file sos/policies/redhat.py Hunk #1 succeeded at 196 (offset -2 lines). Hunk #2 FAILED at 207. 1 out of 2 hunks FAILED -- saving rejects to file sos/policies/redhat.py.rej error: Bad exit status from /var/tmp/rpm-tmp.2oKcqp (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.2oKcqp (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/sos.spec