Use keystone client v2
Change-Id: Ib4c8274579eef424235c58664fbddd32343c7796
This commit is contained in:
parent
4b66bf34d9
commit
7f3f6ab12b
@ -36,7 +36,7 @@ from kb_runner_storage import KBRunner_Storage
|
|||||||
from kb_scheduler import KBScheduler
|
from kb_scheduler import KBScheduler
|
||||||
import kb_vm_agent
|
import kb_vm_agent
|
||||||
|
|
||||||
from keystoneclient import client as keystoneclient
|
from keystoneclient.v2_0 import client as keystoneclient
|
||||||
|
|
||||||
import log as logging
|
import log as logging
|
||||||
from novaclient import client as novaclient
|
from novaclient import client as novaclient
|
||||||
@ -78,8 +78,7 @@ class Kloud(object):
|
|||||||
self.placement_az = scale_cfg['availability_zone'] \
|
self.placement_az = scale_cfg['availability_zone'] \
|
||||||
if scale_cfg['availability_zone'] else None
|
if scale_cfg['availability_zone'] else None
|
||||||
self.exc_info = None
|
self.exc_info = None
|
||||||
self.keystone = keystoneclient.Client(session=self.osclient_session,
|
self.keystone = keystoneclient.Client(session=self.osclient_session)
|
||||||
endpoint_type='publicURL')
|
|
||||||
LOG.info("Creating kloud: " + self.prefix)
|
LOG.info("Creating kloud: " + self.prefix)
|
||||||
if self.placement_az:
|
if self.placement_az:
|
||||||
LOG.info('%s Availability Zone: %s' % (self.name, self.placement_az))
|
LOG.info('%s Availability Zone: %s' % (self.name, self.placement_az))
|
||||||
|
Loading…
Reference in New Issue
Block a user