Add Heat API client.
-add Heat API client -add requirement version of python-heatclient Tests of Fuel-plugin-vmware-dvs + Heat need initialization Heat API Client. So Heat API Client was added to Common and python-heatclient version to requirements. Change-Id: I4899961e49b12788feee0792c4a7911eddb1795c
This commit is contained in:
parent
361419d41e
commit
35af1c0c39
|
@ -17,6 +17,7 @@ import time
|
|||
import traceback
|
||||
|
||||
from cinderclient import client as cinderclient
|
||||
from heatclient.v1.client import Client as HeatClient
|
||||
from glanceclient.v1 import Client as GlanceClient
|
||||
import ironicclient.client as ironicclient
|
||||
from keystoneclient.v2_0 import Client as KeystoneClient
|
||||
|
@ -110,6 +111,15 @@ class Common(object):
|
|||
'insecure': insecure}
|
||||
self.glance = GlanceClient(**glance_args)
|
||||
|
||||
heat_endpoint = self.keystone.service_catalog.url_for(
|
||||
service_type='orchestration', endpoint_type='publicURL')
|
||||
|
||||
heat_args = {'endpoint': make_endpoint(heat_endpoint),
|
||||
'token': token,
|
||||
'cacert': path_to_cert,
|
||||
'insecure': insecure}
|
||||
self.heat = HeatClient(**heat_args)
|
||||
|
||||
try:
|
||||
ironic_endpoint = self.keystone.service_catalog.url_for(
|
||||
service_type='baremetal',
|
||||
|
|
|
@ -11,6 +11,7 @@ python-novaclient>=2.15.0
|
|||
python-cinderclient>=1.0.5
|
||||
python-neutronclient>=2.0
|
||||
python-ironicclient>=0.8.0
|
||||
python-heatclient>=0.6.0
|
||||
oslo.i18n>=3.1.0
|
||||
six
|
||||
Jinja2
|
||||
|
|
Loading…
Reference in New Issue