canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 50 forks source link

disk/storage_device_.* failing because there are no partitions on the disk #1591

Closed fernando79513 closed 6 days ago

fernando79513 commented 2 weeks ago

Bug Description

Some devices with two disks have one disk without any partition. The disk/storage_device_.* is looking for the biggest partition to run the tests, but it can't find any.

ERROR: No suitable partitions found on device /dev/nvme1n1
Testing device nvme1n1
identified as a disk...

The disk/read_performance_.* test, which uses hdparm passes:

Beginning /tmp/nest-k5r6_jbu.4771b438089543e7739528211ff2a826932c860d013d00d54d5faddce42698a2/disk_read_performance_test.sh test for nvme1n1
---------------------------------------------------
INFO: nvme1n1 type is nvme
INFO: nvme: Using 200 MB/sec as the minimum throughput speed

Beginning hdparm timing runs
---------------------------------------------------
INFO: Iteration 1: Detected speed is 351.28 MB/sec
INFO: Iteration 2: Detected speed is 828.57 MB/sec
INFO: Iteration 3: Detected speed is 2047.35 MB/sec
INFO: Iteration 4: Detected speed is 2040.11 MB/sec
INFO: Iteration 5: Detected speed is 2060.09 MB/sec
INFO: Iteration 6: Detected speed is 2055.22 MB/sec
INFO: Iteration 7: Detected speed is 2071.96 MB/sec
INFO: Iteration 8: Detected speed is 2065.07 MB/sec
INFO: Iteration 9: Detected speed is 2085.68 MB/sec
INFO: Iteration 10: Detected speed is 2046.57 MB/sec
INFO: Maximum detected speed is 2085 MB/sec
---------------------------------------------------

PASS: nvme1n1 Max Speed of 2085 MB/sec is faster than Minimum Buffer Read Speed of 200 MB/sec
All devices passed testing!

But after that, the storage tests fail.

This issue has been detected in:

We should make sure that a partition table is in place for these disks or skip this test if the disk is not properly formatted.

Cert-blocker Test Case

To Reproduce

  1. Run checkbox.checkbox-cli run com.canonical.certification::disk-automated on one of this devices
  2. The disk/storage_device_.* fails for one of the disks

Environment

OS: UC22 checkbox type: snap Checkbox Version: 4.2.0-dev127 testing: disk

Relevant log output

----------------------[ Disk I/O stress test for nvme1n1 ]----------------------
ID: com.canonical.certification::disk/storage_device_nvme1n1
Category: com.canonical.plainbox::disk
... 8< -------------------------------------------------------------------------
Testing device nvme1n1
identified as a disk...
ERROR: No suitable partitions found on device /dev/nvme1n1

Additional context

No response

syncronize-issues-to-jira[bot] commented 2 weeks ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1650.

This message was autogenerated

fernando79513 commented 6 days ago

Duplicated of https://github.com/canonical/checkbox/issues/1512