Skip to content

integration: Replace scsi_debug with loop devices - #507

Open
claudiubelu wants to merge 1 commit into
cloudbase:masterfrom
claudiubelu:integration-tests-lo-devices
Open

integration: Replace scsi_debug with loop devices#507
claudiubelu wants to merge 1 commit into
cloudbase:masterfrom
claudiubelu:integration-tests-lo-devices

Conversation

@claudiubelu

Copy link
Copy Markdown
Member

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.

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
claudiubelu force-pushed the integration-tests-lo-devices branch from ef832e8 to 4fdc4e9 Compare August 26, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant