blob: 6ef2f2f9de8a1c6ef2bb85dbe4fdc49f9e1a67f1 [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
21baremetal_group = cfg.OptGroup(name='baremetal',
22 title='Baremetal provisioning service options',
23 help='When enabling baremetal tests, Nova '
24 'must be configured to use the Ironic '
25 'driver. The following parameters for the '
26 '[compute] section must be disabled: '
27 'console_output, interface_attach, '
28 'live_migration, pause, rescue, resize, '
29 'shelve, snapshot, and suspend')
30
31BaremetalGroup = [
Thiago Paivaa7760932016-08-15 15:23:30 -030032 cfg.StrOpt('catalog_type',
33 default='baremetal',
34 help="Catalog type of the baremetal provisioning service"),
35 cfg.StrOpt('driver',
36 default='fake',
37 help="Driver name which Ironic uses"),
38 cfg.StrOpt('endpoint_type',
39 default='publicURL',
40 choices=['public', 'admin', 'internal',
41 'publicURL', 'adminURL', 'internalURL'],
42 help="The endpoint type to use for the baremetal provisioning"
43 " service"),
Mike Tureka7cb4be2016-01-18 19:35:29 +000044 cfg.IntOpt('deploywait_timeout',
45 default=15,
46 help="Timeout for Ironic node to reach the "
47 "wait-callback state after powering on."),
Thiago Paivaa7760932016-08-15 15:23:30 -030048 cfg.IntOpt('active_timeout',
49 default=300,
50 help="Timeout for Ironic node to completely provision"),
51 cfg.IntOpt('association_timeout',
52 default=30,
53 help="Timeout for association of Nova instance and Ironic "
54 "node"),
55 cfg.IntOpt('power_timeout',
56 default=60,
57 help="Timeout for Ironic power transitions."),
58 cfg.IntOpt('unprovision_timeout',
59 default=300,
60 help="Timeout for unprovisioning an Ironic node. "
61 "Takes longer since Kilo as Ironic performs an extra "
62 "step in Node cleaning."),
Yuiko Takadaff785002015-12-17 15:56:42 +090063 cfg.StrOpt('min_microversion',
Yuiko Takadaff785002015-12-17 15:56:42 +090064 help="Lower version of the test target microversion range. "
65 "The format is 'X.Y', where 'X' and 'Y' are int values. "
66 "Tempest selects tests based on the range between "
67 "min_microversion and max_microversion. "
68 "If both values are None, Tempest avoids tests which "
69 "require a microversion."),
70 cfg.StrOpt('max_microversion',
71 default='latest',
72 help="Upper version of the test target microversion range. "
73 "The format is 'X.Y', where 'X' and 'Y' are int values. "
74 "Tempest selects tests based on the range between "
75 "min_microversion and max_microversion. "
76 "If both values are None, Tempest avoids tests which "
77 "require a microversion."),
Yuriy Yekovenkoeb612d92016-01-18 17:49:47 +020078 cfg.BoolOpt('use_provision_network',
79 default=False,
80 help="Whether the Ironic/Neutron tenant isolation is enabled")
Mike Tureka7cb4be2016-01-18 19:35:29 +000081]