From a70a56998ca16e6ea7b49dce50b0e9fd19dbdeaa Mon Sep 17 00:00:00 2001
From: PranaliD <pdeore@redhat.com>
Date: Thu, 13 Jul 2017 12:08:04 +0530
Subject: [PATCH] Corrected wrong os_region_name in glance-api conf file

KeystoneRegion value for all endpoints is set as 'regionOne',
it should be same in the configuration file.
In case of Cinder as glance backend the os_region_name should be
"regionOne" instead of "RegionOne".

Currently CI is not failing because cinder backend scenario is not yet added.
But this would definitely fail if os_region_name=RegionOne.

Change-Id: I26811a404a20ea3c55f5b272f86d9269d0f6acec
Closes-Bug: 1704060
---
 puppet/services/glance-api.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/puppet/services/glance-api.yaml b/puppet/services/glance-api.yaml
index 53cde963c9..57c9300977 100644
--- a/puppet/services/glance-api.yaml
+++ b/puppet/services/glance-api.yaml
@@ -206,6 +206,7 @@ outputs:
             glance::api::pipeline: 'keystone'
             glance::api::show_image_direct_url: true
             glance::api::show_multiple_locations: {if: [glance_multiple_locations, true, false]}
+            glance::api::os_region_name: {get_param: KeystoneRegion}
             # NOTE: bind IP is found in Heat replacing the network name with the
             # local node IP for the given network; replacement examples
             # (eg. for internal_api):