integration: Replace scsi_debug with loop devices - #507
Open
claudiubelu wants to merge 1 commit into
Open
Conversation
coriolis-replicator refuses loop devices as exportable block devices by default. The integration tests' fake source / destination providers used scsi_debug to work around that. scsi_debug backs every host added under a given module load with the same dev_size_mb, so tests needing bigger devices (OS morphing, LUKS) had to unload / reload the kernel module around them. This essentially means that the tests have to run sequentially on the same host. Loop devices are backed by an individually-sized sparse file per device, so this constraint goes away. The test export provider now starts the replicator with -allow-loop-devices=true. The test suite has been updated to use loop devices instead of scsi_debug devices. Updated the vendored replicator binary, which now accepts the -allow-loop-devices flag.
claudiubelu
force-pushed
the
integration-tests-lo-devices
branch
from
August 26, 2026 13:41
ef832e8 to
4fdc4e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
coriolis-replicatorrefuses loop devices as exportable block devices by default. The integration tests' fake source / destination providers usedscsi_debugto work around that.scsi_debugbacks every host added under a given module load with the samedev_size_mb, so tests needing bigger devices (OS morphing, LUKS) had to unload / reload the kernel module around them. This essentially means that the tests have to run sequentially on the same host.Loop devices are backed by an individually-sized sparse file per device, so this constraint goes away. The test export provider now starts the replicator with
-allow-loop-devices=true.The test suite has been updated to use loop devices instead of
scsi_debugdevices.Updated the vendored replicator binary, which now accepts the
-allow-loop-devicesflag.