blob: 60ee1137a1e57740dbde9f7c8b70ed0f528a8239 [file] [log] [blame]
Mike Tureka7cb4be2016-01-18 19:35:29 +00001# Copyright 2015 NEC Corporation
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16from oslo_config import cfg
17
18from tempest import config # noqa
19
20
Jim Rollenhagen1c11bdf2016-11-29 16:57:30 -050021service_option = cfg.BoolOpt('ironic',
22 default=False,
23 help='Whether or not Ironic is expected to be '
24 'available')
25
26
Mike Tureka7cb4be2016-01-18 19:35:29 +000027baremetal_group = cfg.OptGroup(name='baremetal',
28 title='Baremetal provisioning service options',
29 help='When enabling baremetal tests, Nova '
30 'must be configured to use the Ironic '
31 'driver. The following parameters for the '
32 '[compute] section must be disabled: '
33 'console_output, interface_attach, '
34 'live_migration, pause, rescue, resize, '
35 'shelve, snapshot, and suspend')
36
37BaremetalGroup = [
Thiago Paivaa7760932016-08-15 15:23:30 -030038 cfg.StrOpt('catalog_type',
39 default='baremetal',
40 help="Catalog type of the baremetal provisioning service"),
41 cfg.StrOpt('driver',
42 default='fake',
43 help="Driver name which Ironic uses"),
44 cfg.StrOpt('endpoint_type',
45 default='publicURL',
46 choices=['public', 'admin', 'internal',
47 'publicURL', 'adminURL', 'internalURL'],
48 help="The endpoint type to use for the baremetal provisioning"
49 " service"),
Mike Tureka7cb4be2016-01-18 19:35:29 +000050 cfg.IntOpt('deploywait_timeout',
51 default=15,
52 help="Timeout for Ironic node to reach the "
53 "wait-callback state after powering on."),
Thiago Paivaa7760932016-08-15 15:23:30 -030054 cfg.IntOpt('active_timeout',
55 default=300,
56 help="Timeout for Ironic node to completely provision"),
57 cfg.IntOpt('association_timeout',
58 default=30,
59 help="Timeout for association of Nova instance and Ironic "
60 "node"),
61 cfg.IntOpt('power_timeout',
62 default=60,
63 help="Timeout for Ironic power transitions."),
64 cfg.IntOpt('unprovision_timeout',
65 default=300,
66 help="Timeout for unprovisioning an Ironic node. "
67 "Takes longer since Kilo as Ironic performs an extra "
68 "step in Node cleaning."),
Yuiko Takadaff785002015-12-17 15:56:42 +090069 cfg.StrOpt('min_microversion',
Yuiko Takadaff785002015-12-17 15:56:42 +090070 help="Lower version of the test target microversion range. "
71 "The format is 'X.Y', where 'X' and 'Y' are int values. "
72 "Tempest selects tests based on the range between "
73 "min_microversion and max_microversion. "
74 "If both values are None, Tempest avoids tests which "
75 "require a microversion."),
76 cfg.StrOpt('max_microversion',
77 default='latest',
78 help="Upper version of the test target microversion range. "
79 "The format is 'X.Y', where 'X' and 'Y' are int values. "
80 "Tempest selects tests based on the range between "
81 "min_microversion and max_microversion. "
82 "If both values are None, Tempest avoids tests which "
83 "require a microversion."),
Yuriy Yekovenkoeb612d92016-01-18 17:49:47 +020084 cfg.BoolOpt('use_provision_network',
85 default=False,
86 help="Whether the Ironic/Neutron tenant isolation is enabled")
Mike Tureka7cb4be2016-01-18 19:35:29 +000087]