[UC20] disk/disk_stress_ng_* fail on encrypted partitions if not run right after installing the OS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Expired
|
High
|
Unassigned |
Bug Description
Summary
=======
On first boot after install, Checkbox correctly detects encrypted partitions based on udev output. On subsequent reboots, Checkbox fails to detect the encrypted partition, leading to errors when running disk/disk_
This is apparently due to the way udev rules are defined for dm partitions (see comments #2 and #3).
Original description
-------
This is probably related to lp:1948384.
CID: 202109-29473 (but it was reported with other devices and projects)
image: uc20-x03 for this project
1. Install the OEM image on the device:
sudo snap install checkbox20 && sudo snap install checkbox-carlsbad --edge --devmode
2. Run Stress Test plan
Expected result
===============
The disk/disk_
Actual result
=============
There is one test, disk/disk_
=======
STRESS_NG_DISK_TIME env var is not found, stress_ng disk running time is default value
WARNING:
ERROR:root:Disk is too small to test. Aborting test!
** Unable to find a suitable partition! Aborting!
retval is 1
*******
** stress-ng test failed!
*******
=======
Full submission: https:/
3. Reinstall the image, reinstall Checkbox, and run another Test Plan (Automated, for instance)
4. Abandon the current session, re-launch Checkbox and select the Stress Test Plan.
→ Sometimes, the job `disk/disk_
In that case, the job will pass, as seen in this submission: https:/
Changed in plainbox-provider-checkbox: | |
milestone: | none → 0.64.0 |
importance: | Undecided → High |
description: | updated |
tags: | added: cbox-21 |
description: | updated |
summary: |
- disk/disk_stress_ng_* fail on encrypted partitions, but not always + [UC20] disk/disk_stress_ng_* fail on encrypted partitions if not run + right after installing the OS |
Changed in plainbox-provider-checkbox: | |
status: | New → Fix Released |
Changed in plainbox-provider-checkbox: | |
status: | Fix Released → Confirmed |
milestone: | 0.64.0 → 0.65.0 |
Changed in plainbox-provider-checkbox: | |
milestone: | 0.65.0 → 0.66.0 |
Changed in plainbox-provider-checkbox: | |
milestone: | 2.0.0 → 2.1.0 |
It happened again to me, on another project using UC20 and full disk encryption.
The first time I installed UC20, and Checkbox20, running:
checkbox- <project> .checkbox- cli run com.canonical. certification: :device
returned the following item in the DISK category:
(...) pci0000: 00/0000: 00:1c.0/ mmc_host/ mmc0/mmc0: 0001
path: /devices/
name: mmcblk0
bus: mmc
category: DISK
driver: mmcblk
product: DG4032
product_slug: DG4032
(...)
Because of this, `disk/disk_ stress_ ng_mmcblk0` failed:
======= ======= ======= ======= = root:Warning: mmcblk0p3 is less than 10 GiB in size! ******* ******* ******* ******* ******* ******* ******* ****** ******* ******* ******* ******* ******* ******* ******* ****** ======= ======= ======= =
STRESS_NG_DISK_TIME env var is not found, stress_ng disk running time is default value
WARNING:
ERROR:root:Disk is too small to test. Aborting test!
** Unable to find a suitable partition! Aborting!
retval is 1
*******
** stress-ng test failed!
*******
=======
After reinstalling the OS and Checkbox, the device resource job output was:
(...) virtual/ block/dm- 0
path: /devices/
name: dm-0
bus: block
category: DISK
product: dm-0
product_slug: dm-0
path: /devices/ virtual/ block/dm- 1
name: dm-1
bus: block
category: DISK
product: dm-1
product_slug: dm-1
(...)
and this time, the `disk/disk_ stress_ ng_*` jobs can be run properly.