From 101856b8633861241ecac969393bca1e6ca759e5 Mon Sep 17 00:00:00 2001
From: Jeffrey Zhang <jeffrey.zhang@99cloud.net>
Date: Tue, 19 Jul 2016 23:16:36 +0800
Subject: [PATCH] Fix the failure to create instance snapshot

When making snapshot for instance with ceph enabled, nova will use
upate image api to create the snapshot directly. with the patchset
I7284dee828bc8ca00747bc7668b37fa7176afc85 in Glance, the
show_multiple_locations must be True.

Change-Id: Ic9612566e2ab8f641030fef97b519f11d942a915
Closes-Bug: #1604464
---
 ansible/roles/glance/templates/glance-api.conf.j2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/glance/templates/glance-api.conf.j2 b/ansible/roles/glance/templates/glance-api.conf.j2
index 272dc0d9d3..86ae85f1cf 100644
--- a/ansible/roles/glance/templates/glance-api.conf.j2
+++ b/ansible/roles/glance/templates/glance-api.conf.j2
@@ -12,6 +12,7 @@ registry_host = {{ kolla_internal_fqdn }}
 
 {% if enable_ceph | bool %}
 show_image_direct_url= True
+show_multiple_locations = True
 {% endif %}
 
 cinder_catalog_info = volume:cinder:internalURL