From 313d7871aa01fb51144ebb297cc4ceef8b17cdb3 Mon Sep 17 00:00:00 2001 From: liyingjun Date: Tue, 2 Apr 2019 11:42:59 +0800 Subject: [PATCH] Use ipc_mode: host for manila share ipc_mode: host should be set for manila share when using LVM driver[1]. [1]: https://docs.openstack.org/manila/latest/install/install-share-rdo.html Change-Id: If57e623f381f8de1e1433916f2ec37455ad3becd Closes-bug: #1822713 --- ansible/roles/manila/defaults/main.yml | 1 + ansible/roles/manila/handlers/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/roles/manila/defaults/main.yml b/ansible/roles/manila/defaults/main.yml index 915804fc49..f206d963b3 100644 --- a/ansible/roles/manila/defaults/main.yml +++ b/ansible/roles/manila/defaults/main.yml @@ -58,6 +58,7 @@ manila_services: volumes: - "{{ node_config_directory }}/manila-data/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" + - "/dev/:/dev/" - "/run/:/run/:shared" - "kolla_logs:/var/log/kolla/" - "{{ kolla_dev_repos_directory ~ '/manila/manila:/var/lib/kolla/venv/lib/python2.7/site-packages/manila' if manila_dev_mode | bool else '' }}" diff --git a/ansible/roles/manila/handlers/main.yml b/ansible/roles/manila/handlers/main.yml index c2d9bc74cb..17f03b88e0 100644 --- a/ansible/roles/manila/handlers/main.yml +++ b/ansible/roles/manila/handlers/main.yml @@ -89,6 +89,7 @@ name: "{{ service.container_name }}" image: "{{ service.image }}" privileged: "{{ service.privileged | default(False) }}" + ipc_mode: "host" volumes: "{{ service.volumes|reject('equalto', '')|list }}" dimensions: "{{ service.dimensions }}" when: