blob: 661b89c2caf1da0a17be1be7da469255a7d0ac86 [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
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -050037baremetal_features_group = cfg.OptGroup(
38 name='baremetal_feature_enabled',
39 title="Enabled Baremetal Service Features")
40
Mike Tureka7cb4be2016-01-18 19:35:29 +000041BaremetalGroup = [
Thiago Paivaa7760932016-08-15 15:23:30 -030042 cfg.StrOpt('catalog_type',
43 default='baremetal',
44 help="Catalog type of the baremetal provisioning service"),
45 cfg.StrOpt('driver',
46 default='fake',
47 help="Driver name which Ironic uses"),
48 cfg.StrOpt('endpoint_type',
49 default='publicURL',
50 choices=['public', 'admin', 'internal',
51 'publicURL', 'adminURL', 'internalURL'],
52 help="The endpoint type to use for the baremetal provisioning"
53 " service"),
Mike Tureka7cb4be2016-01-18 19:35:29 +000054 cfg.IntOpt('deploywait_timeout',
55 default=15,
56 help="Timeout for Ironic node to reach the "
57 "wait-callback state after powering on."),
Thiago Paivaa7760932016-08-15 15:23:30 -030058 cfg.IntOpt('active_timeout',
59 default=300,
60 help="Timeout for Ironic node to completely provision"),
61 cfg.IntOpt('association_timeout',
62 default=30,
63 help="Timeout for association of Nova instance and Ironic "
64 "node"),
65 cfg.IntOpt('power_timeout',
66 default=60,
67 help="Timeout for Ironic power transitions."),
68 cfg.IntOpt('unprovision_timeout',
69 default=300,
70 help="Timeout for unprovisioning an Ironic node. "
71 "Takes longer since Kilo as Ironic performs an extra "
72 "step in Node cleaning."),
Yuiko Takadaff785002015-12-17 15:56:42 +090073 cfg.StrOpt('min_microversion',
Yuiko Takadaff785002015-12-17 15:56:42 +090074 help="Lower version of the test target microversion range. "
75 "The format is 'X.Y', where 'X' and 'Y' are int values. "
76 "Tempest selects tests based on the range between "
77 "min_microversion and max_microversion. "
78 "If both values are None, Tempest avoids tests which "
79 "require a microversion."),
80 cfg.StrOpt('max_microversion',
81 default='latest',
82 help="Upper version of the test target microversion range. "
83 "The format is 'X.Y', where 'X' and 'Y' are int values. "
84 "Tempest selects tests based on the range between "
85 "min_microversion and max_microversion. "
86 "If both values are None, Tempest avoids tests which "
87 "require a microversion."),
Yuriy Yekovenkoeb612d92016-01-18 17:49:47 +020088 cfg.BoolOpt('use_provision_network',
89 default=False,
Vasyl Saienko4ddbeec2017-01-20 16:26:04 +000090 help="Whether the Ironic/Neutron tenant isolation is enabled"),
91 cfg.StrOpt('whole_disk_image_ref',
92 help="UUID of the wholedisk image to use in the tests."),
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -050093 cfg.StrOpt('whole_disk_image_url',
94 help="An http link to the wholedisk image to use in the "
95 "tests."),
96 cfg.StrOpt('whole_disk_image_checksum',
97 help="An MD5 checksum of the image."),
Vasyl Saienko4ddbeec2017-01-20 16:26:04 +000098 cfg.StrOpt('partition_image_ref',
99 help="UUID of the partitioned image to use in the tests."),
100 cfg.ListOpt('enabled_drivers',
101 default=['fake', 'pxe_ipmitool', 'agent_ipmitool'],
102 help="List of Ironic enabled drivers."),
103 cfg.ListOpt('enabled_hardware_types',
104 default=['ipmi'],
105 help="List of Ironic enabled hardware types."),
106 cfg.IntOpt('adjusted_root_disk_size_gb',
107 min=0,
108 help="Ironic adjusted disk size to use in the standalone tests "
109 "as instance_info/root_gb value."),
Mike Tureka7cb4be2016-01-18 19:35:29 +0000110]
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -0500111
112BaremetalFeaturesGroup = [
113 cfg.BoolOpt('ipxe_enabled',
114 default=True,
115 help="Defines if IPXE is enabled"),
116]