blob: 786e11a5de186cc9b609fd77a4d0152174828fa2 [file] [log] [blame]
Steve Baker450aa7f2014-08-25 10:37:27 +12001# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
Jens Rosenboom4f069fb2015-02-18 14:19:07 +010013from oslo_config import cfg
Steve Baker450aa7f2014-08-25 10:37:27 +120014
Rocky5d966f92019-06-25 12:13:25 +100015import os
16
17default_template = os.path.join(
18 os.path.dirname(os.path.realpath(__file__)),
19 'tests/scenario/templates/boot_config_none_env.yaml')
20
Steve Baker39ed19e2016-08-01 00:55:34 +000021service_available_group = cfg.OptGroup(name="service_available",
22 title="Available OpenStack Services")
23
24ServiceAvailableGroup = [
ghanshyama8b59112018-11-26 09:24:38 +000025 cfg.BoolOpt("heat",
Steve Baker39ed19e2016-08-01 00:55:34 +000026 default=True,
ghanshyama8b59112018-11-26 09:24:38 +000027 help="Whether or not heat is expected to be available",
28 deprecated_opts=[cfg.DeprecatedOpt(
29 'heat_plugin',
30 group='service_available')]),
Steve Baker39ed19e2016-08-01 00:55:34 +000031]
Steve Baker450aa7f2014-08-25 10:37:27 +120032
rabif89752b2017-11-18 22:14:30 +053033heat_group = cfg.OptGroup(name="heat_plugin",
Steve Bakerdc769c32016-07-27 23:31:50 +000034 title="Heat Service Options")
Steve Baker450aa7f2014-08-25 10:37:27 +120035
Steve Bakerdc769c32016-07-27 23:31:50 +000036HeatGroup = [
37 cfg.StrOpt("catalog_type",
38 default="orchestration",
39 help="Catalog type of the orchestration service."),
Steve Baker450aa7f2014-08-25 10:37:27 +120040 cfg.StrOpt('username',
Rakesh H Sa286a132016-02-18 18:54:00 +053041 help="Username to use for non admin API requests."),
Steve Baker450aa7f2014-08-25 10:37:27 +120042 cfg.StrOpt('password',
Rakesh H Sa286a132016-02-18 18:54:00 +053043 help="Non admin API key to use when authenticating.",
44 secret=True),
45 cfg.StrOpt('admin_username',
46 help="Username to use for admin API requests."),
47 cfg.StrOpt('admin_password',
48 help="Admin API key to use when authentication.",
Steve Baker450aa7f2014-08-25 10:37:27 +120049 secret=True),
rabibe38c302017-04-11 09:54:07 +053050 cfg.StrOpt('project_name',
51 help="Project name to use for API requests.",
rabid2916d02017-09-22 18:19:24 +053052 deprecated_opts=[cfg.DeprecatedOpt(
rabif89752b2017-11-18 22:14:30 +053053 'tenant_name', group='heat_plugin')]),
rabibe38c302017-04-11 09:54:07 +053054 cfg.StrOpt('admin_project_name',
rabifd98a472016-05-24 10:18:33 +053055 default='admin',
rabibe38c302017-04-11 09:54:07 +053056 help="Admin project name to use for admin API requests.",
rabid2916d02017-09-22 18:19:24 +053057 deprecated_opts=[cfg.DeprecatedOpt(
rabif89752b2017-11-18 22:14:30 +053058 'admin_tenant_name', group='heat_plugin')]),
Steve Baker450aa7f2014-08-25 10:37:27 +120059 cfg.StrOpt('auth_url',
rabi8fcf1922017-04-19 09:21:54 +053060 help="Full URI of the OpenStack Identity API (Keystone)."),
61 cfg.StrOpt('auth_version',
62 help="OpenStack Identity API version."),
Rabi Mishra1d538742016-03-21 21:09:20 +053063 cfg.StrOpt('user_domain_name',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050064 help="User domain name, if keystone v3 auth_url "
Rabi Mishra1d538742016-03-21 21:09:20 +053065 "is used"),
66 cfg.StrOpt('project_domain_name',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050067 help="Project domain name, if keystone v3 auth_url "
Rabi Mishra65493fb2016-01-29 22:23:21 +053068 "is used"),
rabi133ee5f2016-12-01 09:54:37 +053069 cfg.StrOpt('user_domain_id',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050070 help="User domain id, if keystone v3 auth_url "
rabi133ee5f2016-12-01 09:54:37 +053071 "is used"),
72 cfg.StrOpt('project_domain_id',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050073 help="Project domain id, if keystone v3 auth_url "
rabi133ee5f2016-12-01 09:54:37 +053074 "is used"),
Steve Baker450aa7f2014-08-25 10:37:27 +120075 cfg.StrOpt('region',
Rabi Mishra65493fb2016-01-29 22:23:21 +053076 help="The region name to use"),
Colleen Murphy30b1fd62017-12-29 12:43:53 +010077 cfg.StrOpt('endpoint_type',
78 default='public',
79 choices=['public', 'admin', 'internal'],
80 help="The endpoint type to use for the orchestration service."),
Steve Baker450aa7f2014-08-25 10:37:27 +120081 cfg.StrOpt('instance_type',
Steve Baker450aa7f2014-08-25 10:37:27 +120082 help="Instance type for tests. Needs to be big enough for a "
83 "full OS plus the test workload"),
Pavlo Shchelokovskyy46e5cb22015-03-23 12:01:25 +000084 cfg.StrOpt('minimal_instance_type',
85 help="Instance type enough for simplest cases."),
Steve Baker450aa7f2014-08-25 10:37:27 +120086 cfg.StrOpt('image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120087 help="Name of image to use for tests which boot servers."),
88 cfg.StrOpt('keypair_name',
Steve Baker450aa7f2014-08-25 10:37:27 +120089 help="Name of existing keypair to launch servers with."),
90 cfg.StrOpt('minimal_image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120091 help="Name of minimal (e.g cirros) image to use when "
92 "launching test instances."),
Steve Baker450aa7f2014-08-25 10:37:27 +120093 cfg.BoolOpt('disable_ssl_certificate_validation',
94 default=False,
95 help="Set to True if using self-signed SSL certificates."),
tyagi39aa11a2016-03-07 04:47:00 -080096 cfg.StrOpt('ca_file',
tyagi39aa11a2016-03-07 04:47:00 -080097 help="CA certificate to pass for servers that have "
98 "https endpoint."),
Steve Baker450aa7f2014-08-25 10:37:27 +120099 cfg.IntOpt('build_interval',
100 default=4,
101 help="Time in seconds between build status checks."),
102 cfg.IntOpt('build_timeout',
103 default=1200,
104 help="Timeout in seconds to wait for a stack to build."),
105 cfg.StrOpt('network_for_ssh',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530106 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +1200107 help="Network used for SSH connections."),
108 cfg.StrOpt('fixed_network_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530109 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +1200110 help="Visible fixed network name "),
Pavlo Shchelokovskyy6fa23802015-03-23 11:22:35 +0000111 cfg.StrOpt('floating_network_name',
112 default='public',
113 help="Visible floating network name "),
Steve Baker0b679bb2015-03-11 13:46:42 +1300114 cfg.StrOpt('boot_config_env',
Rocky5d966f92019-06-25 12:13:25 +1000115 default=default_template,
Steve Baker0b679bb2015-03-11 13:46:42 +1300116 help="Path to environment file which defines the "
117 "resource type Heat::InstallConfigAgent. Needs to "
118 "be appropriate for the image_ref."),
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300119 cfg.StrOpt('fixed_subnet_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530120 default='heat-subnet',
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300121 help="Visible fixed sub-network name "),
Steve Baker450aa7f2014-08-25 10:37:27 +1200122 cfg.IntOpt('ssh_timeout',
123 default=300,
124 help="Timeout in seconds to wait for authentication to "
125 "succeed."),
126 cfg.IntOpt('ip_version_for_ssh',
127 default=4,
128 help="IP version used for SSH connections."),
129 cfg.IntOpt('ssh_channel_timeout',
130 default=60,
131 help="Timeout in seconds to wait for output from ssh "
132 "channel."),
Rabi Mishra477efc92015-07-31 13:01:45 +0530133 cfg.BoolOpt('skip_scenario_tests',
134 default=False,
135 help="Skip all scenario tests"),
136 cfg.BoolOpt('skip_functional_tests',
137 default=False,
138 help="Skip all functional tests"),
139 cfg.ListOpt('skip_functional_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530140 help="List of functional test class or class.method "
Zane Bitter5ea4aa42017-03-01 15:50:19 -0500141 "names to skip ex. AutoscalingGroupTest, "
Rabi Mishra94c43722015-08-12 18:39:38 +0530142 "InstanceGroupBasicTest.test_size_updates_work"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530143 cfg.ListOpt('skip_scenario_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530144 help="List of scenario test class or class.method "
145 "names to skip ex. NeutronLoadBalancerTest, "
huangtianhua422c1ba2016-06-08 15:50:39 +0800146 "AodhAlarmTest.test_alarm"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530147 cfg.ListOpt('skip_test_stack_action_list',
148 help="List of stack actions in tests to skip "
149 "ex. ABANDON, ADOPT, SUSPEND, RESUME"),
Zane Bitterf407e102017-10-05 14:19:32 -0400150 cfg.BoolOpt('convergence_engine_enabled',
151 default=True,
152 help="Test features that are only present for stacks with "
153 "convergence enabled."),
Steve Baker450aa7f2014-08-25 10:37:27 +1200154 cfg.IntOpt('volume_size',
155 default=1,
156 help='Default size in GB for volumes created by volumes tests'),
Anastasia Kuznetsova3e0ab4d2015-03-06 18:10:13 +0400157 cfg.IntOpt('connectivity_timeout',
158 default=120,
159 help="Timeout in seconds to wait for connectivity to "
160 "server."),
huangtianhua2026ac12017-01-10 14:18:43 +0800161 cfg.StrOpt('heat_config_notify_script',
Thomas Herve2ce4bda2016-01-22 17:55:55 +0100162 default=('heat-config-notify'),
163 help="Path to the script heat-config-notify"),
Pavlo Shchelokovskyy44fe49d2018-03-20 13:54:05 +0200164 cfg.StrOpt('hidden_stack_tag',
165 default='data-processing-cluster',
166 help="Tag to be considered as hidden for stack tags tests"),
ricolind7ca6022018-07-02 13:02:56 +0800167 cfg.StrOpt('credential_secret_id',
168 help="Barbican secret id which storing cloud credential in "
169 "remote site."),
Pavlo Shchelokovskyyab1725e2018-08-13 20:59:18 +0300170 cfg.BoolOpt('vm_to_heat_api_insecure',
171 default=False,
172 help="Set this to True if VM images used for tests "
173 "can not verify a (self-signed) SSL certificate "
174 "of public Heat endpoint."),
Steve Baker450aa7f2014-08-25 10:37:27 +1200175]
176
rabi876449a2018-03-15 21:56:49 +0530177heat_features_group = cfg.OptGroup(
178 name='heat_features_enabled',
179 title="Enabled Orchestration Service Features")
180
181HeatFeaturesGroup = [
182 cfg.BoolOpt('stack_cancel',
183 default=False,
ricolind7ca6022018-07-02 13:02:56 +0800184 help="If false, skip stack cancel tests"),
185 cfg.BoolOpt('multi_cloud',
186 default=False,
187 help="If false, skip multi-cloud tests for remote stack")
rabi876449a2018-03-15 21:56:49 +0530188]
189
Steve Baker450aa7f2014-08-25 10:37:27 +1200190
Thomas Hervecd3622e2014-12-17 10:36:51 +0100191def list_opts():
Steve Bakerdc769c32016-07-27 23:31:50 +0000192 yield heat_group.name, HeatGroup
rabi876449a2018-03-15 21:56:49 +0530193 yield heat_features_group.name, HeatFeaturesGroup
Steve Baker39ed19e2016-08-01 00:55:34 +0000194 yield service_available_group.name, ServiceAvailableGroup