Hi Steve,

Awesome!  Thanks, I will watch for it.



Regards,

Darcy

Darcy Watkins ::  Senior Staff Engineer, Firmware

SIERRA WIRELESS
Direct  +1 604 233 7989   ::  Fax  +1 604 231 1109  ::  Main  +1 604 231 1100
13811 Wireless Way  :: Richmond, BC Canada V6V 3A4
[M4]
[email protected]<mailto:[email protected]> :: 
www.sierrawireless.com<http://www.sierrawireless.com/>

From: Steve Sakoman <[email protected]>
Date: Wednesday, May 25, 2022 at 12:58 PM
To: Darcy Watkins <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [yocto] Kirkstone 4.0.1 - Exception: NameError: name 
'json_summary_name' is not defined
On Wed, May 25, 2022 at 9:34 AM Darcy Watkins
<[email protected]> wrote:
>
> Hi,
>
>
>
> After sync-up with kirkstone 4.0.1, I get the following error…
>
>
>
> Image CVE report stored in: 
> /home/dwatkins/workspace/mgos/voyager1/build/tmp/deploy/images/mg90/omg-supplement-mfwimages-mg90-20220525182226.rootfs.cve
>
> ERROR: omg-supplement-mfwimages-1.0-r0 do_rootfs: Error executing a python 
> function in exec_func_python() autogenerated:

There is a fix for this issue on list for review, it should be
available in the kirkstone branch later today.

Steve

> 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/dwatkins/workspace/mgos/voyager1/upstream/yocto/poky/meta/classes/cve-check.bbclass',
>  lineno: 213, function: cve_check_write_rootfs_manifest
>
>      0209:
>
>      0210:        link_path = os.path.join(deploy_dir, "%s.json" % link_name)
>
>      0211:        manifest_path = d.getVar("CVE_CHECK_MANIFEST_JSON")
>
>      0212:        bb.note("Generating JSON CVE manifest")
>
>  *** 0213:        generate_json_report(json_summary_name, 
> json_summary_link_name)
>
>      0214:        bb.plain("Image CVE JSON report stored in: %s" % link_path)
>
>      0215:}
>
>      0216:
>
>      0217:ROOTFS_POSTPROCESS_COMMAND:prepend = 
> "${@'cve_check_write_rootfs_manifest; ' if 
> d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}"
>
> Exception: NameError: name 'json_summary_name' is not defined
>
>
>
> ERROR: Logfile of failure stored in: 
> /home/dwatkins/workspace/mgos/voyager1/build/tmp/work/mg90-poky-linux-gnueabi/omg-supplement-mfwimages/1.0-r0/temp/log.do_rootfs.16510
>
> ERROR: Task 
> (/home/dwatkins/workspace/mgos/voyager1/meta-mgos-core/recipes-images/images/omg-supplement-mfwimages.bb:do_rootfs)
>  failed with exit code '1'
>
> NOTE: Tasks Summary: Attempted 8400 tasks of which 7718 didn't need to be 
> rerun and 1 failed.
>
> NOTE: Generating JSON CVE summary
>
> CVE report summary created at: 
> /home/dwatkins/workspace/mgos/voyager1/build/tmp/log/cve/cve-summary.json
>
>
>
>
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 130)         
> json_summary_link_name = os.path.join(cvelogpath, 
> d.getVar("CVE_CHECK_SUMMARY_FILE_NAME_JSON"))
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 131)         
> json_summary_name = os.path.join(cvelogpath, "%s-%s.json" % 
> (cve_summary_name, timestamp))
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 132)         
> generate_json_report(json_summary_name, json_summary_link_name)
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 133)         
> bb.plain("CVE report summary created at: %s" % json_summary_link_name)
>
>
>
>
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 210)         
> link_path = os.path.join(deploy_dir, "%s.json" % link_name)
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 211)         
> manifest_path = d.getVar("CVE_CHECK_MANIFEST_JSON")
>
> 777f1d42b62 (Marta Rybczynska       2022-03-29 14:54:31 +0200 212)         
> bb.note("Generating JSON CVE manifest")
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 213)         
> generate_json_report(json_summary_name, json_summary_link_name)
>
> 645c157befa (Davide Gardenal        2022-05-03 09:51:43 +0200 214)         
> bb.plain("Image CVE JSON report stored in: %s" % link_path)
>
>
>
>
>
> I am not sure whether we need to locally setup the “json_summary_name” in  
> “python cve_check_write_rootfs_manifest ()” like was done inside “python 
> cve_save_summary_handler ()” or if something different was supposed to be 
> passed to “generate_json_report()” instead.
>
>
>
>
>
> Regards,
>
>
>
> Darcy
>
>
>
> Darcy Watkins ::  Senior Staff Engineer, Firmware
>
>
>
> SIERRA WIRELESS
>
> Direct  +1 604 233 7989   ::  Fax  +1 604 231 1109  ::  Main  +1 604 231 1100
>
> 13811 Wireless Way  :: Richmond, BC Canada V6V 3A4
>
> [M4]
>
> [email protected] :: 
> https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.sierrawireless.com%2F&amp;data=05%7C01%7Cdwatkins%40sierrawireless.com%7C8154326625634f53c21308da3e88f58a%7C08059a4c248643dd89e33a747e0dcbe8%7C0%7C0%7C637891055218478725%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=Beu3mEcOFIh3vQC1sN5kjjqaaE6DkHiNtYZVC3l%2FwbI%3D&amp;reserved=0
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57191): https://lists.yoctoproject.org/g/yocto/message/57191
Mute This Topic: https://lists.yoctoproject.org/mt/91340574/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to