Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate SPDK Testing #30

Closed
2 tasks done
knikolla opened this issue May 22, 2024 · 2 comments
Closed
2 tasks done

Investigate SPDK Testing #30

knikolla opened this issue May 22, 2024 · 2 comments
Assignees

Comments

@knikolla
Copy link
Contributor

knikolla commented May 22, 2024

Currently, SPDK supports different backends for block devices. There is an autotest.sh file that handles the configuration of the the environment and executes the testing suite, including block device backends.

We want to take advantage of SPDK's upstream testing capabilities for LSVD.

Steps

  • Run the tests on SPDK in a VM (some can't be run without hardware or emulated nvme devices)
  • Document the various configuration options (comment below)
@knikolla knikolla self-assigned this May 22, 2024
@knikolla
Copy link
Contributor Author

Upstream CI is driven by the autorun.sh file and autotest.sh commands respectively.

These require an autorun-spdk.conf file. Such a sample file ready to be edited can be found in scripts/vagrant/autorun-spdk.conf

Running the unit-tests as is, is troublesome because autotest.sh (which is executed by autorun.sh) has a dependency on the nvme command existing in the system and on the presence of nvme devices. Though changing the order does seem to allow most unit tests to run, they don't seem terribly useful.

The most useful part of the tests seem to be

  • test/bdev
  • test/iscsi/rbd

They both call fio, in addition to testing various rpc.py commands handled by the block device driver. The repo's (app/fio) fio has support for specifying a SPDK block device.

It might be a good starting point to just implement fio and the various rpc.py commands exercised in the tests as part of our LSVD CI.

@knikolla
Copy link
Contributor Author

Created issue #31

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

No branches or pull requests

1 participant