Skip to content

Commit

Permalink
Bypass setting hugepage directory file permissions (bsc#1092431)
Browse files Browse the repository at this point in the history
There seems to be a defect/problem in ansible which
prevents it from using the mode option in the file module.
A quick search on "mode must be in octal or symbolic form"
turn up examples like:

ansible/ansible#31952

The "mode" option is not required at
thispoint in the installation (nova deployment),
because the directory already has the correct mode
from os-config section of the installation. Thus
setting the hugepage directories file permissions
can be bypassed.

Change-Id: Ie19c5b655ad61ccbfba28ff8f0ad7c462e6b573b
  • Loading branch information
adolfo committed Aug 4, 2018
1 parent c598123 commit 915f9b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion roles/NOV-CMP-KVM/defaults/main.yml
Expand Up @@ -33,7 +33,6 @@ nova_cgroup_device_acl:
- /dev/hpet
- /dev/vfio/vfio
huge_page_sizes: "{{ non_numa_huge_pages | union(numa_huge_pages) | map(attribute='size') | unique | list }}"
huge_page_dirs_mode: +t,ug=rwx,o-rwx
neutron_ovs_bridge:
"{%- set ovs_br_list = NOV_KVM | provided_data('ovs_bridge') -%}
{%- if ovs_br_list | length > 0 -%}
Expand Down
1 change: 0 additions & 1 deletion roles/NOV-CMP-KVM/tasks/configure.yml
Expand Up @@ -177,7 +177,6 @@
state: directory
owner: "{{ libvirt_qemu_user }}"
group: "root"
mode: "{{ huge_page_dirs_mode }"
with_items:
total_huge_pages
when:
Expand Down

0 comments on commit 915f9b6

Please sign in to comment.