Description of problem: Let mock run, when the tmps is still mountet. Version-Release number of selected component: mock-1.2.21-1.el7 Additional info: reporter: libreport-2.1.11.1 cmdline: /usr/bin/python -tt /usr/sbin/mock -r centos-7-prod-x86_64 /home/fbuettn/RPM-Zeugs/SRPMS/solr-6.3.0-1.el7.centos.src.rpm executable: /usr/sbin/mock kernel: 3.10.0-514.2.2.el7.x86_64 pkg_fingerprint: 6A2F AEA2 352C 64E5 pkg_vendor: Fedora Project reproducible: Not sure how to reproduce the problem runlevel: N 5 type: Python uid: 0 Truncated backtrace: util.py:152:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/centos-7-prod-x86_64/root/proc' Traceback (most recent call last): File "/usr/sbin/mock", line 844, in <module> main() File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 663, in main run_command(options, args, config_opts, commands, buildroot, state) File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 745, in run_command do_rebuild(config_opts, commands, buildroot, args) File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 504, in do_rebuild post=post_build, clean=clean) File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/sbin/mock", line 447, in rebuild_generic commands.clean() 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/backend.py", line 74, in clean self.buildroot.delete() 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/buildroot.py", line 566, in delete util.rmtree(self.basedir, selinux=self.selinux) 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 143, in rmtree rmtree(fullname, selinux=selinux, exclude=exclude) 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 143, in rmtree rmtree(fullname, selinux=selinux, exclude=exclude) 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 152, in rmtree os.rmdir(path) OSError: [Errno 16] Device or resource busy: '/var/lib/mock/centos-7-prod-x86_64/root/proc' Local variables in innermost frame: retries: 2 e: OSError(16, 'Device or resource busy') selinux: False failed_to_handle: False try_again: False names: [] failed_filename: None path: '/var/lib/mock/centos-7-prod-x86_64/root/proc' exclude: ()
Created attachment 1232441 [details] File: backtrace
Created attachment 1232442 [details] File: environ
Created attachment 1232443 [details] File: machineid
The logic related to mounting/umounting proc filesystem has been rewritten a lot in recent releases, so I believe this is not an issue nowadays. Please re-open if you still observe the same issue.