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.8-8.el7.centos-20200512154127-8978/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.8-8.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.8-8.el7.centos-20200512154127-8978/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.cjYTKC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sos-3.8 + /usr/bin/gzip -dc /builddir/build/SOURCES/3.8.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sos-3.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (skip-generating-doc.patch): + echo '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-bz1744555-ovn-plugins-containerized.patch):' Patch #1 (sos-bz1744555-ovn-plugins-containerized.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1744555-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 #2 (sos-bz1757662-kernel-trace-disabled.patch): + echo 'Patch #2 (sos-bz1757662-kernel-trace-disabled.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1757662-kernel-trace-disabled.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py patching file sos/plugins/kernel.py Hunk #2 succeeded at 139 (offset -1 lines). Patch #3 (sos-bz1699381-gluster-skip-statedump-dirs.patch): + echo 'Patch #3 (sos-bz1699381-gluster-skip-statedump-dirs.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1699381-gluster-skip-statedump-dirs.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/gluster.py + echo 'Patch #4 (sos-bz1767445-interim-sysroot-forbidden-paths.patch):' Patch #4 (sos-bz1767445-interim-sysroot-forbidden-paths.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-bz1767445-interim-sysroot-forbidden-paths.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/__init__.py Hunk #1 succeeded at 655 (offset -76 lines). Hunk #2 succeeded at 682 (offset -76 lines). patching file sos/plugins/__init__.py Hunk #1 succeeded at 720 (offset -1 lines). Hunk #2 succeeded at 732 (offset -80 lines). patching file sos/plugins/kernel.py patching file tests/plugin_tests.py patching file sos/plugins/__init__.py Hunk #1 succeeded at 662 (offset -76 lines). patching file sos/plugins/ceph.py Hunk #1 succeeded at 77 (offset -26 lines). patching file sos/plugins/openstack_octavia.py patching file sos/plugins/vdsm.py patching file sos/plugins/__init__.py Hunk #2 succeeded at 1408 (offset 3 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/plugins/__init__.py Patch #5 (sos-bz1630028-manpages-allow-system-changes.patch): + echo 'Patch #5 (sos-bz1630028-manpages-allow-system-changes.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1630028-manpages-allow-system-changes.patch + /usr/bin/patch -p1 --fuzz=0 patching file man/en/sosreport.1 Patch #6 (sos-bz1781148-foreman-psql-dynflow-explicit-cast.patch): + echo 'Patch #6 (sos-bz1781148-foreman-psql-dynflow-explicit-cast.patch):' + /usr/bin/cat /builddir/build/SOURCES/sos-bz1781148-foreman-psql-dynflow-explicit-cast.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/plugins/foreman.py Hunk #1 succeeded at 169 (offset -7 lines). patching file man/en/sosreport.1 patching file sos/plugins/__init__.py Hunk #1 succeeded at 842 (offset -75 lines). Hunk #2 succeeded at 888 (offset -75 lines). + echo 'Patch #7 (sos-bz1683904-option_to_limit_namespaces.patch):' Patch #7 (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 #8 (sos-3.8-centos-branding.patch):' Patch #8 (sos-3.8-centos-branding.patch): + /usr/bin/cat /builddir/build/SOURCES/sos-3.8-centos-branding.patch + /usr/bin/patch -p1 --fuzz=0 patching file sos/policies/redhat.py Hunk #3 FAILED at 180. Hunk #4 succeeded at 236 (offset 1 line). Hunk #5 succeeded at 257 (offset 1 line). Hunk #6 succeeded at 314 (offset 1 line). Hunk #7 succeeded at 323 (offset 1 line). 1 out of 7 hunks FAILED -- saving rejects to file sos/policies/redhat.py.rej error: Bad exit status from /var/tmp/rpm-tmp.cjYTKC (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.cjYTKC (%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