blob: fae6ebb9d784acffda74b8b6c64103943b2256ca [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
Steve Baker39ed19e2016-08-01 00:55:34 +000015service_available_group = cfg.OptGroup(name="service_available",
16 title="Available OpenStack Services")
17
18ServiceAvailableGroup = [
ghanshyama8b59112018-11-26 09:24:38 +000019 cfg.BoolOpt("heat",
Steve Baker39ed19e2016-08-01 00:55:34 +000020 default=True,
ghanshyama8b59112018-11-26 09:24:38 +000021 help="Whether or not heat is expected to be available",
22 deprecated_opts=[cfg.DeprecatedOpt(
23 'heat_plugin',
24 group='service_available')]),
Steve Baker39ed19e2016-08-01 00:55:34 +000025]
Steve Baker450aa7f2014-08-25 10:37:27 +120026
rabif89752b2017-11-18 22:14:30 +053027heat_group = cfg.OptGroup(name="heat_plugin",
Steve Bakerdc769c32016-07-27 23:31:50 +000028 title="Heat Service Options")
Steve Baker450aa7f2014-08-25 10:37:27 +120029
Steve Bakerdc769c32016-07-27 23:31:50 +000030HeatGroup = [
31 cfg.StrOpt("catalog_type",
32 default="orchestration",
33 help="Catalog type of the orchestration service."),
Steve Baker450aa7f2014-08-25 10:37:27 +120034 cfg.StrOpt('username',
Rakesh H Sa286a132016-02-18 18:54:00 +053035 help="Username to use for non admin API requests."),
Steve Baker450aa7f2014-08-25 10:37:27 +120036 cfg.StrOpt('password',
Rakesh H Sa286a132016-02-18 18:54:00 +053037 help="Non admin API key to use when authenticating.",
38 secret=True),
39 cfg.StrOpt('admin_username',
40 help="Username to use for admin API requests."),
41 cfg.StrOpt('admin_password',
42 help="Admin API key to use when authentication.",
Steve Baker450aa7f2014-08-25 10:37:27 +120043 secret=True),
rabibe38c302017-04-11 09:54:07 +053044 cfg.StrOpt('project_name',
45 help="Project name to use for API requests.",
rabid2916d02017-09-22 18:19:24 +053046 deprecated_opts=[cfg.DeprecatedOpt(
rabif89752b2017-11-18 22:14:30 +053047 'tenant_name', group='heat_plugin')]),
rabibe38c302017-04-11 09:54:07 +053048 cfg.StrOpt('admin_project_name',
rabifd98a472016-05-24 10:18:33 +053049 default='admin',
rabibe38c302017-04-11 09:54:07 +053050 help="Admin project name to use for admin API requests.",
rabid2916d02017-09-22 18:19:24 +053051 deprecated_opts=[cfg.DeprecatedOpt(
rabif89752b2017-11-18 22:14:30 +053052 'admin_tenant_name', group='heat_plugin')]),
Steve Baker450aa7f2014-08-25 10:37:27 +120053 cfg.StrOpt('auth_url',
rabi8fcf1922017-04-19 09:21:54 +053054 help="Full URI of the OpenStack Identity API (Keystone)."),
55 cfg.StrOpt('auth_version',
56 help="OpenStack Identity API version."),
Rabi Mishra1d538742016-03-21 21:09:20 +053057 cfg.StrOpt('user_domain_name',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050058 help="User domain name, if keystone v3 auth_url "
Rabi Mishra1d538742016-03-21 21:09:20 +053059 "is used"),
60 cfg.StrOpt('project_domain_name',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050061 help="Project domain name, if keystone v3 auth_url "
Rabi Mishra65493fb2016-01-29 22:23:21 +053062 "is used"),
rabi133ee5f2016-12-01 09:54:37 +053063 cfg.StrOpt('user_domain_id',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050064 help="User domain id, if keystone v3 auth_url "
rabi133ee5f2016-12-01 09:54:37 +053065 "is used"),
66 cfg.StrOpt('project_domain_id',
Zane Bitter5ea4aa42017-03-01 15:50:19 -050067 help="Project domain id, if keystone v3 auth_url "
rabi133ee5f2016-12-01 09:54:37 +053068 "is used"),
Steve Baker450aa7f2014-08-25 10:37:27 +120069 cfg.StrOpt('region',
Rabi Mishra65493fb2016-01-29 22:23:21 +053070 help="The region name to use"),
Colleen Murphy30b1fd62017-12-29 12:43:53 +010071 cfg.StrOpt('endpoint_type',
72 default='public',
73 choices=['public', 'admin', 'internal'],
74 help="The endpoint type to use for the orchestration service."),
Steve Baker450aa7f2014-08-25 10:37:27 +120075 cfg.StrOpt('instance_type',
Steve Baker450aa7f2014-08-25 10:37:27 +120076 help="Instance type for tests. Needs to be big enough for a "
77 "full OS plus the test workload"),
Pavlo Shchelokovskyy46e5cb22015-03-23 12:01:25 +000078 cfg.StrOpt('minimal_instance_type',
79 help="Instance type enough for simplest cases."),
Steve Baker450aa7f2014-08-25 10:37:27 +120080 cfg.StrOpt('image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120081 help="Name of image to use for tests which boot servers."),
82 cfg.StrOpt('keypair_name',
Steve Baker450aa7f2014-08-25 10:37:27 +120083 help="Name of existing keypair to launch servers with."),
84 cfg.StrOpt('minimal_image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120085 help="Name of minimal (e.g cirros) image to use when "
86 "launching test instances."),
Steve Baker450aa7f2014-08-25 10:37:27 +120087 cfg.BoolOpt('disable_ssl_certificate_validation',
88 default=False,
89 help="Set to True if using self-signed SSL certificates."),
tyagi39aa11a2016-03-07 04:47:00 -080090 cfg.StrOpt('ca_file',
tyagi39aa11a2016-03-07 04:47:00 -080091 help="CA certificate to pass for servers that have "
92 "https endpoint."),
Steve Baker450aa7f2014-08-25 10:37:27 +120093 cfg.IntOpt('build_interval',
94 default=4,
95 help="Time in seconds between build status checks."),
96 cfg.IntOpt('build_timeout',
97 default=1200,
98 help="Timeout in seconds to wait for a stack to build."),
99 cfg.StrOpt('network_for_ssh',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530100 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +1200101 help="Network used for SSH connections."),
102 cfg.StrOpt('fixed_network_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530103 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +1200104 help="Visible fixed network name "),
Pavlo Shchelokovskyy6fa23802015-03-23 11:22:35 +0000105 cfg.StrOpt('floating_network_name',
106 default='public',
107 help="Visible floating network name "),
Steve Baker0b679bb2015-03-11 13:46:42 +1300108 cfg.StrOpt('boot_config_env',
rabid2916d02017-09-22 18:19:24 +0530109 default=('heat_tempest_plugin/tests/scenario/templates'
Steve Baker803f1502015-03-11 13:47:08 +1300110 '/boot_config_none_env.yaml'),
Steve Baker0b679bb2015-03-11 13:46:42 +1300111 help="Path to environment file which defines the "
112 "resource type Heat::InstallConfigAgent. Needs to "
113 "be appropriate for the image_ref."),
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300114 cfg.StrOpt('fixed_subnet_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530115 default='heat-subnet',
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300116 help="Visible fixed sub-network name "),
Steve Baker450aa7f2014-08-25 10:37:27 +1200117 cfg.IntOpt('ssh_timeout',
118 default=300,
119 help="Timeout in seconds to wait for authentication to "
120 "succeed."),
121 cfg.IntOpt('ip_version_for_ssh',
122 default=4,
123 help="IP version used for SSH connections."),
124 cfg.IntOpt('ssh_channel_timeout',
125 default=60,
126 help="Timeout in seconds to wait for output from ssh "
127 "channel."),
Rabi Mishra477efc92015-07-31 13:01:45 +0530128 cfg.BoolOpt('skip_scenario_tests',
129 default=False,
130 help="Skip all scenario tests"),
131 cfg.BoolOpt('skip_functional_tests',
132 default=False,
133 help="Skip all functional tests"),
134 cfg.ListOpt('skip_functional_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530135 help="List of functional test class or class.method "
Zane Bitter5ea4aa42017-03-01 15:50:19 -0500136 "names to skip ex. AutoscalingGroupTest, "
Rabi Mishra94c43722015-08-12 18:39:38 +0530137 "InstanceGroupBasicTest.test_size_updates_work"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530138 cfg.ListOpt('skip_scenario_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530139 help="List of scenario test class or class.method "
140 "names to skip ex. NeutronLoadBalancerTest, "
huangtianhua422c1ba2016-06-08 15:50:39 +0800141 "AodhAlarmTest.test_alarm"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530142 cfg.ListOpt('skip_test_stack_action_list',
143 help="List of stack actions in tests to skip "
144 "ex. ABANDON, ADOPT, SUSPEND, RESUME"),
Zane Bitterf407e102017-10-05 14:19:32 -0400145 cfg.BoolOpt('convergence_engine_enabled',
146 default=True,
147 help="Test features that are only present for stacks with "
148 "convergence enabled."),
Steve Baker450aa7f2014-08-25 10:37:27 +1200149 cfg.IntOpt('volume_size',
150 default=1,
151 help='Default size in GB for volumes created by volumes tests'),
Anastasia Kuznetsova3e0ab4d2015-03-06 18:10:13 +0400152 cfg.IntOpt('connectivity_timeout',
153 default=120,
154 help="Timeout in seconds to wait for connectivity to "
155 "server."),
huangtianhua2026ac12017-01-10 14:18:43 +0800156 cfg.StrOpt('heat_config_notify_script',
Thomas Herve2ce4bda2016-01-22 17:55:55 +0100157 default=('heat-config-notify'),
158 help="Path to the script heat-config-notify"),
Pavlo Shchelokovskyy44fe49d2018-03-20 13:54:05 +0200159 cfg.StrOpt('hidden_stack_tag',
160 default='data-processing-cluster',
161 help="Tag to be considered as hidden for stack tags tests"),
Steve Baker450aa7f2014-08-25 10:37:27 +1200162]
163
rabi876449a2018-03-15 21:56:49 +0530164heat_features_group = cfg.OptGroup(
165 name='heat_features_enabled',
166 title="Enabled Orchestration Service Features")
167
168HeatFeaturesGroup = [
169 cfg.BoolOpt('stack_cancel',
170 default=False,
171 help="If false, skip stack cancel tests")
172]
173
Steve Baker450aa7f2014-08-25 10:37:27 +1200174
Thomas Hervecd3622e2014-12-17 10:36:51 +0100175def list_opts():
Steve Bakerdc769c32016-07-27 23:31:50 +0000176 yield heat_group.name, HeatGroup
rabi876449a2018-03-15 21:56:49 +0530177 yield heat_features_group.name, HeatFeaturesGroup
Steve Baker39ed19e2016-08-01 00:55:34 +0000178 yield service_available_group.name, ServiceAvailableGroup