From 7f3f6ab12b36dee7ed04e81459befbc3a442c58e Mon Sep 17 00:00:00 2001 From: ahothan Date: Fri, 26 May 2017 15:56:53 -0700 Subject: [PATCH] Use keystone client v2 Change-Id: Ib4c8274579eef424235c58664fbddd32343c7796 --- kloudbuster/kloudbuster.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kloudbuster/kloudbuster.py b/kloudbuster/kloudbuster.py index 512192e..bc172cf 100755 --- a/kloudbuster/kloudbuster.py +++ b/kloudbuster/kloudbuster.py @@ -36,7 +36,7 @@ from kb_runner_storage import KBRunner_Storage from kb_scheduler import KBScheduler import kb_vm_agent -from keystoneclient import client as keystoneclient +from keystoneclient.v2_0 import client as keystoneclient import log as logging from novaclient import client as novaclient @@ -78,8 +78,7 @@ class Kloud(object): self.placement_az = scale_cfg['availability_zone'] \ if scale_cfg['availability_zone'] else None self.exc_info = None - self.keystone = keystoneclient.Client(session=self.osclient_session, - endpoint_type='publicURL') + self.keystone = keystoneclient.Client(session=self.osclient_session) LOG.info("Creating kloud: " + self.prefix) if self.placement_az: LOG.info('%s Availability Zone: %s' % (self.name, self.placement_az))