cdts.checkbox-cli crashes with permission denied

Bug #1938236 reported by Doug Jacobs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel
New
Undecided
Unassigned

Bug Description

[Summary]Tried to run cdts.checkbox-cli locally on the device. Selected 20.04 client certification, TPM test set. Get an error while checkbox is saving the machine manifest.

Rerunning using sudo allowed me to resume the session.

[Steps to reproduce]
1. run cdts.checkbox-cli on the device.
2. select 20.04 client certification
3. select to only run TPM tests
4. Fill out the HW survey, making sure to answer Y for TPM.
5. Hit T to start testing

[Expected result]
Testing should commence and complete.

[Actual result]
=============[ Bootstrap com.canonical.certification::fwts (4/4) ]==============
Saving manifest to /var/tmp/checkbox-ng/machine-manifest.json
Traceback (most recent call last):
  File "/snap/checkbox20/current/bin/checkbox-cli", line 8, in <module>
    sys.exit(main())
  File "/snap/checkbox20/current/lib/python3.8/site-packages/checkbox_ng/launcher/checkbox_cli.py", line 139, in main
    subcmd.invoked(ctx)
  File "/snap/checkbox20/current/lib/python3.8/site-packages/checkbox_ng/launcher/subcommands.py", line 206, in invoked
    self._pick_jobs_to_run()
  File "/snap/checkbox20/current/lib/python3.8/site-packages/checkbox_ng/launcher/subcommands.py", line 419, in _pick_jobs_to_run
    self.ctx.sa.save_manifest(manifest_answers)
  File "/snap/checkbox20/current/lib/python3.8/site-packages/plainbox/impl/session/assistant.py", line 1254, in save_manifest
    with open(manifest, 'wt', encoding='UTF-8') as stream:
PermissionError: [Errno 13] Permission denied: '/var/tmp/checkbox-ng/machine-manifest.json'

[Failure rate]100%

[Additional information]
CID: 202105-29063
SKU:
system-manufacturer: Intel Corporation
system-product-name: Elkhart Lake Embedded Platform
bios-version: EHLSFWI1.R00.2091.A00.2002250754
CPU: Genuine Intel(R) CPU 0000 @ 1.90GHz (4x)
GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4571]
kernel-version: 5.11.0-1009-intel

[Stage]
Issue reported and logs collected right after it happened

Revision history for this message
Doug Jacobs (djacobs98) wrote :

Automatically attached

Revision history for this message
Doug Jacobs (djacobs98) wrote :

Automatically attached

Revision history for this message
Doug Jacobs (djacobs98) wrote :

Automatically attached

Revision history for this message
Doug Jacobs (djacobs98) wrote :

Automatically attached

Kent Lin (kent-jclin)
tags: added: iotg
Revision history for this message
Alex Hung (alexhung) wrote :

This should be an issue in checkbox and perhaps can be improved by request root access to the test (i.e. adding "user: root").

We should forward this to checkbox team for further investigations.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.