Bug 1405296 - [abrt] mock: util.py:152:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/centos-7-prod-x86_64/root/proc'
Summary: [abrt] mock: util.py:152:rmtree:OSError: [Errno 16] Device or resource busy: ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Pavel Raiskup
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:cfe19858af37fae9cc5961a6491...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-16 06:14 UTC by Frank Büttner
Modified: 2019-11-14 07:16 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-14 07:16:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.57 KB, text/plain)
2016-12-16 06:14 UTC, Frank Büttner
no flags Details
File: environ (166 bytes, text/plain)
2016-12-16 06:14 UTC, Frank Büttner
no flags Details
File: machineid (135 bytes, text/plain)
2016-12-16 06:14 UTC, Frank Büttner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1294977 0 unspecified CLOSED [abrt] mock: util.py:145:rmtree:OSError: [Errno 16] Device or resource busy: '/var/lib/mock/fedora-23-x86_64/root/var/ca... 2021-06-09 14:48:32 UTC

Internal Links: 1294977

Description Frank Büttner 2016-12-16 06:14:46 UTC
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: ()

Comment 1 Frank Büttner 2016-12-16 06:14:55 UTC
Created attachment 1232441 [details]
File: backtrace

Comment 2 Frank Büttner 2016-12-16 06:14:57 UTC
Created attachment 1232442 [details]
File: environ

Comment 3 Frank Büttner 2016-12-16 06:14:58 UTC
Created attachment 1232443 [details]
File: machineid

Comment 4 Pavel Raiskup 2019-11-14 07:16:19 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.