Bug 14974 - cve_check_write_rootfs_manifest fails with FileNotFoundError
Summary: cve_check_write_rootfs_manifest fails with FileNotFoundError
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.3
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2022-11-24 15:17 UTC by Alexandre Belloni
Modified: 2023-05-04 13:14 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2022-11-24 15:17:42 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/4368/steps/14/logs/stdio

ERROR: core-image-minimal-initramfs-1.0-r0 do_rootfs: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:cve_check_write_rootfs_manifest(d)
     0003:
File: '/home/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/classes/cve-check.bbclass', lineno: 238, function: cve_check_write_rootfs_manifest
     0234:    if enable_text:
     0235:        link_path = os.path.join(deploy_dir, "%s.cve" % link_name)
     0236:        manifest_name = d.getVar("CVE_CHECK_MANIFEST")
     0237:
 *** 0238:        with open(manifest_name, "w") as f:
     0239:            f.write(text_data)
     0240:
     0241:        update_symlinks(manifest_name, link_path)
     0242:        bb.plain("Image CVE report stored in: %s" % manifest_name)
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-710930/tmp/deploy/images/qemux86-64/core-image-minimal-initramfs-qemux86-64-20221118204257.cve'
Comment 1 Alexandre Belloni 2022-12-08 10:53:45 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/4441/steps/14/logs/stdio
oe-selftest-fedora fedora36-ty-3
Comment 2 Jermain Horsman 2023-04-26 06:34:27 UTC
This should be fixed as of https://git.yoctoproject.org/poky/commit/?id=14a852c273c43dbf04d6502c5cbbe5768d165c5d
Comment 3 Alexandre Belloni 2023-05-04 13:14:18 UTC
Fixed (see previous comment)