Bug 2218922

Summary: [abrt] mock: rmtree(): file_util.py:79:rmtree:OSError: [Errno 39] Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/kernel-6.4-1761-g6aeadf7896bf/linux-6.5.0-0.rc0.20230628git6aeadf7896bf.2.fc39.x86_64/Documentation/ABI'
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: mockAssignee: Copr Team <copr-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: copr-team, mikhail.v.gavrilov, msuchy, philip.wyett, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/64515fb6d61acc520a5eb6ef4be07dec70289a8
Whiteboard: abrt_hash:1041eeb9df4aa55f66d02ad494216843d46c07d0;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-10 13:06:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Mikhail 2023-06-30 14:56:20 UTC
Version-Release number of selected component:
mock-4.1-1.fc39

Additional info:
reporter:       libreport-2.17.10
kernel:         6.5.0-0.rc0.20230627git1ef6663a587b.60.fc39.x86_64+debug
cmdline:        /usr/bin/python3 -tt /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --resultdir /home/mikhail/packaging-work/kernel/results_kernel/6.5.0/0.rc0.20230628git6aeadf7896bf.2.fc39 --rebuild /home/mikhail/packaging-work/kernel/kernel-6.5.0-0.rc0.20230628git6aeadf7896bf.2.fc39.src.rpm
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3727c435-41ae-41e8-a773-028433d7a2fe.scope
uid:            0
reason:         file_util.py:79:rmtree:OSError: [Errno 39] Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/kernel-6.4-1761-g6aeadf7896bf/linux-6.5.0-0.rc0.20230628git6aeadf7896bf.2.fc39.x86_64/Documentation/ABI'
executable:     /usr/libexec/mock/mock
type:           Python3
package:        mock-4.1-1.fc39
runlevel:       N 5
exception_type: OSError
crash_function: rmtree
interpreter:    python3-3.11.4-1.fc39.x86_64

Truncated backtrace:
#1 [/usr/lib/python3.11/site-packages/mockbuild/file_util.py:79] rmtree
#2 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#3 [/usr/lib/python3.11/site-packages/mockbuild/buildroot.py:943] delete
#4 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#5 [/usr/lib/python3.11/site-packages/mockbuild/backend.py:93] clean
#6 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#7 [/usr/lib/python3.11/site-packages/mockbuild/rebuild.py:23] rebuild_generic

Comment 1 Mikhail 2023-06-30 14:56:25 UTC
Created attachment 1973413 [details]
File: os_info

Comment 2 Mikhail 2023-06-30 14:56:27 UTC
Created attachment 1973414 [details]
File: environ

Comment 3 Mikhail 2023-06-30 14:56:28 UTC
Created attachment 1973415 [details]
File: mountinfo

Comment 4 Mikhail 2023-06-30 14:56:30 UTC
Created attachment 1973416 [details]
File: open_fds

Comment 5 Mikhail 2023-06-30 14:56:32 UTC
Created attachment 1973417 [details]
File: namespaces

Comment 6 Mikhail 2023-06-30 14:56:34 UTC
Created attachment 1973418 [details]
File: backtrace

Comment 7 Mikhail 2023-06-30 14:56:36 UTC
Created attachment 1973419 [details]
File: cpuinfo

Comment 8 Pavel Raiskup 2023-08-10 13:06:06 UTC
Thank you for the report, this is being resolved in bug #2186613.

*** This bug has been marked as a duplicate of bug 2186613 ***