]> git.ipfire.org Git - thirdparty/dracut.git/commit
ci: use disk ids for TEST 35 ISCSI MULTI
authorHarald Hoyer <harald@redhat.com>
Mon, 19 Apr 2021 14:34:05 +0000 (16:34 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 19 Apr 2021 20:32:00 +0000 (22:32 +0200)
commit8cd50230d9734c11caedddaca5f384a3fef07209
treed0019f4c2be87ef1b689d180b3a3ea608ff59fe1
parent2cfd778a45d592b42852b90cdfaf1b700ba423bc
ci: use disk ids for TEST 35 ISCSI MULTI

Due to parallel probing of the linux kernel `/dev/sd*` can't be used to
reliably address a hard disk. This can be seen by the many spurious
failures of the dracut CI, where `mdadm` failed with error 524 or tests
failed due to the success marker message written to the wrong disk.

* don't rely on `/dev/sd*` but use disk ids and `/dev/disk/by-id/ata-disk_<name>`

* specify the exact qemu machine architecture `-M q35` needed for the
  disk ids. A later patch will move this to `run-qemu`, when all tests are converted

* due to `-M q35` the interface names have changed from
  `ens2` -> `enp0s1` and `ens3` -> `enp0s2`
test/TEST-35-ISCSI-MULTI/99-idesymlinks.rules [deleted file]
test/TEST-35-ISCSI-MULTI/client-init.sh
test/TEST-35-ISCSI-MULTI/create-client-root.sh
test/TEST-35-ISCSI-MULTI/create-server-root.sh
test/TEST-35-ISCSI-MULTI/server-init.sh
test/TEST-35-ISCSI-MULTI/test.sh