Bug 14379

Summary: possible do_packagedata_setscene race condition
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandre Belloni <alexandre.belloni>
Component: oe-core otherAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jon.mason, randy.macleod
Version: 3.4   
Target Milestone: 3.4   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2021-05-06 10:14:25 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1442/steps/14/logs/stdio

ca-certificates-20210119-r0 do_packagedata_setscene fails with:

Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./* /home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64' returned non-zero exit status 1.
Subprocess output:
cp: cannot create directory '/home/pokybuild/yocto-worker/oe-selftest/build/build-st-25595/tmp/pkgdata/qemux86-64/shlibs2': File exists
Comment 1 Jon Mason 2021-05-21 14:28:28 UTC
Reoccurrence
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/2109/steps/14/logs/stdio

oe-selftest-fedora
fedora33-ty-1
Comment 2 Richard Purdie 2021-06-28 13:06:07 UTC
Related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=13999
Comment 3 Richard Purdie 2021-06-28 13:21:52 UTC
The copyhardlinktree() code copies directories first, then copies files in the command here that failed so it is as if something deleted the directory in parallel, then there were races over creation of it. That could be from manifest cleaning as per bug 13999.