blob: d78ce6124847a7c864ab3814d19b45c1b824cfae [file] [log] [blame]
Jay Pipes3f981df2012-03-27 18:59:44 -04001# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
3# Copyright 2012 OpenStack, LLC
4# All Rights Reserved.
5#
6# Licensed under the Apache License, Version 2.0 (the "License"); you may
7# not use this file except in compliance with the License. You may obtain
8# a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15# License for the specific language governing permissions and limitations
16# under the License.
17
Mitsuhiko Yamazaki46818aa2013-04-18 17:49:17 +090018from tempest.common import log as logging
Jay Pipesf38eaac2012-06-21 13:37:35 -040019from tempest import config
Daryl Walleck587385b2012-03-03 13:00:26 -060020from tempest import exceptions
Attila Fazekas1aed6202013-02-11 14:47:45 +010021from tempest.services import botoclients
Mitsuhiko Yamazaki74f07072013-04-02 11:52:31 +090022from tempest.services.compute.json.aggregates_client import \
23 AggregatesClientJSON
Leo Toyodaa5278912013-04-16 15:40:12 +090024from tempest.services.compute.json.availability_zone_client import \
25 AvailabilityZoneClientJSON
dwallecke62b9f02012-10-10 23:34:42 -050026from tempest.services.compute.json.extensions_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053027 ExtensionsClientJSON
Sean Dague2416cf32013-04-10 08:29:07 -040028from tempest.services.compute.json.fixed_ips_client import FixedIPsClientJSON
dwallecke62b9f02012-10-10 23:34:42 -050029from tempest.services.compute.json.flavors_client import FlavorsClientJSON
30from tempest.services.compute.json.floating_ips_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053031 FloatingIPsClientJSON
Attila Fazekas8e99b992013-02-24 09:53:23 +010032from tempest.services.compute.json.hosts_client import HostsClientJSON
dwallecke62b9f02012-10-10 23:34:42 -050033from tempest.services.compute.json.images_client import ImagesClientJSON
Sean Dague2416cf32013-04-10 08:29:07 -040034from tempest.services.compute.json.interfaces_client import \
35 InterfacesClientJSON
Attila Fazekas6968dd52013-02-15 17:05:53 +010036from tempest.services.compute.json.keypairs_client import KeyPairsClientJSON
dwallecke62b9f02012-10-10 23:34:42 -050037from tempest.services.compute.json.limits_client import LimitsClientJSON
Attila Fazekas6968dd52013-02-15 17:05:53 +010038from tempest.services.compute.json.quotas_client import QuotasClientJSON
Matthew Treinisha83a16e2012-12-07 13:44:02 -050039from tempest.services.compute.json.security_groups_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053040 SecurityGroupsClientJSON
Attila Fazekas6968dd52013-02-15 17:05:53 +010041from tempest.services.compute.json.servers_client import ServersClientJSON
Leo Toyoda3ae31e12013-04-19 11:19:57 +090042from tempest.services.compute.json.services_client import ServicesClientJSON
Leo Toyodad80b6a02013-05-08 12:15:13 +090043from tempest.services.compute.json.tenant_usages_client import \
44 TenantUsagesClientJSON
Matthew Treinisha83a16e2012-12-07 13:44:02 -050045from tempest.services.compute.json.volumes_extensions_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053046 VolumesExtensionsClientJSON
Mitsuhiko Yamazakiae8fc532013-04-22 11:17:35 +090047from tempest.services.compute.xml.aggregates_client import AggregatesClientXML
Leo Toyodaa5278912013-04-16 15:40:12 +090048from tempest.services.compute.xml.availability_zone_client import \
49 AvailabilityZoneClientXML
dwallecke62b9f02012-10-10 23:34:42 -050050from tempest.services.compute.xml.extensions_client import ExtensionsClientXML
Sean Dague2416cf32013-04-10 08:29:07 -040051from tempest.services.compute.xml.fixed_ips_client import FixedIPsClientXML
dwallecke62b9f02012-10-10 23:34:42 -050052from tempest.services.compute.xml.flavors_client import FlavorsClientXML
53from tempest.services.compute.xml.floating_ips_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053054 FloatingIPsClientXML
dwallecke62b9f02012-10-10 23:34:42 -050055from tempest.services.compute.xml.images_client import ImagesClientXML
Sean Dague2416cf32013-04-10 08:29:07 -040056from tempest.services.compute.xml.interfaces_client import \
57 InterfacesClientXML
dwallecke62b9f02012-10-10 23:34:42 -050058from tempest.services.compute.xml.keypairs_client import KeyPairsClientXML
59from tempest.services.compute.xml.limits_client import LimitsClientXML
rajalakshmi-ganesan1982c3c2013-01-10 14:56:45 +053060from tempest.services.compute.xml.quotas_client import QuotasClientXML
dwallecke62b9f02012-10-10 23:34:42 -050061from tempest.services.compute.xml.security_groups_client \
harika-vakadi1a9ad612012-12-14 19:12:08 +053062 import SecurityGroupsClientXML
dwallecke62b9f02012-10-10 23:34:42 -050063from tempest.services.compute.xml.servers_client import ServersClientXML
Leo Toyoda3ae31e12013-04-19 11:19:57 +090064from tempest.services.compute.xml.services_client import ServicesClientXML
Leo Toyodad80b6a02013-05-08 12:15:13 +090065from tempest.services.compute.xml.tenant_usages_client import \
66 TenantUsagesClientXML
Matthew Treinisha83a16e2012-12-07 13:44:02 -050067from tempest.services.compute.xml.volumes_extensions_client import \
harika-vakadi1a9ad612012-12-14 19:12:08 +053068 VolumesExtensionsClientXML
Attila Fazekas407b6db2013-01-19 12:48:36 +010069from tempest.services.identity.json.identity_client import IdentityClientJSON
70from tempest.services.identity.json.identity_client import TokenClientJSON
Sean Dague2416cf32013-04-10 08:29:07 -040071from tempest.services.identity.v3.json.endpoints_client import \
72 EndPointClientJSON
rajalakshmi-ganesan7312bb52013-01-29 20:03:42 +053073from tempest.services.identity.v3.json.identity_client import \
74 IdentityV3ClientJSON
harika-vakadi40e10112013-02-08 14:38:09 +053075from tempest.services.identity.v3.json.policy_client import PolicyClientJSON
harika-vakadia92dd742013-02-19 20:41:22 +053076from tempest.services.identity.v3.json.service_client import \
77 ServiceClientJSON
rajalakshmi-ganesanab426722013-02-08 15:49:15 +053078from tempest.services.identity.v3.xml.endpoints_client import EndPointClientXML
rajalakshmi-ganesan7312bb52013-01-29 20:03:42 +053079from tempest.services.identity.v3.xml.identity_client import \
80 IdentityV3ClientXML
harika-vakadi40e10112013-02-08 14:38:09 +053081from tempest.services.identity.v3.xml.policy_client import PolicyClientXML
harika-vakadia92dd742013-02-19 20:41:22 +053082from tempest.services.identity.v3.xml.service_client import \
83 ServiceClientXML
Attila Fazekas407b6db2013-01-19 12:48:36 +010084from tempest.services.identity.xml.identity_client import IdentityClientXML
85from tempest.services.identity.xml.identity_client import TokenClientXML
Matthew Treinish6d59c992013-03-01 16:20:04 -050086from tempest.services.image.v1.json.image_client import ImageClientJSON
Matthew Treinisha62347f2013-03-01 16:37:30 -050087from tempest.services.image.v2.json.image_client import ImageClientV2JSON
Matthew Treinisha83a16e2012-12-07 13:44:02 -050088from tempest.services.network.json.network_client import NetworkClient
dwalleck5d734432012-10-04 01:11:47 -050089from tempest.services.object_storage.account_client import AccountClient
harika-vakadi2daed0a2013-01-01 20:51:39 +053090from tempest.services.object_storage.account_client import \
91 AccountClientCustomizedHeader
Attila Fazekas6968dd52013-02-15 17:05:53 +010092from tempest.services.object_storage.container_client import ContainerClient
93from tempest.services.object_storage.object_client import ObjectClient
94from tempest.services.object_storage.object_client import \
95 ObjectClientCustomizedHeader
Steve Bakerc60e4e32013-05-06 15:22:41 +120096from tempest.services.orchestration.json.orchestration_client import \
97 OrchestrationClient
Attila Fazekas6968dd52013-02-15 17:05:53 +010098from tempest.services.volume.json.admin.volume_types_client import \
99 VolumeTypesClientJSON
100from tempest.services.volume.json.snapshots_client import SnapshotsClientJSON
101from tempest.services.volume.json.volumes_client import VolumesClientJSON
102from tempest.services.volume.xml.admin.volume_types_client import \
103 VolumeTypesClientXML
104from tempest.services.volume.xml.snapshots_client import SnapshotsClientXML
105from tempest.services.volume.xml.volumes_client import VolumesClientXML
Vincent Hou6b8a7b72012-08-25 01:24:33 +0800106
Jay Pipes3f981df2012-03-27 18:59:44 -0400107LOG = logging.getLogger(__name__)
108
Mauro S. M. Rodrigues6e373242012-08-27 18:59:19 -0400109IMAGES_CLIENTS = {
110 "json": ImagesClientJSON,
111 "xml": ImagesClientXML,
112}
113
Mauro S. M. Rodriguesa636f532012-08-21 11:07:53 -0400114KEYPAIRS_CLIENTS = {
115 "json": KeyPairsClientJSON,
116 "xml": KeyPairsClientXML,
117}
118
rajalakshmi-ganesan1982c3c2013-01-10 14:56:45 +0530119QUOTAS_CLIENTS = {
120 "json": QuotasClientJSON,
121 "xml": QuotasClientXML,
122}
123
Dan Smithcf8fab62012-08-14 08:03:48 -0700124SERVERS_CLIENTS = {
125 "json": ServersClientJSON,
126 "xml": ServersClientXML,
127}
128
Matthew Treinish33634462012-08-16 16:51:23 -0400129LIMITS_CLIENTS = {
130 "json": LimitsClientJSON,
131 "xml": LimitsClientXML,
132}
133
Tiago Melloeda03b52012-08-22 23:47:29 -0300134FLAVORS_CLIENTS = {
135 "json": FlavorsClientJSON,
136 "xml": FlavorsClientXML
137}
138
Tiago Mello89126c32012-08-27 11:14:03 -0300139EXTENSIONS_CLIENTS = {
140 "json": ExtensionsClientJSON,
141 "xml": ExtensionsClientXML
142}
143
Matthew Treinish4e086902012-08-17 17:52:22 -0400144VOLUMES_EXTENSIONS_CLIENTS = {
145 "json": VolumesExtensionsClientJSON,
146 "xml": VolumesExtensionsClientXML,
147}
148
Vincent Hou22f03c72012-08-24 17:55:13 +0800149FLOAT_CLIENTS = {
150 "json": FloatingIPsClientJSON,
151 "xml": FloatingIPsClientXML,
152}
153
Attila Fazekas36b1fcf2013-01-31 16:41:04 +0100154SNAPSHOTS_CLIENTS = {
155 "json": SnapshotsClientJSON,
156 "xml": SnapshotsClientXML,
157}
158
Matthew Treinish9854d5b2012-09-20 10:22:13 -0400159VOLUMES_CLIENTS = {
160 "json": VolumesClientJSON,
161 "xml": VolumesClientXML,
162}
163
Attila Fazekas3dcdae12013-02-14 12:50:04 +0100164VOLUME_TYPES_CLIENTS = {
165 "json": VolumeTypesClientJSON,
166 "xml": VolumeTypesClientXML,
167}
168
Attila Fazekas407b6db2013-01-19 12:48:36 +0100169IDENTITY_CLIENT = {
170 "json": IdentityClientJSON,
171 "xml": IdentityClientXML,
Vincent Hou6b8a7b72012-08-25 01:24:33 +0800172}
173
rajalakshmi-ganesan7312bb52013-01-29 20:03:42 +0530174IDENTITY_V3_CLIENT = {
175 "json": IdentityV3ClientJSON,
176 "xml": IdentityV3ClientXML,
177}
178
Vincent Hou6b8a7b72012-08-25 01:24:33 +0800179TOKEN_CLIENT = {
180 "json": TokenClientJSON,
181 "xml": TokenClientXML,
182}
183
Vincent Houead03dc2012-08-24 21:35:11 +0800184SECURITY_GROUPS_CLIENT = {
185 "json": SecurityGroupsClientJSON,
186 "xml": SecurityGroupsClientXML,
187}
188
Dan Smith8ad1c472013-02-26 13:03:16 -0500189INTERFACES_CLIENT = {
190 "json": InterfacesClientJSON,
191 "xml": InterfacesClientXML,
192}
193
rajalakshmi-ganesanab426722013-02-08 15:49:15 +0530194ENDPOINT_CLIENT = {
195 "json": EndPointClientJSON,
196 "xml": EndPointClientXML,
197}
198
Mauro S. M. Rodriguesf5166402013-04-01 10:25:26 -0400199FIXED_IPS_CLIENT = {
200 "json": FixedIPsClientJSON,
201 "xml": FixedIPsClientXML
202}
203
Leo Toyodaa5278912013-04-16 15:40:12 +0900204AVAILABILITY_ZONE_CLIENT = {
205 "json": AvailabilityZoneClientJSON,
206 "xml": AvailabilityZoneClientXML,
207}
208
harika-vakadia92dd742013-02-19 20:41:22 +0530209SERVICE_CLIENT = {
210 "json": ServiceClientJSON,
211 "xml": ServiceClientXML,
212}
213
Mitsuhiko Yamazakiae8fc532013-04-22 11:17:35 +0900214AGGREGATES_CLIENT = {
215 "json": AggregatesClientJSON,
216 "xml": AggregatesClientXML,
217}
218
Leo Toyoda3ae31e12013-04-19 11:19:57 +0900219SERVICES_CLIENT = {
220 "json": ServicesClientJSON,
221 "xml": ServicesClientXML,
222}
223
Leo Toyodad80b6a02013-05-08 12:15:13 +0900224TENANT_USAGES_CLIENT = {
225 "json": TenantUsagesClientJSON,
226 "xml": TenantUsagesClientXML,
227}
228
harika-vakadi40e10112013-02-08 14:38:09 +0530229POLICY_CLIENT = {
230 "json": PolicyClientJSON,
231 "xml": PolicyClientXML,
232}
233
Vincent Hou6b8a7b72012-08-25 01:24:33 +0800234
Daryl Walleck1465d612011-11-02 02:22:15 -0500235class Manager(object):
236
Jay Pipes3f981df2012-03-27 18:59:44 -0400237 """
238 Top level manager for OpenStack Compute clients
239 """
240
James E. Blaire6d8ee12013-01-18 21:33:45 +0000241 def __init__(self, username=None, password=None, tenant_name=None,
242 interface='json'):
Jay Pipesff10d552012-04-06 14:18:50 -0400243 """
244 We allow overriding of the credentials used within the various
245 client classes managed by the Manager object. Left as None, the
246 standard username/password/tenant_name is used.
247
248 :param username: Override of the username
249 :param password: Override of the password
250 :param tenant_name: Override of the tenant name
251 """
Jay Pipesf38eaac2012-06-21 13:37:35 -0400252 self.config = config.TempestConfig()
Rohit Karajgie1b050d2011-12-02 16:13:18 -0800253
Jay Pipesf38eaac2012-06-21 13:37:35 -0400254 # If no creds are provided, we fall back on the defaults
255 # in the config file for the Compute API.
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100256 self.username = username or self.config.identity.username
257 self.password = password or self.config.identity.password
258 self.tenant_name = tenant_name or self.config.identity.tenant_name
Daryl Walleckced8eb82012-03-19 13:52:37 -0500259
Rohit Karajgidd47d7e2012-07-31 04:11:01 -0700260 if None in (self.username, self.password, self.tenant_name):
Jay Pipes3f981df2012-03-27 18:59:44 -0400261 msg = ("Missing required credentials. "
262 "username: %(username)s, password: %(password)s, "
263 "tenant_name: %(tenant_name)s") % locals()
264 raise exceptions.InvalidConfiguration(msg)
265
Jay Pipes7c88eb22013-01-16 21:32:43 -0500266 self.auth_url = self.config.identity.uri
Daryl Walleck587385b2012-03-03 13:00:26 -0600267
268 if self.config.identity.strategy == 'keystone':
Rohit Karajgidd47d7e2012-07-31 04:11:01 -0700269 client_args = (self.config, self.username, self.password,
270 self.auth_url, self.tenant_name)
Daryl Walleck1465d612011-11-02 02:22:15 -0500271 else:
Rohit Karajgidd47d7e2012-07-31 04:11:01 -0700272 client_args = (self.config, self.username, self.password,
273 self.auth_url)
Daryl Walleck587385b2012-03-03 13:00:26 -0600274
Dan Smithcf8fab62012-08-14 08:03:48 -0700275 try:
276 self.servers_client = SERVERS_CLIENTS[interface](*client_args)
Matthew Treinish33634462012-08-16 16:51:23 -0400277 self.limits_client = LIMITS_CLIENTS[interface](*client_args)
Mauro S. M. Rodrigues6e373242012-08-27 18:59:19 -0400278 self.images_client = IMAGES_CLIENTS[interface](*client_args)
Mauro S. M. Rodriguesa636f532012-08-21 11:07:53 -0400279 self.keypairs_client = KEYPAIRS_CLIENTS[interface](*client_args)
rajalakshmi-ganesan1982c3c2013-01-10 14:56:45 +0530280 self.quotas_client = QUOTAS_CLIENTS[interface](*client_args)
Tiago Melloeda03b52012-08-22 23:47:29 -0300281 self.flavors_client = FLAVORS_CLIENTS[interface](*client_args)
Zhongyue Luoe0884a32012-09-25 17:24:17 +0800282 ext_cli = EXTENSIONS_CLIENTS[interface](*client_args)
283 self.extensions_client = ext_cli
284 vol_ext_cli = VOLUMES_EXTENSIONS_CLIENTS[interface](*client_args)
285 self.volumes_extensions_client = vol_ext_cli
Vincent Hou22f03c72012-08-24 17:55:13 +0800286 self.floating_ips_client = FLOAT_CLIENTS[interface](*client_args)
Attila Fazekas36b1fcf2013-01-31 16:41:04 +0100287 self.snapshots_client = SNAPSHOTS_CLIENTS[interface](*client_args)
Matthew Treinish9854d5b2012-09-20 10:22:13 -0400288 self.volumes_client = VOLUMES_CLIENTS[interface](*client_args)
Attila Fazekas3dcdae12013-02-14 12:50:04 +0100289 self.volume_types_client = \
290 VOLUME_TYPES_CLIENTS[interface](*client_args)
Attila Fazekas407b6db2013-01-19 12:48:36 +0100291 self.identity_client = IDENTITY_CLIENT[interface](*client_args)
rajalakshmi-ganesan7312bb52013-01-29 20:03:42 +0530292 self.identity_v3_client = \
293 IDENTITY_V3_CLIENT[interface](*client_args)
Vincent Hou6b8a7b72012-08-25 01:24:33 +0800294 self.token_client = TOKEN_CLIENT[interface](self.config)
Vincent Houead03dc2012-08-24 21:35:11 +0800295 self.security_groups_client = \
296 SECURITY_GROUPS_CLIENT[interface](*client_args)
Dan Smith8ad1c472013-02-26 13:03:16 -0500297 self.interfaces_client = INTERFACES_CLIENT[interface](*client_args)
rajalakshmi-ganesanab426722013-02-08 15:49:15 +0530298 self.endpoints_client = ENDPOINT_CLIENT[interface](*client_args)
Mauro S. M. Rodriguesf5166402013-04-01 10:25:26 -0400299 self.fixed_ips_client = FIXED_IPS_CLIENT[interface](*client_args)
Leo Toyodaa5278912013-04-16 15:40:12 +0900300 self.availability_zone_client = \
301 AVAILABILITY_ZONE_CLIENT[interface](*client_args)
harika-vakadia92dd742013-02-19 20:41:22 +0530302 self.service_client = SERVICE_CLIENT[interface](*client_args)
Mitsuhiko Yamazakiae8fc532013-04-22 11:17:35 +0900303 self.aggregates_client = AGGREGATES_CLIENT[interface](*client_args)
Leo Toyoda3ae31e12013-04-19 11:19:57 +0900304 self.services_client = SERVICES_CLIENT[interface](*client_args)
Leo Toyodad80b6a02013-05-08 12:15:13 +0900305 self.tenant_usages_client = \
306 TENANT_USAGES_CLIENT[interface](*client_args)
harika-vakadi40e10112013-02-08 14:38:09 +0530307 self.policy_client = POLICY_CLIENT[interface](*client_args)
Dan Smithcf8fab62012-08-14 08:03:48 -0700308 except KeyError:
309 msg = "Unsupported interface type `%s'" % interface
310 raise exceptions.InvalidConfiguration(msg)
Unmesh Gurjar44986832012-05-08 19:57:10 +0530311 self.network_client = NetworkClient(*client_args)
Attila Fazekas8e99b992013-02-24 09:53:23 +0100312 self.hosts_client = HostsClientJSON(*client_args)
dwalleck5d734432012-10-04 01:11:47 -0500313 self.account_client = AccountClient(*client_args)
Matthew Treinish72ea4422013-02-07 14:42:49 -0500314 self.image_client = ImageClientJSON(*client_args)
Matthew Treinisha62347f2013-03-01 16:37:30 -0500315 self.image_client_v2 = ImageClientV2JSON(*client_args)
dwalleck5d734432012-10-04 01:11:47 -0500316 self.container_client = ContainerClient(*client_args)
317 self.object_client = ObjectClient(*client_args)
Steve Bakerc60e4e32013-05-06 15:22:41 +1200318 self.orchestration_client = OrchestrationClient(*client_args)
Attila Fazekas1aed6202013-02-11 14:47:45 +0100319 self.ec2api_client = botoclients.APIClientEC2(*client_args)
320 self.s3_client = botoclients.ObjectClientS3(*client_args)
harika-vakadi1a9ad612012-12-14 19:12:08 +0530321 self.custom_object_client = ObjectClientCustomizedHeader(*client_args)
harika-vakadi2daed0a2013-01-01 20:51:39 +0530322 self.custom_account_client = \
323 AccountClientCustomizedHeader(*client_args)
Jay Pipes50677282012-01-06 15:39:20 -0500324
325
Jay Pipesff10d552012-04-06 14:18:50 -0400326class AltManager(Manager):
327
328 """
329 Manager object that uses the alt_XXX credentials for its
330 managed client objects
331 """
332
333 def __init__(self):
Jay Pipesf38eaac2012-06-21 13:37:35 -0400334 conf = config.TempestConfig()
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100335 super(AltManager, self).__init__(conf.identity.alt_username,
336 conf.identity.alt_password,
337 conf.identity.alt_tenant_name)
Jay Pipesff10d552012-04-06 14:18:50 -0400338
339
340class AdminManager(Manager):
341
342 """
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100343 Manager object that uses the admin credentials for its
Jay Pipesff10d552012-04-06 14:18:50 -0400344 managed client objects
345 """
346
James E. Blaire6d8ee12013-01-18 21:33:45 +0000347 def __init__(self, interface='json'):
Jay Pipesf38eaac2012-06-21 13:37:35 -0400348 conf = config.TempestConfig()
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100349 super(AdminManager, self).__init__(conf.identity.admin_username,
350 conf.identity.admin_password,
351 conf.identity.admin_tenant_name,
James E. Blaire6d8ee12013-01-18 21:33:45 +0000352 interface=interface)
Jay Pipesff10d552012-04-06 14:18:50 -0400353
354
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100355class ComputeAdminManager(Manager):
356
357 """
358 Manager object that uses the compute_admin credentials for its
359 managed client objects
360 """
361
362 def __init__(self, interface='json'):
363 conf = config.TempestConfig()
364 base = super(ComputeAdminManager, self)
365 base.__init__(conf.compute_admin.username,
366 conf.compute_admin.password,
367 conf.compute_admin.tenant_name,
368 interface=interface)
Steve Bakerc60e4e32013-05-06 15:22:41 +1200369
370
371class OrchestrationManager(Manager):
372 """
373 Manager object that uses the admin credentials for its
374 so that heat templates can create users
375 """
376 def __init__(self, interface='json'):
377 conf = config.TempestConfig()
378 base = super(OrchestrationManager, self)
379 base.__init__(conf.identity.admin_username,
380 conf.identity.admin_password,
381 conf.identity.admin_tenant_name,
382 interface=interface)