From 13e5942a578f830d6eb94e668c91977ea366f1d3 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 20 Apr 2017 13:57:35 +0800 Subject: [PATCH] Mount /lib/modules folder for cinder-volume container When using cinder lvm backend storage driver, lvcreate will load dm_* linux modules when need. So /lib/modules is needed by cinder_volume container. Change-Id: I80985794d6aaa6b4ddc71680a97e0d07085dafa7 Closes-Bug: #1684378 --- ansible/roles/cinder/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/cinder/defaults/main.yml b/ansible/roles/cinder/defaults/main.yml index 6d0cff78ea..379ead3e5d 100644 --- a/ansible/roles/cinder/defaults/main.yml +++ b/ansible/roles/cinder/defaults/main.yml @@ -31,6 +31,7 @@ cinder_services: - "{{ node_config_directory }}/cinder-volume/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" - "/dev/:/dev/" + - "/lib/modules:/lib/modules:ro" - "/run/:/run/:shared" - "{% if enable_iscsid | bool %}cinder:/var/lib/cinder{% endif %}" - "{% if enable_iscsid | bool %}iscsi_info:/etc/iscsi{% endif %}"