From 76988e993c46f92906e35cf290251c5162907b67 Mon Sep 17 00:00:00 2001 From: Andrey Pavlov Date: Tue, 22 Nov 2016 13:57:30 +0000 Subject: [PATCH] Fixing endpoint type for glance client Providing endpoint_type option to glance client. Without that, public endpoint will be used to communicate with glance. Change-Id: I03e7ff07049158a8737fdf50d66c3cf7163d9f7c Closes-bug: #1643903 --- sahara/utils/openstack/glance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sahara/utils/openstack/glance.py b/sahara/utils/openstack/glance.py index 811e99ba..83f14409 100644 --- a/sahara/utils/openstack/glance.py +++ b/sahara/utils/openstack/glance.py @@ -43,5 +43,6 @@ CONF.register_opts(opts, group=glance_group) def client(): session = sessions.cache().get_session(sessions.SESSION_TYPE_GLANCE) - glance = glance_client.Client('2', session=session, auth=keystone.auth()) + glance = glance_client.Client('2', session=session, auth=keystone.auth(), + interface=CONF.glance.endpoint_type) return glance