From 0163162b6598b78ea8255a068efc034e5a737cf0 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 6 Sep 2017 22:32:49 +0800 Subject: [PATCH] Revert "Remove priviledged mode for nova-api" This reverts commit c18615efd54d57f89d1a81729099285ea1fca3a7. This patch fixs nova-api failure on ubuntu binary. Change-Id: Ie411399eccb0ef7ee004f77a9b1adceca3aa0cc5 Related-Bug: #1715404 --- ansible/roles/nova/defaults/main.yml | 1 + ansible/roles/nova/handlers/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/roles/nova/defaults/main.yml b/ansible/roles/nova/defaults/main.yml index 5ddf4e5a35..ebb341a49a 100644 --- a/ansible/roles/nova/defaults/main.yml +++ b/ansible/roles/nova/defaults/main.yml @@ -46,6 +46,7 @@ nova_services: group: "nova-api" image: "{{ nova_api_image_full }}" enabled: True + privileged: True volumes: - "{{ node_config_directory }}/nova-api/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" diff --git a/ansible/roles/nova/handlers/main.yml b/ansible/roles/nova/handlers/main.yml index 42699947e8..799752f96f 100644 --- a/ansible/roles/nova/handlers/main.yml +++ b/ansible/roles/nova/handlers/main.yml @@ -85,6 +85,7 @@ common_options: "{{ docker_common_options }}" name: "{{ service.container_name }}" image: "{{ service.image }}" + privileged: "{{ service.privileged | default(False) }}" volumes: "{{ service.volumes|reject('equalto', '')|list }}" when: - action != "config"