sdk-debos-image-building: test failed
Image versions
Steps to reproduce
See https://qa.apertis.org/sdk-debos-image-building.html
Impact
Most of the time the test is succeeding, see https://lavaphabbridge.apertis.org/report/v2021/20210512.0115/apt#sdk-debos-image-building
Sometimes it fails on the image and the bmap that the test itself generated with a checksum mismatch:
bmaptool: info: copying image 'sample-production-v2021-minimal-armhf.img.gz' to file 'fake-sdcard.raw' using bmap file 'sample-production-v2021-minimal-armhf.img.bmap'
bmaptool: [91mERROR[0m: An error occurred, here is the traceback:
Traceback (most recent call last):
File \"/usr/lib/python3/dist-packages/bmaptools/CLI.py\", line 489, in copy_command
writer.copy(False, not args.no_verify)
File \"/usr/lib/python3/dist-packages/bmaptools/BmapCopy.py\", line 583, in copy
reraise(exc_info[0], exc_info[1], exc_info[2])
File \"/usr/lib/python3/dist-packages/six.py\", line 693, in reraise
raise value
File \"/usr/lib/python3/dist-packages/bmaptools/BmapCopy.py\", line 531, in _get_data
chksum, self._image_path))
bmaptool: [91mERROR[0m: checksum mismatch for blocks range 62468-62834: calculated bd080f92c30abfa8a995a77ebbee217f6989a02460107c282dbe05c00f111748, should be e88cd868257ae57f5beee2058db39269ee70148c360ac76519146631a581e72c (image file sample-production-v2021-minimal-armhf.img.gz)
The issue seems to be due to debos
failing to umount at the end of a recipe:
2021/06/08 18:11:21 ==List files on sample-production-v2021-minimal-armhf ====
==========
2021/06/08 18:11:26 Warning: Failed to get unmount /: device or resource busy
2021/06/08 18:11:26 Unmount failure can cause images being incomplete!
2021/06/08 18:11:26 ==Create block map for sample-production-v2021-minimal-armhf.img ====
==========
Logs
https://lava.collabora.co.uk/results/3760604/12_sdk-debos-image-building
Outcomes
- fix failure on v2021 due to tdb removal (T7887): apertis-image-recipes!379 (merged) (not related to the error above)
- fix failure on v2022dev3 due to broken recipe apertis-image-recipes!415 (merged)
- disable kvm on sdk-debos-image-building test case:
- Fix debos recipe steps order: apertis-image-recipes!533 (merged)
- Fix removing the KVM module in v2021: tests/apertis-test-cases!477 (merged)
Management data
This section is for management only, it should be the last one in the description.
apertis:lava:suite: sdk-debos-image-building
Phabricator link: https://phabricator.apertis.org/T7879