blob: e9dd11c8285a532653c1cca016b8bc964f94384c [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 = [
32 cfg.StrOpt('catalog_type',
33 default='baremetal',
34 help="Catalog type of the baremetal provisioning service"),
35 cfg.BoolOpt('driver_enabled',
36 default=True,
37 help="Whether the Ironic nova-compute driver is enabled"),
38 cfg.StrOpt('driver',
39 default='fake',
40 help="Driver name which Ironic uses"),
41 cfg.StrOpt('endpoint_type',
42 default='publicURL',
43 choices=['public', 'admin', 'internal',
44 'publicURL', 'adminURL', 'internalURL'],
45 help="The endpoint type to use for the baremetal provisioning "
46 "service"),
47 cfg.IntOpt('deploywait_timeout',
48 default=15,
49 help="Timeout for Ironic node to reach the "
50 "wait-callback state after powering on."),
51 cfg.IntOpt('active_timeout',
52 default=300,
53 help="Timeout for Ironic node to completely provision"),
54 cfg.IntOpt('association_timeout',
55 default=30,
56 help="Timeout for association of Nova instance and Ironic "
57 "node"),
58 cfg.IntOpt('power_timeout',
59 default=60,
60 help="Timeout for Ironic power transitions."),
61 cfg.IntOpt('unprovision_timeout',
62 default=300,
63 help="Timeout for unprovisioning an Ironic node. "
64 "Takes longer since Kilo as Ironic performs an extra "
65 "step in Node cleaning.")
66]