blob: de3e11d31de9c64317ef66e691d35a6edf8943a9 [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
Jay Pipes7f757632011-12-02 15:53:32 -050018import logging
19import os
Attila Fazekas5abb2532012-12-04 11:30:49 +010020import sys
Jay Pipes3f981df2012-03-27 18:59:44 -040021
Matthew Treinish90aedd12013-02-25 17:56:49 -050022from oslo.config import cfg
23
Attila Fazekas3e1b6742013-01-28 16:30:35 +010024from tempest.common.utils.misc import singleton
Jay Pipes7f757632011-12-02 15:53:32 -050025
26LOG = logging.getLogger(__name__)
Daryl Walleck1465d612011-11-02 02:22:15 -050027
Matthew Treinish39e48ef2012-12-21 13:36:15 -050028identity_group = cfg.OptGroup(name='identity',
29 title="Keystone Configuration Options")
Daryl Walleck1465d612011-11-02 02:22:15 -050030
Matthew Treinish39e48ef2012-12-21 13:36:15 -050031IdentityGroup = [
32 cfg.StrOpt('catalog_type',
33 default='identity',
34 help="Catalog type of the Identity service."),
Jay Pipescd8eaec2013-01-16 21:03:48 -050035 cfg.BoolOpt('disable_ssl_certificate_validation',
36 default=False,
37 help="Set to True if using self-signed SSL certificates."),
Jay Pipes7c88eb22013-01-16 21:32:43 -050038 cfg.StrOpt('uri',
39 default=None,
40 help="Full URI of the OpenStack Identity API (Keystone)"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -050041 cfg.StrOpt('strategy',
42 default='keystone',
43 help="Which auth method does the environment use? "
44 "(basic|keystone)"),
45 cfg.StrOpt('region',
Attila Fazekascadcb1f2013-01-21 23:10:53 +010046 default='RegionOne',
Matthew Treinish39e48ef2012-12-21 13:36:15 -050047 help="The identity region name to use."),
Attila Fazekascadcb1f2013-01-21 23:10:53 +010048 cfg.StrOpt('username',
49 default='demo',
50 help="Username to use for Nova API requests."),
51 cfg.StrOpt('tenant_name',
52 default='demo',
53 help="Tenant name to use for Nova API requests."),
54 cfg.StrOpt('password',
55 default='pass',
56 help="API key to use when authenticating.",
57 secret=True),
58 cfg.StrOpt('alt_username',
59 default=None,
60 help="Username of alternate user to use for Nova API "
61 "requests."),
62 cfg.StrOpt('alt_tenant_name',
63 default=None,
64 help="Alternate user's Tenant name to use for Nova API "
65 "requests."),
66 cfg.StrOpt('alt_password',
67 default=None,
68 help="API key to use when authenticating as alternate user.",
69 secret=True),
70 cfg.StrOpt('admin_username',
71 default='admin',
72 help="Administrative Username to use for"
73 "Keystone API requests."),
74 cfg.StrOpt('admin_tenant_name',
75 default='admin',
76 help="Administrative Tenant name to use for Keystone API "
77 "requests."),
78 cfg.StrOpt('admin_password',
79 default='pass',
80 help="API key to use when authenticating as admin.",
81 secret=True),
Matthew Treinish39e48ef2012-12-21 13:36:15 -050082]
Jay Pipes3f981df2012-03-27 18:59:44 -040083
Daryl Walleck1465d612011-11-02 02:22:15 -050084
Matthew Treinish39e48ef2012-12-21 13:36:15 -050085def register_identity_opts(conf):
86 conf.register_group(identity_group)
87 for opt in IdentityGroup:
88 conf.register_opt(opt, group='identity')
Daryl Walleck1465d612011-11-02 02:22:15 -050089
Jay Pipes3f981df2012-03-27 18:59:44 -040090
Matthew Treinish39e48ef2012-12-21 13:36:15 -050091compute_group = cfg.OptGroup(name='compute',
92 title='Compute Service Options')
Rohit Karajgie1b050d2011-12-02 16:13:18 -080093
Matthew Treinish39e48ef2012-12-21 13:36:15 -050094ComputeGroup = [
95 cfg.BoolOpt('allow_tenant_isolation',
96 default=False,
97 help="Allows test cases to create/destroy tenants and "
98 "users. This option enables isolated test cases and "
99 "better parallel execution, but also requires that "
100 "OpenStack Identity API admin credentials are known."),
101 cfg.BoolOpt('allow_tenant_reuse',
102 default=True,
103 help="If allow_tenant_isolation is True and a tenant that "
104 "would be created for a given test already exists (such "
105 "as from a previously-failed run), re-use that tenant "
106 "instead of failing because of the conflict. Note that "
107 "this would result in the tenant being deleted at the "
108 "end of a subsequent successful run."),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500109 cfg.StrOpt('image_ref',
110 default="{$IMAGE_ID}",
111 help="Valid secondary image reference to be used in tests."),
112 cfg.StrOpt('image_ref_alt',
113 default="{$IMAGE_ID_ALT}",
114 help="Valid secondary image reference to be used in tests."),
115 cfg.IntOpt('flavor_ref',
116 default=1,
117 help="Valid primary flavor to use in tests."),
118 cfg.IntOpt('flavor_ref_alt',
119 default=2,
120 help='Valid secondary flavor to be used in tests.'),
121 cfg.BoolOpt('resize_available',
122 default=False,
123 help="Does the test environment support resizing?"),
124 cfg.BoolOpt('live_migration_available',
125 default=False,
126 help="Does the test environment support live migration "
127 "available?"),
128 cfg.BoolOpt('use_block_migration_for_live_migration',
129 default=False,
130 help="Does the test environment use block devices for live "
131 "migration"),
Bob Ballc078be92013-04-09 14:25:00 +0100132 cfg.BoolOpt('block_migrate_supports_cinder_iscsi',
133 default=False,
134 help="Does the test environment block migration support "
135 "cinder iSCSI volumes"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500136 cfg.BoolOpt('change_password_available',
137 default=False,
138 help="Does the test environment support changing the admin "
139 "password?"),
140 cfg.BoolOpt('create_image_enabled',
141 default=False,
142 help="Does the test environment support snapshots?"),
143 cfg.IntOpt('build_interval',
144 default=10,
145 help="Time in seconds between build status checks."),
146 cfg.IntOpt('build_timeout',
147 default=300,
148 help="Timeout in seconds to wait for an instance to build."),
149 cfg.BoolOpt('run_ssh',
150 default=False,
151 help="Does the test environment support snapshots?"),
152 cfg.StrOpt('ssh_user',
153 default='root',
154 help="User name used to authenticate to an instance."),
155 cfg.IntOpt('ssh_timeout',
156 default=300,
Chris Yeoh76916042013-02-27 16:25:25 +1030157 help="Timeout in seconds to wait for authentication to "
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500158 "succeed."),
Chris Yeoh76916042013-02-27 16:25:25 +1030159 cfg.IntOpt('ssh_channel_timeout',
160 default=60,
161 help="Timeout in seconds to wait for output from ssh "
162 "channel."),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500163 cfg.StrOpt('network_for_ssh',
164 default='public',
165 help="Network used for SSH connections."),
166 cfg.IntOpt('ip_version_for_ssh',
167 default=4,
168 help="IP version used for SSH connections."),
169 cfg.StrOpt('catalog_type',
170 default='compute',
171 help="Catalog type of the Compute service."),
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100172 cfg.StrOpt('path_to_private_key',
173 default=None,
174 help="Path to a private key file for SSH access to remote "
175 "hosts"),
176 cfg.BoolOpt('disk_config_enabled_override',
177 default=True,
178 help="If false, skip config tests regardless of the "
179 "extension status"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500180]
Rohit Karajgie1b050d2011-12-02 16:13:18 -0800181
Rohit Karajgie1b050d2011-12-02 16:13:18 -0800182
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500183def register_compute_opts(conf):
184 conf.register_group(compute_group)
185 for opt in ComputeGroup:
186 conf.register_opt(opt, group='compute')
kavan-patil4ea2efb2011-12-09 08:58:50 +0000187
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500188compute_admin_group = cfg.OptGroup(name='compute-admin',
189 title="Compute Admin Options")
donald-ngo7fb1efa2011-12-13 17:17:36 -0800190
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500191ComputeAdminGroup = [
192 cfg.StrOpt('username',
193 default='admin',
194 help="Administrative Username to use for Nova API requests."),
195 cfg.StrOpt('tenant_name',
196 default='admin',
197 help="Administrative Tenant name to use for Nova API "
198 "requests."),
199 cfg.StrOpt('password',
200 default='pass',
201 help="API key to use when authenticating as admin.",
202 secret=True),
203]
Daryl Walleck587385b2012-03-03 13:00:26 -0600204
K Jonathan Harkerd6ba4b42012-12-18 13:50:47 -0800205
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500206def register_compute_admin_opts(conf):
207 conf.register_group(compute_admin_group)
208 for opt in ComputeAdminGroup:
209 conf.register_opt(opt, group='compute-admin')
Daryl Walleck587385b2012-03-03 13:00:26 -0600210
Jay Pipesf38eaac2012-06-21 13:37:35 -0400211
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100212whitebox_group = cfg.OptGroup(name='whitebox',
213 title="Whitebox Options")
214
215WhiteboxGroup = [
216 cfg.BoolOpt('whitebox_enabled',
217 default=False,
218 help="Does the test environment support whitebox tests for "
219 "Compute?"),
220 cfg.StrOpt('db_uri',
221 default=None,
222 help="Connection string to the database of Compute service"),
223 cfg.StrOpt('source_dir',
224 default="/opt/stack/nova",
225 help="Path of nova source directory"),
226 cfg.StrOpt('config_path',
227 default='/etc/nova/nova.conf',
228 help="Path of nova configuration file"),
229 cfg.StrOpt('bin_dir',
230 default="/usr/local/bin/",
231 help="Directory containing nova binaries such as nova-manage"),
232]
233
234
235def register_whitebox_opts(conf):
236 conf.register_group(whitebox_group)
237 for opt in WhiteboxGroup:
238 conf.register_opt(opt, group='whitebox')
239
240
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500241image_group = cfg.OptGroup(name='image',
242 title="Image Service Options")
Jay Pipesf38eaac2012-06-21 13:37:35 -0400243
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500244ImageGroup = [
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500245 cfg.StrOpt('api_version',
246 default='1',
247 help="Version of the API"),
Matthew Treinish72ea4422013-02-07 14:42:49 -0500248 cfg.StrOpt('catalog_type',
249 default='image',
Sean Dague83401992013-05-06 17:46:36 -0400250 help='Catalog type of the Image service.'),
251 cfg.StrOpt('http_image',
252 default='http://download.cirros-cloud.net/0.3.1/'
253 'cirros-0.3.1-x86_64-uec.tar.gz',
254 help='http accessable image')
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500255]
Jay Pipesf38eaac2012-06-21 13:37:35 -0400256
Jay Pipesf38eaac2012-06-21 13:37:35 -0400257
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500258def register_image_opts(conf):
259 conf.register_group(image_group)
260 for opt in ImageGroup:
261 conf.register_opt(opt, group='image')
Jay Pipesf38eaac2012-06-21 13:37:35 -0400262
263
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500264network_group = cfg.OptGroup(name='network',
265 title='Network Service Options')
Daryl Walleck587385b2012-03-03 13:00:26 -0600266
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500267NetworkGroup = [
268 cfg.StrOpt('catalog_type',
269 default='network',
270 help='Catalog type of the Quantum service.'),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500271 cfg.StrOpt('tenant_network_cidr',
272 default="10.100.0.0/16",
273 help="The cidr block to allocate tenant networks from"),
274 cfg.IntOpt('tenant_network_mask_bits',
275 default=29,
276 help="The mask bits for tenant networks"),
277 cfg.BoolOpt('tenant_networks_reachable',
278 default=False,
279 help="Whether tenant network connectivity should be "
280 "evaluated directly"),
281 cfg.StrOpt('public_network_id',
282 default="",
283 help="Id of the public network that provides external "
284 "connectivity"),
285 cfg.StrOpt('public_router_id',
286 default="",
287 help="Id of the public router that provides external "
288 "connectivity"),
Dan Smithd6c1f882013-02-26 15:50:11 -0500289 cfg.BoolOpt('quantum_available',
290 default=False,
291 help="Whether or not quantum is expected to be available"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500292]
Jay Pipes3f981df2012-03-27 18:59:44 -0400293
Jay Pipesf38eaac2012-06-21 13:37:35 -0400294
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500295def register_network_opts(conf):
296 conf.register_group(network_group)
297 for opt in NetworkGroup:
298 conf.register_opt(opt, group='network')
Dan Smithd6ff6b72012-08-23 10:29:41 -0700299
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500300volume_group = cfg.OptGroup(name='volume',
301 title='Block Storage Options')
Daryl Walleck587385b2012-03-03 13:00:26 -0600302
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500303VolumeGroup = [
304 cfg.IntOpt('build_interval',
305 default=10,
306 help='Time in seconds between volume availability checks.'),
307 cfg.IntOpt('build_timeout',
308 default=300,
309 help='Timeout in seconds to wait for a volume to become'
310 'available.'),
311 cfg.StrOpt('catalog_type',
312 default='Volume',
313 help="Catalog type of the Volume Service"),
Jérôme Gallard86551ce2013-03-08 11:41:26 +0100314 cfg.BoolOpt('multi_backend_enabled',
315 default=False,
316 help="Runs Cinder multi-backend test (requires 2 backend)"),
317 cfg.StrOpt('backend1_name',
318 default='LVM_iSCSI',
319 help="Name of the backend1 (must be declared in cinder.conf)"),
320 cfg.StrOpt('backend2_name',
321 default='LVM_iSCSI_1',
322 help="Name of the backend2 (must be declared in cinder.conf)"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500323]
K Jonathan Harkerd6ba4b42012-12-18 13:50:47 -0800324
Daryl Walleck587385b2012-03-03 13:00:26 -0600325
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500326def register_volume_opts(conf):
327 conf.register_group(volume_group)
328 for opt in VolumeGroup:
329 conf.register_opt(opt, group='volume')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200330
Attila Fazekasa23f5002012-10-23 19:32:45 +0200331
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500332object_storage_group = cfg.OptGroup(name='object-storage',
333 title='Object Storage Service Options')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200334
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500335ObjectStoreConfig = [
336 cfg.StrOpt('catalog_type',
337 default='object-store',
338 help="Catalog type of the Object-Storage service."),
nayna-patelb4989b32013-01-09 06:25:13 +0000339 cfg.StrOpt('container_sync_timeout',
340 default=120,
341 help="Number of seconds to time on waiting for a container"
342 "to container synchronization complete."),
343 cfg.StrOpt('container_sync_interval',
344 default=5,
345 help="Number of seconds to wait while looping to check the"
346 "status of a container to container synchronization"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500347]
Attila Fazekasa23f5002012-10-23 19:32:45 +0200348
Attila Fazekasa23f5002012-10-23 19:32:45 +0200349
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500350def register_object_storage_opts(conf):
351 conf.register_group(object_storage_group)
352 for opt in ObjectStoreConfig:
353 conf.register_opt(opt, group='object-storage')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200354
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500355boto_group = cfg.OptGroup(name='boto',
356 title='EC2/S3 options')
357BotoConfig = [
358 cfg.StrOpt('ec2_url',
359 default="http://localhost:8773/services/Cloud",
360 help="EC2 URL"),
361 cfg.StrOpt('s3_url',
362 default="http://localhost:8080",
363 help="S3 URL"),
364 cfg.StrOpt('aws_secret',
365 default=None,
366 help="AWS Secret Key",
367 secret=True),
368 cfg.StrOpt('aws_access',
369 default=None,
370 help="AWS Access Key"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500371 cfg.StrOpt('s3_materials_path',
372 default="/opt/stack/devstack/files/images/"
373 "s3-materials/cirros-0.3.0",
374 help="S3 Materials Path"),
375 cfg.StrOpt('ari_manifest',
376 default="cirros-0.3.0-x86_64-initrd.manifest.xml",
377 help="ARI Ramdisk Image manifest"),
378 cfg.StrOpt('ami_manifest',
379 default="cirros-0.3.0-x86_64-blank.img.manifest.xml",
380 help="AMI Machine Image manifest"),
381 cfg.StrOpt('aki_manifest',
382 default="cirros-0.3.0-x86_64-vmlinuz.manifest.xml",
383 help="AKI Kernel Image manifest"),
384 cfg.StrOpt('instance_type',
385 default="m1.tiny",
386 help="Instance type"),
387 cfg.IntOpt('http_socket_timeout',
388 default=3,
389 help="boto Http socket timeout"),
390 cfg.IntOpt('num_retries',
391 default=1,
392 help="boto num_retries on error"),
393 cfg.IntOpt('build_timeout',
394 default=60,
395 help="Status Change Timeout"),
396 cfg.IntOpt('build_interval',
397 default=1,
398 help="Status Change Test Interval"),
399]
Attila Fazekasf7f2d932012-12-13 09:14:38 +0100400
Attila Fazekasa23f5002012-10-23 19:32:45 +0200401
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500402def register_boto_opts(conf):
403 conf.register_group(boto_group)
404 for opt in BotoConfig:
405 conf.register_opt(opt, group='boto')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200406
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500407stress_group = cfg.OptGroup(name='stress', title='Stress Test Options')
408
409StressGroup = [
410 cfg.StrOpt('nova_logdir',
411 default=None,
412 help='Directory containing log files on the compute nodes'),
413 cfg.IntOpt('max_instances',
414 default=16,
415 help='Maximum number of instances to create during test.'),
416 cfg.StrOpt('controller',
417 default=None,
418 help='Controller host.')
419]
420
421
422def register_stress_opts(conf):
423 conf.register_group(stress_group)
424 for opt in StressGroup:
425 conf.register_opt(opt, group='stress')
426
Attila Fazekasa23f5002012-10-23 19:32:45 +0200427
Jay Pipes3f981df2012-03-27 18:59:44 -0400428@singleton
429class TempestConfig:
Daryl Walleck1465d612011-11-02 02:22:15 -0500430 """Provides OpenStack configuration information."""
431
Brian Waldon738cd632011-12-12 18:45:09 -0500432 DEFAULT_CONFIG_DIR = os.path.join(
Zhongyue Luoa1343de2013-01-04 16:21:35 +0800433 os.path.abspath(os.path.dirname(os.path.dirname(__file__))),
Brian Waldon738cd632011-12-12 18:45:09 -0500434 "etc")
Daryl Walleck1465d612011-11-02 02:22:15 -0500435
Brian Waldon738cd632011-12-12 18:45:09 -0500436 DEFAULT_CONFIG_FILE = "tempest.conf"
437
438 def __init__(self):
439 """Initialize a configuration from a conf directory and conf file."""
Sean Dague2416cf32013-04-10 08:29:07 -0400440 config_files = []
441
442 failsafe_path = "/etc/tempest/" + self.DEFAULT_CONFIG_FILE
Brian Waldon738cd632011-12-12 18:45:09 -0500443
444 # Environment variables override defaults...
445 conf_dir = os.environ.get('TEMPEST_CONFIG_DIR',
Zhongyue Luo79d8d362012-09-25 13:49:27 +0800446 self.DEFAULT_CONFIG_DIR)
447 conf_file = os.environ.get('TEMPEST_CONFIG', self.DEFAULT_CONFIG_FILE)
Brian Waldon738cd632011-12-12 18:45:09 -0500448
Jay Pipes7f757632011-12-02 15:53:32 -0500449 path = os.path.join(conf_dir, conf_file)
450
Zhongyue Luoafd43eb2013-02-04 11:32:57 +0800451 if not (os.path.isfile(path) or
452 'TEMPEST_CONFIG_DIR' in os.environ or
453 'TEMPEST_CONFIG' in os.environ):
Sean Dague2416cf32013-04-10 08:29:07 -0400454 path = failsafe_path
Attila Fazekas5abb2532012-12-04 11:30:49 +0100455
Jay Pipes3f981df2012-03-27 18:59:44 -0400456 LOG.info("Using tempest config file %s" % path)
457
Jay Pipes7f757632011-12-02 15:53:32 -0500458 if not os.path.exists(path):
459 msg = "Config file %(path)s not found" % locals()
Attila Fazekas5abb2532012-12-04 11:30:49 +0100460 print >> sys.stderr, RuntimeError(msg)
Sean Dague2416cf32013-04-10 08:29:07 -0400461 else:
462 config_files.append(path)
Jay Pipes7f757632011-12-02 15:53:32 -0500463
Sean Dague2416cf32013-04-10 08:29:07 -0400464 cfg.CONF([], project='tempest', default_config_files=config_files)
Daryl Walleck1465d612011-11-02 02:22:15 -0500465
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500466 register_compute_opts(cfg.CONF)
467 register_identity_opts(cfg.CONF)
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100468 register_whitebox_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500469 register_image_opts(cfg.CONF)
470 register_network_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500471 register_volume_opts(cfg.CONF)
472 register_object_storage_opts(cfg.CONF)
473 register_boto_opts(cfg.CONF)
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100474 register_compute_admin_opts(cfg.CONF)
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500475 register_stress_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500476 self.compute = cfg.CONF.compute
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100477 self.whitebox = cfg.CONF.whitebox
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500478 self.identity = cfg.CONF.identity
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500479 self.images = cfg.CONF.image
480 self.network = cfg.CONF.network
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500481 self.volume = cfg.CONF.volume
482 self.object_storage = cfg.CONF['object-storage']
483 self.boto = cfg.CONF.boto
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100484 self.compute_admin = cfg.CONF['compute-admin']
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500485 self.stress = cfg.CONF.stress
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100486 if not self.compute_admin.username:
487 self.compute_admin.username = self.identity.admin_username
488 self.compute_admin.password = self.identity.admin_password
489 self.compute_admin.tenant_name = self.identity.admin_tenant_name