Skip to content

Commit

Permalink
Merge pull request #714 from openshift-cherrypick-robot/cherry-pick-7…
Browse files Browse the repository at this point in the history
…11-to-18.0.0-proposed

[18.0.0-proposed] Fix mounting issue for hgpages and test
  • Loading branch information
openshift-merge-bot[bot] authored Jul 29, 2024
2 parents 5da6631 + a9be34a commit 4472dcf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions roles/edpm_extra_mounts/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@
# common directories
- "/dev/hugepages1G"
- "/dev/hugepages2MB"
- name: Check if directories are mounted
shell: mount | grep "{{ item }}"
register: mount_check
ignore_errors: yes
with_items:
- "/dev/hugepages1G"
- "/dev/hugepages2MB"
- name: Fail if any directory is not mounted
fail:
msg: "Directory {{ item.item }} is not mounted"
when: item.rc != 0
with_items: "{{ mount_check.results }}"
2 changes: 1 addition & 1 deletion roles/edpm_extra_mounts/tasks/extra_mounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
fstype: "{{ item.fstype }}"
opts: "{{ item.opts }}"
state: mounted
loop: "{{ edpm_default_mounts | zip(edpm_extra_mounts) | list }}"
loop: "{{ edpm_default_mounts + edpm_extra_mounts }}"
tags:
- extra_mounts

0 comments on commit 4472dcf

Please sign in to comment.