blob: aa416b84f2da6af59c379a3f6cbdba7f4f857c54 [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
Dmitry Tantsurb609cea2017-12-12 08:06:44 +010021ironic_service_option = cfg.BoolOpt('ironic',
22 default=False,
23 help='Whether or not ironic is expected '
24 'to be available')
Jim Rollenhagen1c11bdf2016-11-29 16:57:30 -050025
Dmitry Tantsurb609cea2017-12-12 08:06:44 +010026inspector_service_option = cfg.BoolOpt("ironic-inspector",
27 default=True,
28 help="Whether or not ironic-inspector "
29 "is expected to be available")
Jim Rollenhagen1c11bdf2016-11-29 16:57:30 -050030
Mike Tureka7cb4be2016-01-18 19:35:29 +000031baremetal_group = cfg.OptGroup(name='baremetal',
32 title='Baremetal provisioning service options',
33 help='When enabling baremetal tests, Nova '
34 'must be configured to use the Ironic '
35 'driver. The following parameters for the '
36 '[compute] section must be disabled: '
37 'console_output, interface_attach, '
38 'live_migration, pause, rescue, resize, '
39 'shelve, snapshot, and suspend')
40
Anton Arefiev6dc82792016-08-03 11:50:49 +030041baremetal_introspection_group = cfg.OptGroup(
42 name="baremetal_introspection",
43 title="Baremetal introspection service options",
44 help="When enabling baremetal introspection tests,"
45 "Ironic must be configured.")
46
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -050047baremetal_features_group = cfg.OptGroup(
48 name='baremetal_feature_enabled',
49 title="Enabled Baremetal Service Features")
50
Mike Tureka7cb4be2016-01-18 19:35:29 +000051BaremetalGroup = [
Thiago Paivaa7760932016-08-15 15:23:30 -030052 cfg.StrOpt('catalog_type',
53 default='baremetal',
54 help="Catalog type of the baremetal provisioning service"),
55 cfg.StrOpt('driver',
56 default='fake',
57 help="Driver name which Ironic uses"),
58 cfg.StrOpt('endpoint_type',
59 default='publicURL',
60 choices=['public', 'admin', 'internal',
61 'publicURL', 'adminURL', 'internalURL'],
62 help="The endpoint type to use for the baremetal provisioning"
63 " service"),
Mike Tureka7cb4be2016-01-18 19:35:29 +000064 cfg.IntOpt('deploywait_timeout',
65 default=15,
66 help="Timeout for Ironic node to reach the "
67 "wait-callback state after powering on."),
Thiago Paivaa7760932016-08-15 15:23:30 -030068 cfg.IntOpt('active_timeout',
69 default=300,
70 help="Timeout for Ironic node to completely provision"),
71 cfg.IntOpt('association_timeout',
72 default=30,
73 help="Timeout for association of Nova instance and Ironic "
74 "node"),
75 cfg.IntOpt('power_timeout',
76 default=60,
77 help="Timeout for Ironic power transitions."),
78 cfg.IntOpt('unprovision_timeout',
79 default=300,
80 help="Timeout for unprovisioning an Ironic node. "
81 "Takes longer since Kilo as Ironic performs an extra "
82 "step in Node cleaning."),
Yuiko Takadaff785002015-12-17 15:56:42 +090083 cfg.StrOpt('min_microversion',
Yuiko Takadaff785002015-12-17 15:56:42 +090084 help="Lower version of the test target microversion range. "
85 "The format is 'X.Y', where 'X' and 'Y' are int values. "
86 "Tempest selects tests based on the range between "
87 "min_microversion and max_microversion. "
88 "If both values are None, Tempest avoids tests which "
89 "require a microversion."),
90 cfg.StrOpt('max_microversion',
91 default='latest',
92 help="Upper version of the test target microversion range. "
93 "The format is 'X.Y', where 'X' and 'Y' are int values. "
94 "Tempest selects tests based on the range between "
95 "min_microversion and max_microversion. "
96 "If both values are None, Tempest avoids tests which "
97 "require a microversion."),
Yuriy Yekovenkoeb612d92016-01-18 17:49:47 +020098 cfg.BoolOpt('use_provision_network',
99 default=False,
Vasyl Saienko4ddbeec2017-01-20 16:26:04 +0000100 help="Whether the Ironic/Neutron tenant isolation is enabled"),
101 cfg.StrOpt('whole_disk_image_ref',
102 help="UUID of the wholedisk image to use in the tests."),
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -0500103 cfg.StrOpt('whole_disk_image_url',
104 help="An http link to the wholedisk image to use in the "
105 "tests."),
106 cfg.StrOpt('whole_disk_image_checksum',
107 help="An MD5 checksum of the image."),
Vasyl Saienko4ddbeec2017-01-20 16:26:04 +0000108 cfg.StrOpt('partition_image_ref',
109 help="UUID of the partitioned image to use in the tests."),
110 cfg.ListOpt('enabled_drivers',
111 default=['fake', 'pxe_ipmitool', 'agent_ipmitool'],
112 help="List of Ironic enabled drivers."),
113 cfg.ListOpt('enabled_hardware_types',
114 default=['ipmi'],
115 help="List of Ironic enabled hardware types."),
116 cfg.IntOpt('adjusted_root_disk_size_gb',
117 min=0,
118 help="Ironic adjusted disk size to use in the standalone tests "
119 "as instance_info/root_gb value."),
Mike Tureka7cb4be2016-01-18 19:35:29 +0000120]
Vasyl Saienkof46b9fa2017-02-23 13:06:56 -0500121
122BaremetalFeaturesGroup = [
123 cfg.BoolOpt('ipxe_enabled',
124 default=True,
125 help="Defines if IPXE is enabled"),
126]
Dmitry Tantsurb609cea2017-12-12 08:06:44 +0100127
Anton Arefiev6dc82792016-08-03 11:50:49 +0300128BaremetalIntrospectionGroup = [
129 cfg.StrOpt('catalog_type',
130 default='baremetal-introspection',
131 help="Catalog type of the baremetal provisioning service"),
132 cfg.StrOpt('endpoint_type',
133 default='publicURL',
134 choices=['public', 'admin', 'internal',
135 'publicURL', 'adminURL', 'internalURL'],
136 help="The endpoint type to use for the baremetal introspection"
137 " service"),
138 cfg.IntOpt('introspection_sleep',
139 default=30,
140 help="Introspection sleep before check status"),
141 cfg.IntOpt('introspection_timeout',
142 default=600,
143 help="Introspection time out"),
144 cfg.IntOpt('hypervisor_update_sleep',
145 default=60,
146 help="Time to wait until nova becomes aware of "
147 "bare metal instances"),
148 cfg.IntOpt('hypervisor_update_timeout',
149 default=300,
150 help="Time out for wait until nova becomes aware of "
151 "bare metal instances"),
152 # NOTE(aarefiev): status_check_period default is 60s, but checking
153 # node state takes some time(API call), so races appear here,
154 # 80s would be enough to make one more check.
155 cfg.IntOpt('ironic_sync_timeout',
156 default=80,
157 help="Time it might take for Ironic--Inspector "
158 "sync to happen"),
Anton Arefiev6b003562016-09-13 12:17:29 +0300159 cfg.IntOpt('discovery_timeout',
160 default=300,
161 help="Time to wait until new node would enrolled in "
162 "ironic"),
163 cfg.BoolOpt('auto_discovery_feature',
164 default=False,
165 help="Is the auto-discovery feature enabled. Enroll hook "
166 "should be specified in node_not_found_hook - processing "
167 "section of inspector.conf"),
Anton Arefiev6dc82792016-08-03 11:50:49 +0300168]