From fbc7bec71319400149170c174884d0daa55bd4af Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Tue, 11 Aug 2015 11:58:49 +0100 Subject: [PATCH] Set lxc.autodev=0 for cinder_volumes in containers With cinder_volumes we were creating a specific udev device, this will fail to mount if lxc.autodev=1. This should only be required when lvm is a backend for the cinder_volumes container. We can specify lxc.autodev=0 for cinder_volumes containers. To do this properly we first check if lvm is in use. We can also use this to ensure that redundant "lvm" configuration isn't setup on volumes hosts with no lvm backend. Additionally this will fix the formatting on the "udev" lxc.mount.entry as it was adding additional spaces. Change-Id: Iabe72003ebcfefe11d360131fdde64ca4b21a192 Closes-Bug: #1483650 --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index c93e1b12..959048e1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,3 +37,4 @@ - include: cinder_lvm_config.yml when: > inventory_hostname in groups['cinder_volume'] + and cinder_backend_lvm_inuse