Skip to content

Commit

Permalink
Merge pull request #711 from mrkisaolamb/fix_extra_mounts
Browse files Browse the repository at this point in the history
Fix mounting issue for hgpages and test
  • Loading branch information
openshift-merge-bot[bot] authored Jul 29, 2024
2 parents 685decf + bf6baea commit 9a2cec3
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 9a2cec3

Please sign in to comment.