blob: aea356376b60cf27e38015524f70106b20e73ae0 [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"),
132 cfg.BoolOpt('change_password_available',
133 default=False,
134 help="Does the test environment support changing the admin "
135 "password?"),
136 cfg.BoolOpt('create_image_enabled',
137 default=False,
138 help="Does the test environment support snapshots?"),
139 cfg.IntOpt('build_interval',
140 default=10,
141 help="Time in seconds between build status checks."),
142 cfg.IntOpt('build_timeout',
143 default=300,
144 help="Timeout in seconds to wait for an instance to build."),
145 cfg.BoolOpt('run_ssh',
146 default=False,
147 help="Does the test environment support snapshots?"),
148 cfg.StrOpt('ssh_user',
149 default='root',
150 help="User name used to authenticate to an instance."),
151 cfg.IntOpt('ssh_timeout',
152 default=300,
Chris Yeoh76916042013-02-27 16:25:25 +1030153 help="Timeout in seconds to wait for authentication to "
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500154 "succeed."),
Chris Yeoh76916042013-02-27 16:25:25 +1030155 cfg.IntOpt('ssh_channel_timeout',
156 default=60,
157 help="Timeout in seconds to wait for output from ssh "
158 "channel."),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500159 cfg.StrOpt('network_for_ssh',
160 default='public',
161 help="Network used for SSH connections."),
162 cfg.IntOpt('ip_version_for_ssh',
163 default=4,
164 help="IP version used for SSH connections."),
165 cfg.StrOpt('catalog_type',
166 default='compute',
167 help="Catalog type of the Compute service."),
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100168 cfg.StrOpt('path_to_private_key',
169 default=None,
170 help="Path to a private key file for SSH access to remote "
171 "hosts"),
172 cfg.BoolOpt('disk_config_enabled_override',
173 default=True,
174 help="If false, skip config tests regardless of the "
175 "extension status"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500176]
Rohit Karajgie1b050d2011-12-02 16:13:18 -0800177
Rohit Karajgie1b050d2011-12-02 16:13:18 -0800178
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500179def register_compute_opts(conf):
180 conf.register_group(compute_group)
181 for opt in ComputeGroup:
182 conf.register_opt(opt, group='compute')
kavan-patil4ea2efb2011-12-09 08:58:50 +0000183
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500184compute_admin_group = cfg.OptGroup(name='compute-admin',
185 title="Compute Admin Options")
donald-ngo7fb1efa2011-12-13 17:17:36 -0800186
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500187ComputeAdminGroup = [
188 cfg.StrOpt('username',
189 default='admin',
190 help="Administrative Username to use for Nova API requests."),
191 cfg.StrOpt('tenant_name',
192 default='admin',
193 help="Administrative Tenant name to use for Nova API "
194 "requests."),
195 cfg.StrOpt('password',
196 default='pass',
197 help="API key to use when authenticating as admin.",
198 secret=True),
199]
Daryl Walleck587385b2012-03-03 13:00:26 -0600200
K Jonathan Harkerd6ba4b42012-12-18 13:50:47 -0800201
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500202def register_compute_admin_opts(conf):
203 conf.register_group(compute_admin_group)
204 for opt in ComputeAdminGroup:
205 conf.register_opt(opt, group='compute-admin')
Daryl Walleck587385b2012-03-03 13:00:26 -0600206
Jay Pipesf38eaac2012-06-21 13:37:35 -0400207
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100208whitebox_group = cfg.OptGroup(name='whitebox',
209 title="Whitebox Options")
210
211WhiteboxGroup = [
212 cfg.BoolOpt('whitebox_enabled',
213 default=False,
214 help="Does the test environment support whitebox tests for "
215 "Compute?"),
216 cfg.StrOpt('db_uri',
217 default=None,
218 help="Connection string to the database of Compute service"),
219 cfg.StrOpt('source_dir',
220 default="/opt/stack/nova",
221 help="Path of nova source directory"),
222 cfg.StrOpt('config_path',
223 default='/etc/nova/nova.conf',
224 help="Path of nova configuration file"),
225 cfg.StrOpt('bin_dir',
226 default="/usr/local/bin/",
227 help="Directory containing nova binaries such as nova-manage"),
228]
229
230
231def register_whitebox_opts(conf):
232 conf.register_group(whitebox_group)
233 for opt in WhiteboxGroup:
234 conf.register_opt(opt, group='whitebox')
235
236
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500237image_group = cfg.OptGroup(name='image',
238 title="Image Service Options")
Jay Pipesf38eaac2012-06-21 13:37:35 -0400239
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500240ImageGroup = [
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500241 cfg.StrOpt('api_version',
242 default='1',
243 help="Version of the API"),
Matthew Treinish72ea4422013-02-07 14:42:49 -0500244 cfg.StrOpt('catalog_type',
245 default='image',
Sean Dague83401992013-05-06 17:46:36 -0400246 help='Catalog type of the Image service.'),
247 cfg.StrOpt('http_image',
248 default='http://download.cirros-cloud.net/0.3.1/'
249 'cirros-0.3.1-x86_64-uec.tar.gz',
250 help='http accessable image')
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500251]
Jay Pipesf38eaac2012-06-21 13:37:35 -0400252
Jay Pipesf38eaac2012-06-21 13:37:35 -0400253
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500254def register_image_opts(conf):
255 conf.register_group(image_group)
256 for opt in ImageGroup:
257 conf.register_opt(opt, group='image')
Jay Pipesf38eaac2012-06-21 13:37:35 -0400258
259
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500260network_group = cfg.OptGroup(name='network',
261 title='Network Service Options')
Daryl Walleck587385b2012-03-03 13:00:26 -0600262
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500263NetworkGroup = [
264 cfg.StrOpt('catalog_type',
265 default='network',
266 help='Catalog type of the Quantum service.'),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500267 cfg.StrOpt('tenant_network_cidr',
268 default="10.100.0.0/16",
269 help="The cidr block to allocate tenant networks from"),
270 cfg.IntOpt('tenant_network_mask_bits',
271 default=29,
272 help="The mask bits for tenant networks"),
273 cfg.BoolOpt('tenant_networks_reachable',
274 default=False,
275 help="Whether tenant network connectivity should be "
276 "evaluated directly"),
277 cfg.StrOpt('public_network_id',
278 default="",
279 help="Id of the public network that provides external "
280 "connectivity"),
281 cfg.StrOpt('public_router_id',
282 default="",
283 help="Id of the public router that provides external "
284 "connectivity"),
Dan Smithd6c1f882013-02-26 15:50:11 -0500285 cfg.BoolOpt('quantum_available',
286 default=False,
287 help="Whether or not quantum is expected to be available"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500288]
Jay Pipes3f981df2012-03-27 18:59:44 -0400289
Jay Pipesf38eaac2012-06-21 13:37:35 -0400290
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500291def register_network_opts(conf):
292 conf.register_group(network_group)
293 for opt in NetworkGroup:
294 conf.register_opt(opt, group='network')
Dan Smithd6ff6b72012-08-23 10:29:41 -0700295
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500296volume_group = cfg.OptGroup(name='volume',
297 title='Block Storage Options')
Daryl Walleck587385b2012-03-03 13:00:26 -0600298
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500299VolumeGroup = [
300 cfg.IntOpt('build_interval',
301 default=10,
302 help='Time in seconds between volume availability checks.'),
303 cfg.IntOpt('build_timeout',
304 default=300,
305 help='Timeout in seconds to wait for a volume to become'
306 'available.'),
307 cfg.StrOpt('catalog_type',
308 default='Volume',
309 help="Catalog type of the Volume Service"),
310]
K Jonathan Harkerd6ba4b42012-12-18 13:50:47 -0800311
Daryl Walleck587385b2012-03-03 13:00:26 -0600312
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500313def register_volume_opts(conf):
314 conf.register_group(volume_group)
315 for opt in VolumeGroup:
316 conf.register_opt(opt, group='volume')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200317
Attila Fazekasa23f5002012-10-23 19:32:45 +0200318
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500319object_storage_group = cfg.OptGroup(name='object-storage',
320 title='Object Storage Service Options')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200321
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500322ObjectStoreConfig = [
323 cfg.StrOpt('catalog_type',
324 default='object-store',
325 help="Catalog type of the Object-Storage service."),
nayna-patelb4989b32013-01-09 06:25:13 +0000326 cfg.StrOpt('container_sync_timeout',
327 default=120,
328 help="Number of seconds to time on waiting for a container"
329 "to container synchronization complete."),
330 cfg.StrOpt('container_sync_interval',
331 default=5,
332 help="Number of seconds to wait while looping to check the"
333 "status of a container to container synchronization"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500334]
Attila Fazekasa23f5002012-10-23 19:32:45 +0200335
Attila Fazekasa23f5002012-10-23 19:32:45 +0200336
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500337def register_object_storage_opts(conf):
338 conf.register_group(object_storage_group)
339 for opt in ObjectStoreConfig:
340 conf.register_opt(opt, group='object-storage')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200341
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500342boto_group = cfg.OptGroup(name='boto',
343 title='EC2/S3 options')
344BotoConfig = [
345 cfg.StrOpt('ec2_url',
346 default="http://localhost:8773/services/Cloud",
347 help="EC2 URL"),
348 cfg.StrOpt('s3_url',
349 default="http://localhost:8080",
350 help="S3 URL"),
351 cfg.StrOpt('aws_secret',
352 default=None,
353 help="AWS Secret Key",
354 secret=True),
355 cfg.StrOpt('aws_access',
356 default=None,
357 help="AWS Access Key"),
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500358 cfg.StrOpt('s3_materials_path',
359 default="/opt/stack/devstack/files/images/"
360 "s3-materials/cirros-0.3.0",
361 help="S3 Materials Path"),
362 cfg.StrOpt('ari_manifest',
363 default="cirros-0.3.0-x86_64-initrd.manifest.xml",
364 help="ARI Ramdisk Image manifest"),
365 cfg.StrOpt('ami_manifest',
366 default="cirros-0.3.0-x86_64-blank.img.manifest.xml",
367 help="AMI Machine Image manifest"),
368 cfg.StrOpt('aki_manifest',
369 default="cirros-0.3.0-x86_64-vmlinuz.manifest.xml",
370 help="AKI Kernel Image manifest"),
371 cfg.StrOpt('instance_type',
372 default="m1.tiny",
373 help="Instance type"),
374 cfg.IntOpt('http_socket_timeout',
375 default=3,
376 help="boto Http socket timeout"),
377 cfg.IntOpt('num_retries',
378 default=1,
379 help="boto num_retries on error"),
380 cfg.IntOpt('build_timeout',
381 default=60,
382 help="Status Change Timeout"),
383 cfg.IntOpt('build_interval',
384 default=1,
385 help="Status Change Test Interval"),
386]
Attila Fazekasf7f2d932012-12-13 09:14:38 +0100387
Attila Fazekasa23f5002012-10-23 19:32:45 +0200388
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500389def register_boto_opts(conf):
390 conf.register_group(boto_group)
391 for opt in BotoConfig:
392 conf.register_opt(opt, group='boto')
Attila Fazekasa23f5002012-10-23 19:32:45 +0200393
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500394stress_group = cfg.OptGroup(name='stress', title='Stress Test Options')
395
396StressGroup = [
397 cfg.StrOpt('nova_logdir',
398 default=None,
399 help='Directory containing log files on the compute nodes'),
400 cfg.IntOpt('max_instances',
401 default=16,
402 help='Maximum number of instances to create during test.'),
403 cfg.StrOpt('controller',
404 default=None,
405 help='Controller host.')
406]
407
408
409def register_stress_opts(conf):
410 conf.register_group(stress_group)
411 for opt in StressGroup:
412 conf.register_opt(opt, group='stress')
413
Attila Fazekasa23f5002012-10-23 19:32:45 +0200414
Jay Pipes3f981df2012-03-27 18:59:44 -0400415@singleton
416class TempestConfig:
Daryl Walleck1465d612011-11-02 02:22:15 -0500417 """Provides OpenStack configuration information."""
418
Brian Waldon738cd632011-12-12 18:45:09 -0500419 DEFAULT_CONFIG_DIR = os.path.join(
Zhongyue Luoa1343de2013-01-04 16:21:35 +0800420 os.path.abspath(os.path.dirname(os.path.dirname(__file__))),
Brian Waldon738cd632011-12-12 18:45:09 -0500421 "etc")
Daryl Walleck1465d612011-11-02 02:22:15 -0500422
Brian Waldon738cd632011-12-12 18:45:09 -0500423 DEFAULT_CONFIG_FILE = "tempest.conf"
424
425 def __init__(self):
426 """Initialize a configuration from a conf directory and conf file."""
Sean Dague2416cf32013-04-10 08:29:07 -0400427 config_files = []
428
429 failsafe_path = "/etc/tempest/" + self.DEFAULT_CONFIG_FILE
Brian Waldon738cd632011-12-12 18:45:09 -0500430
431 # Environment variables override defaults...
432 conf_dir = os.environ.get('TEMPEST_CONFIG_DIR',
Zhongyue Luo79d8d362012-09-25 13:49:27 +0800433 self.DEFAULT_CONFIG_DIR)
434 conf_file = os.environ.get('TEMPEST_CONFIG', self.DEFAULT_CONFIG_FILE)
Brian Waldon738cd632011-12-12 18:45:09 -0500435
Jay Pipes7f757632011-12-02 15:53:32 -0500436 path = os.path.join(conf_dir, conf_file)
437
Zhongyue Luoafd43eb2013-02-04 11:32:57 +0800438 if not (os.path.isfile(path) or
439 'TEMPEST_CONFIG_DIR' in os.environ or
440 'TEMPEST_CONFIG' in os.environ):
Sean Dague2416cf32013-04-10 08:29:07 -0400441 path = failsafe_path
Attila Fazekas5abb2532012-12-04 11:30:49 +0100442
Jay Pipes3f981df2012-03-27 18:59:44 -0400443 LOG.info("Using tempest config file %s" % path)
444
Jay Pipes7f757632011-12-02 15:53:32 -0500445 if not os.path.exists(path):
446 msg = "Config file %(path)s not found" % locals()
Attila Fazekas5abb2532012-12-04 11:30:49 +0100447 print >> sys.stderr, RuntimeError(msg)
Sean Dague2416cf32013-04-10 08:29:07 -0400448 else:
449 config_files.append(path)
Jay Pipes7f757632011-12-02 15:53:32 -0500450
Sean Dague2416cf32013-04-10 08:29:07 -0400451 cfg.CONF([], project='tempest', default_config_files=config_files)
Daryl Walleck1465d612011-11-02 02:22:15 -0500452
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500453 register_compute_opts(cfg.CONF)
454 register_identity_opts(cfg.CONF)
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100455 register_whitebox_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500456 register_image_opts(cfg.CONF)
457 register_network_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500458 register_volume_opts(cfg.CONF)
459 register_object_storage_opts(cfg.CONF)
460 register_boto_opts(cfg.CONF)
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100461 register_compute_admin_opts(cfg.CONF)
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500462 register_stress_opts(cfg.CONF)
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500463 self.compute = cfg.CONF.compute
Attila Fazekas3ca1fb32013-01-21 23:10:53 +0100464 self.whitebox = cfg.CONF.whitebox
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500465 self.identity = cfg.CONF.identity
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500466 self.images = cfg.CONF.image
467 self.network = cfg.CONF.network
Matthew Treinish39e48ef2012-12-21 13:36:15 -0500468 self.volume = cfg.CONF.volume
469 self.object_storage = cfg.CONF['object-storage']
470 self.boto = cfg.CONF.boto
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100471 self.compute_admin = cfg.CONF['compute-admin']
Matthew Treinish615ea6a2013-02-25 17:26:59 -0500472 self.stress = cfg.CONF.stress
Attila Fazekascadcb1f2013-01-21 23:10:53 +0100473 if not self.compute_admin.username:
474 self.compute_admin.username = self.identity.admin_username
475 self.compute_admin.password = self.identity.admin_password
476 self.compute_admin.tenant_name = self.identity.admin_tenant_name