Skip to content

Commit

Permalink
Fix problem when running VM fio workloads using pvcvolumemode=Block (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ddomingu authored Jan 3, 2025
1 parent 31c6969 commit deb7c8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions roles/fio_distributed/templates/configmap.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ data:
{% if workload_args.prefill is defined and workload_args.prefill is sameas true %}
fiojob-prefill: |
[global]
{% if workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
{% if workload_args.kind is defined and workload_args.kind == "vm" %}
directory={{fio_path}}
{% elif workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
filename={{fio_path}}
{% else %}
directory={{fio_path}}
Expand Down Expand Up @@ -50,7 +52,9 @@ data:
{% for job in workload_args.jobs %}
fiojob-{{job}}-{{i}}-{{numjobs}}: |
[global]
{% if workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
{% if workload_args.kind is defined and workload_args.kind == "vm" %}
directory={{fio_path}}
{% elif workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
filename={{fio_path}}
{% else %}
directory={{fio_path}}
Expand Down
4 changes: 3 additions & 1 deletion roles/fio_distributed/templates/prefill-configmap.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ data:
{% if workload_args.prefill is defined and workload_args.prefill is sameas true %}
fiojob-prefill: |
[global]
{% if workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
{% if workload_args.kind is defined and workload_args.kind == "vm" %}
directory={{fio_path}}
{% elif workload_args.pvcvolumemode is defined and workload_args.pvcvolumemode == "Block" %}
filename={{fio_path}}
{% else %}
directory={{fio_path}}
Expand Down

0 comments on commit deb7c8b

Please sign in to comment.