Skip to content

Snap and Debian checkbox produces inconsistent fwts klog result #1997

@tomli380576

Description

@tomli380576

Bug Description

fwts klog reported 0 errors when running inside a checkbox shell but reported multiple errors when it's running as a regular debian package on the same device. One machine that can consistently reproduce this is 202411-35954

  • From the logs it seems like it's having permission issues

debian-fwts.log

snap-fwts.log

Cert-blocker Test Case

  • cert-blocker

To Reproduce

  1. Boot into OS
  2. sudo apt install fwts and run fwts klog. This should produce an error
  3. sudo apt remove fwts or just reinstall the OS
  4. Install snap checkbox
  5. sudo checkbox.shell or sudo snap run --shell checkbox.checkbox-cli
  6. Run fwts klog again,this time there's no error

Expected Result

fwts klog should report the same result in both environments

Actual Result

fwts klog only produces errors in debian checkbox

Environment

  • Ubuntu24.04
  • Both snap and debian

Relevant log output

Results generated by fwts: Version V25.03.00 (2025-03-26 03:08:14).

Some of this work - Copyright (c) 1999 - 2025, Intel Corp. All rights reserved.
Some of this work - Copyright (c) 2010 - 2025, Canonical.
Some of this work - Copyright (c) 2016 - 2025, IBM.
Some of this work - Copyright (c) 2017 - 2025, ARM Ltd.

This test run on 04/07/25 at 06:55:37 on host Linux localhost 6.11.0-1023-oem
#23-Ubuntu SMP PREEMPT_DYNAMIC Mon May 19 08:39:00 UTC 2025 x86_64.

Command: "fwts -r snap-fwts.log klog".
Running tests: klog.

klog: Scan kernel log for errors and warnings.
--------------------------------------------------------------------------------
Test 1 of 1: Kernel log error check.
Cannot read file //share/fwts/klog.json, check the path and check that the file
exists, you may need to specify -j or -J.
Error parsing kernel log.

================================================================================
0 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.
================================================================================


0 passed, 0 failed, 0 warning, 0 aborted, 0 skipped, 0 info only.

Test Failure Summary
================================================================================

Critical failures: NONE

High failures: NONE

Medium failures: NONE

Low failures: NONE

Other failures: NONE

Test           |Pass |Fail |Abort|Warn |Skip |Info |
---------------+-----+-----+-----+-----+-----+-----+
klog           |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+
Total:         |    0|    0|    0|    0|    0|    0|
---------------+-----+-----+-----+-----+-----+-----+

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions