Skip to content

Commit

Permalink
[release-4.13] Create image nginx with FIO (#8930)
Browse files Browse the repository at this point in the history
* Create image nginx with FIO

Signed-off-by: oviner <oviner@redhat.com>
  • Loading branch information
openshift-cherrypick-robot authored May 15, 2024
1 parent 6456b9b commit fa2a2bd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ocs_ci/templates/CSI/cephfs/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/templates/CSI/rbd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/templates/app-pods/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ocs_ci/templates/app-pods/raw_block_pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions ocs_ci/utility/workloads/fio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fa2a2bd

Please sign in to comment.