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

Distributed-FIO: PV not getting mounted to server POD when created with pvcvolumemode: Block #793

Closed
shekharberry opened this issue Jul 28, 2022 · 5 comments

Comments

@shekharberry
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

When in distributed-FIO CR we specify pvcvolumemode: Block (Default is Filesystem), the PV is not getting mounted on the server POD. The PVC gets bound successfully.

The reason for this is for block mode the POD should have -devicePath but it has -mountPath. (https://kubernetes.io/docs/concepts/storage/persistent-volumes/#pod-specification-adding-raw-block-device-path-in-container)

Here's the output of POD in yaml when pvcvolumemode is Block: http://pastebin.test.redhat.com/1067721

To Reproduce
Steps to reproduce the behavior:

  1. Deploy Benchmark-operator
  2. Set pvcvolumemode: Block in distributed-FIO CR

Expected behavior
A clear and concise description of what you expected to happen.

the pod yaml, should have something like this for block mode: (Note: its an example)

volumeDevices:
- devicePath: "/dev/xvda"
name: lvm-block-pvc

but it has

volumeDevices:
- mountPath: "/dev/xvda"
name: lvm-block-pvc

Note, for pvcvolumemode: Filesystem (Default Config), the server POD comes up and tests finish successfully.

@mykaul
Copy link

mykaul commented Aug 10, 2022

How would a distributed fio work against a single block? Who'll coordinate the writes and reads?

@shekharberry
Copy link
Contributor Author

This issue came up when I was evaluating LVMO Block performance on SNO (by specifying VolumeMode = block in PVC). The FIO tests wouldn't run because of issue described above
It again came up when I had to measure LSO performance where block PVs are created.
My plan is to assign one PV (from 1 NVMe) to a single FIO server and measure performance. This way the storage wouldn't have the shared access.

@mulbc
Copy link
Contributor

mulbc commented Aug 10, 2022

@mykaul - Ripsaw never shares the same PVC between Pods. Ripsaw creates as many Pods as we define in the servers variable (in the benchmark CR). Each Pod gets its own PVC. We can tune the amount of parallel IO per PVC with the numjobs and iodepth variables.
Because of this, block PVCs should work just fine

@mulbc
Copy link
Contributor

mulbc commented Aug 10, 2022

@shekharberry I think you just need to fix this here:
https://github.com/cloud-bulldozer/benchmark-operator/blob/master/roles/fio_distributed/templates/servers.yaml#L51
Add another if clause for block mode. (could you send a PR please?)

As far as I can see, fio on VMs should work fine already and is not affected by this bug

@stale
Copy link

stale bot commented Oct 22, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the not_ready label Oct 22, 2022
@stale stale bot closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants