From 915f9b628ee019148e1272adf2d9cf36ce8ff782 Mon Sep 17 00:00:00 2001 From: adolfo Date: Fri, 3 Aug 2018 16:53:21 -0700 Subject: [PATCH] Bypass setting hugepage directory file permissions (bsc#1092431) 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: https://github.com/ansible/ansible/issues/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 --- roles/NOV-CMP-KVM/defaults/main.yml | 1 - roles/NOV-CMP-KVM/tasks/configure.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/roles/NOV-CMP-KVM/defaults/main.yml b/roles/NOV-CMP-KVM/defaults/main.yml index 609b7d2..e2a0f37 100644 --- a/roles/NOV-CMP-KVM/defaults/main.yml +++ b/roles/NOV-CMP-KVM/defaults/main.yml @@ -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 -%} diff --git a/roles/NOV-CMP-KVM/tasks/configure.yml b/roles/NOV-CMP-KVM/tasks/configure.yml index 6c95310..889e918 100644 --- a/roles/NOV-CMP-KVM/tasks/configure.yml +++ b/roles/NOV-CMP-KVM/tasks/configure.yml @@ -177,7 +177,6 @@ state: directory owner: "{{ libvirt_qemu_user }}" group: "root" - mode: "{{ huge_page_dirs_mode }" with_items: total_huge_pages when: