Revert "Remove priviledged mode for nova-api"

This reverts commit c18615efd5.

This patch fixs nova-api failure on ubuntu binary.

Change-Id: Ie411399eccb0ef7ee004f77a9b1adceca3aa0cc5
Related-Bug: #1715404
This commit is contained in:
Jeffrey Zhang 2017-09-06 22:32:49 +08:00
parent b9bfe07d24
commit 0163162b65
2 changed files with 2 additions and 0 deletions

View File

@ -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"

View File

@ -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"