Page MenuHomeVyOS Platform

Adjust RAID smoketest for non-deterministic SCSI device probing
Closed, ResolvedPublicBUG

Description

The occasional failures of the RAID smoketest can be traced to a reliance on the disk name (/dev/sda, /dev/sdb) when flipping the boot order during the test. Caution against this assumption is mentioned here:
https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.en.html#scsi-non-deterministic

Add a utils function to get device name from the drive id specified in the qemu command and extend op-mode format_disk.py and raid.py to use id.

Details

Difficulty level
Normal (likely a few hours)
Version
vyos-1.5, vyos-1.4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)