From 677ceb20a589b4262394ca9765ec23394082c8d1 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Thu, 3 Nov 2016 10:56:26 -0400 Subject: [PATCH] Fix bind mount of glance images Bind mount should be created when glance_nfs_client is either undefined OR empty Change-Id: I59b183dc376fd64300d088c9831fe5ea2e7412f0 Closes-Bug: #1638907 --- playbooks/os-glance-install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/os-glance-install.yml b/playbooks/os-glance-install.yml index c35e95e0c1..7b11d92e74 100644 --- a/playbooks/os-glance-install.yml +++ b/playbooks/os-glance-install.yml @@ -25,7 +25,9 @@ list_of_bind_mounts: - bind_dir_path: "/var/lib/glance/images" mount_path: "/openstack/{{ inventory_hostname }}" - when: (glance_default_store == "file") and (glance_nfs_client is not defined) + when: + - glance_default_store == "file" + - (glance_nfs_client is not defined) or (glance_nfs_client | length == 0) - include: common-tasks/os-lxc-container-setup.yml static: no when: (glance_default_store != "file") or (glance_nfs_client is defined)