blob: 00e9a35d2dbcd928d3e440838e070627b2aeb4ff [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
Mauro S. M. Rodrigues27cbcee2016-02-03 14:14:58 -050031# NOTE(maurosr): Until liberty-eol we need to keep config options and tests
32# on tempest's tree to test stable branches and thus we have to comment the
33# options bellow to avoid duplication. Only new options should live here.
Mike Tureka7cb4be2016-01-18 19:35:29 +000034BaremetalGroup = [
Mauro S. M. Rodrigues27cbcee2016-02-03 14:14:58 -050035 # cfg.StrOpt('catalog_type',
36 # default='baremetal',
37 # help="Catalog type of the baremetal provisioning service"),
38 # cfg.BoolOpt('driver_enabled',
39 # default=True,
40 # help="Whether the Ironic nova-compute driver is enabled"),
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."),
Mauro S. M. Rodrigues27cbcee2016-02-03 14:14:58 -050054 # 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]