diff --git a/ocs_ci/templates/CSI/cephfs/pod.yaml b/ocs_ci/templates/CSI/cephfs/pod.yaml index f26c7b10d9a..aa87837787b 100644 --- a/ocs_ci/templates/CSI/cephfs/pod.yaml +++ b/ocs_ci/templates/CSI/cephfs/pod.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: quay.io/ocsci/nginx:latest + image: quay.io/ocsci/nginx:fio volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/ocs_ci/templates/CSI/rbd/pod.yaml b/ocs_ci/templates/CSI/rbd/pod.yaml index e5ac78daf43..34eb5984e64 100644 --- a/ocs_ci/templates/CSI/rbd/pod.yaml +++ b/ocs_ci/templates/CSI/rbd/pod.yaml @@ -7,7 +7,7 @@ metadata: spec: containers: - name: web-server - image: quay.io/ocsci/nginx:latest + image: quay.io/ocsci/nginx:fio volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/ocs_ci/templates/app-pods/nginx.yaml b/ocs_ci/templates/app-pods/nginx.yaml index 16b936edd62..62f641f7a35 100644 --- a/ocs_ci/templates/app-pods/nginx.yaml +++ b/ocs_ci/templates/app-pods/nginx.yaml @@ -7,7 +7,7 @@ metadata: spec: containers: - name: web-server - image: quay.io/ocsci/nginx:latest + image: quay.io/ocsci/nginx:fio volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/ocs_ci/templates/app-pods/raw_block_pod.yaml b/ocs_ci/templates/app-pods/raw_block_pod.yaml index eee3cb01361..2569e2513b4 100644 --- a/ocs_ci/templates/app-pods/raw_block_pod.yaml +++ b/ocs_ci/templates/app-pods/raw_block_pod.yaml @@ -5,7 +5,7 @@ metadata: spec: containers: - name: my-container - image: quay.io/ocsci/nginx:latest + image: quay.io/ocsci/nginx:fio securityContext: capabilities: {} volumeDevices: diff --git a/ocs_ci/utility/workloads/fio.py b/ocs_ci/utility/workloads/fio.py index bca9e103901..eadd370a6e6 100644 --- a/ocs_ci/utility/workloads/fio.py +++ b/ocs_ci/utility/workloads/fio.py @@ -38,6 +38,8 @@ def setup(**kwargs): bool: True if setup succeeds else False """ io_pod = kwargs["pod"] + if "fio-" in io_pod.exec_cmd_on_pod(command="fio --version"): + return True # For first cut doing simple fio install distro = find_distro(io_pod) pkg_mgr = DISTROS[distro]