Open
Description
Right now we have two iscsi tests (and will soon have a 3rd) that all:
- start a VM
- pull down/start a targetd container
- Run coreos-installer to do an install with iscsi kargs set
- pull down coreos-assembler container to:
- spin up a nested VM using iPXE with sanboot options set
This makes for an extremely heavyweight test. It downloads two containers (cosa being a really large one) and relies on nested virtualization, which apparently doesn't work on multiarch.
I suggest that we re-architect this such that we
- start one VM to run targetd
- needs to be a VM and not just a process started by COSA because targetd requires a kernel module.
- start other VMs (not nested) to run the individual tests
- they will talk to the initially started VM
- of course, qemu user mode networking presents a challenge here, but I think we can handle it
- they will talk to the initially started VM
The idea here is that if a single one of the tests are called they will spin up the initial VM and run the test, but if multiple of the tests are called then the initial VM will only need to be setup once.
Benefits of this approach:
- pulls targetd container once per test run (versus 3 times)
- does not pull coreos-assembler container at all
- this also was problematic anyway because the cosa container we were pulling could be a different version than the COSA we are initiating this whole test from
- does not rely on nested virtualization
One potential model we could follow for this is what is currently done for the luks/tang tests in:
Metadata
Metadata
Assignees
Labels
No labels