blob: 4aa7e67fee65c131110cc7298c2eb0f7e17a5d1e [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 Bakerae90e132016-08-13 09:53:07 +120015CONF = None
Steve Baker21904b52016-08-01 00:36:02 +000016
Steve Baker39ed19e2016-08-01 00:55:34 +000017service_available_group = cfg.OptGroup(name="service_available",
18 title="Available OpenStack Services")
19
20ServiceAvailableGroup = [
21 cfg.BoolOpt("heat_plugin",
22 default=True,
23 help="Whether or not heat is expected to be available"),
24]
Steve Baker450aa7f2014-08-25 10:37:27 +120025
Steve Bakerdc769c32016-07-27 23:31:50 +000026heat_group = cfg.OptGroup(name="heat_plugin",
27 title="Heat Service Options")
Steve Baker450aa7f2014-08-25 10:37:27 +120028
Steve Bakerdc769c32016-07-27 23:31:50 +000029HeatGroup = [
30 cfg.StrOpt("catalog_type",
31 default="orchestration",
32 help="Catalog type of the orchestration service."),
Steve Baker450aa7f2014-08-25 10:37:27 +120033 cfg.StrOpt('username',
Rakesh H Sa286a132016-02-18 18:54:00 +053034 help="Username to use for non admin API requests."),
Steve Baker450aa7f2014-08-25 10:37:27 +120035 cfg.StrOpt('password',
Rakesh H Sa286a132016-02-18 18:54:00 +053036 help="Non admin API key to use when authenticating.",
37 secret=True),
38 cfg.StrOpt('admin_username',
39 help="Username to use for admin API requests."),
40 cfg.StrOpt('admin_password',
41 help="Admin API key to use when authentication.",
Steve Baker450aa7f2014-08-25 10:37:27 +120042 secret=True),
43 cfg.StrOpt('tenant_name',
Steve Baker450aa7f2014-08-25 10:37:27 +120044 help="Tenant name to use for API requests."),
rabifd98a472016-05-24 10:18:33 +053045 cfg.StrOpt('admin_tenant_name',
46 default='admin',
47 help="Admin tenant name to use for admin API requests."),
Steve Baker450aa7f2014-08-25 10:37:27 +120048 cfg.StrOpt('auth_url',
Rabi Mishra65493fb2016-01-29 22:23:21 +053049 help="Full URI of the OpenStack Identity API (Keystone)"),
Rabi Mishra1d538742016-03-21 21:09:20 +053050 cfg.StrOpt('user_domain_name',
Rabi Mishra1d538742016-03-21 21:09:20 +053051 help="User domain name, if keystone v3 auth_url"
52 "is used"),
53 cfg.StrOpt('project_domain_name',
Rabi Mishra1d538742016-03-21 21:09:20 +053054 help="Project domain name, if keystone v3 auth_url"
Rabi Mishra65493fb2016-01-29 22:23:21 +053055 "is used"),
rabi133ee5f2016-12-01 09:54:37 +053056 cfg.StrOpt('user_domain_id',
57 help="User domain id, if keystone v3 auth_url"
58 "is used"),
59 cfg.StrOpt('project_domain_id',
60 help="Project domain id, if keystone v3 auth_url"
61 "is used"),
Steve Baker450aa7f2014-08-25 10:37:27 +120062 cfg.StrOpt('region',
Rabi Mishra65493fb2016-01-29 22:23:21 +053063 help="The region name to use"),
Steve Baker450aa7f2014-08-25 10:37:27 +120064 cfg.StrOpt('instance_type',
Steve Baker450aa7f2014-08-25 10:37:27 +120065 help="Instance type for tests. Needs to be big enough for a "
66 "full OS plus the test workload"),
Pavlo Shchelokovskyy46e5cb22015-03-23 12:01:25 +000067 cfg.StrOpt('minimal_instance_type',
68 help="Instance type enough for simplest cases."),
Steve Baker450aa7f2014-08-25 10:37:27 +120069 cfg.StrOpt('image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120070 help="Name of image to use for tests which boot servers."),
71 cfg.StrOpt('keypair_name',
Steve Baker450aa7f2014-08-25 10:37:27 +120072 help="Name of existing keypair to launch servers with."),
73 cfg.StrOpt('minimal_image_ref',
Steve Baker450aa7f2014-08-25 10:37:27 +120074 help="Name of minimal (e.g cirros) image to use when "
75 "launching test instances."),
Steve Baker450aa7f2014-08-25 10:37:27 +120076 cfg.BoolOpt('disable_ssl_certificate_validation',
77 default=False,
78 help="Set to True if using self-signed SSL certificates."),
tyagi39aa11a2016-03-07 04:47:00 -080079 cfg.StrOpt('ca_file',
tyagi39aa11a2016-03-07 04:47:00 -080080 help="CA certificate to pass for servers that have "
81 "https endpoint."),
Steve Baker450aa7f2014-08-25 10:37:27 +120082 cfg.IntOpt('build_interval',
83 default=4,
84 help="Time in seconds between build status checks."),
85 cfg.IntOpt('build_timeout',
86 default=1200,
87 help="Timeout in seconds to wait for a stack to build."),
88 cfg.StrOpt('network_for_ssh',
Rabi Mishraec4b03b2015-05-23 02:20:47 +053089 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +120090 help="Network used for SSH connections."),
91 cfg.StrOpt('fixed_network_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +053092 default='heat-net',
Steve Baker450aa7f2014-08-25 10:37:27 +120093 help="Visible fixed network name "),
Pavlo Shchelokovskyy6fa23802015-03-23 11:22:35 +000094 cfg.StrOpt('floating_network_name',
95 default='public',
96 help="Visible floating network name "),
Steve Baker0b679bb2015-03-11 13:46:42 +130097 cfg.StrOpt('boot_config_env',
Steve Baker803f1502015-03-11 13:47:08 +130098 default=('heat_integrationtests/scenario/templates'
99 '/boot_config_none_env.yaml'),
Steve Baker0b679bb2015-03-11 13:46:42 +1300100 help="Path to environment file which defines the "
101 "resource type Heat::InstallConfigAgent. Needs to "
102 "be appropriate for the image_ref."),
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300103 cfg.StrOpt('fixed_subnet_name',
Rabi Mishraec4b03b2015-05-23 02:20:47 +0530104 default='heat-subnet',
kairat_kushaev0ab3d7c2015-01-27 21:48:46 +0300105 help="Visible fixed sub-network name "),
Steve Baker450aa7f2014-08-25 10:37:27 +1200106 cfg.IntOpt('ssh_timeout',
107 default=300,
108 help="Timeout in seconds to wait for authentication to "
109 "succeed."),
110 cfg.IntOpt('ip_version_for_ssh',
111 default=4,
112 help="IP version used for SSH connections."),
113 cfg.IntOpt('ssh_channel_timeout',
114 default=60,
115 help="Timeout in seconds to wait for output from ssh "
116 "channel."),
117 cfg.IntOpt('tenant_network_mask_bits',
118 default=28,
119 help="The mask bits for tenant ipv4 subnets"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530120 cfg.BoolOpt('skip_scenario_tests',
121 default=False,
122 help="Skip all scenario tests"),
123 cfg.BoolOpt('skip_functional_tests',
124 default=False,
125 help="Skip all functional tests"),
126 cfg.ListOpt('skip_functional_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530127 help="List of functional test class or class.method "
128 "names to skip ex. AutoscalingGroupTest,"
129 "InstanceGroupBasicTest.test_size_updates_work"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530130 cfg.ListOpt('skip_scenario_test_list',
Rabi Mishra94c43722015-08-12 18:39:38 +0530131 help="List of scenario test class or class.method "
132 "names to skip ex. NeutronLoadBalancerTest, "
huangtianhua422c1ba2016-06-08 15:50:39 +0800133 "AodhAlarmTest.test_alarm"),
Rabi Mishra477efc92015-07-31 13:01:45 +0530134 cfg.ListOpt('skip_test_stack_action_list',
135 help="List of stack actions in tests to skip "
136 "ex. ABANDON, ADOPT, SUSPEND, RESUME"),
Steve Baker450aa7f2014-08-25 10:37:27 +1200137 cfg.IntOpt('volume_size',
138 default=1,
139 help='Default size in GB for volumes created by volumes tests'),
Anastasia Kuznetsova3e0ab4d2015-03-06 18:10:13 +0400140 cfg.IntOpt('connectivity_timeout',
141 default=120,
142 help="Timeout in seconds to wait for connectivity to "
143 "server."),
Oleksii Chuprykov4be023a2015-07-08 07:17:08 -0400144 cfg.IntOpt('sighup_timeout',
rabicfffc832016-07-28 12:15:32 +0530145 default=120,
Oleksii Chuprykov4be023a2015-07-08 07:17:08 -0400146 help="Timeout in seconds to wait for adding or removing child"
Thomas Herve2ce4bda2016-01-22 17:55:55 +0100147 "process after receiving of sighup signal"),
Peter Razumovsky483e64b2016-03-04 17:04:28 +0300148 cfg.IntOpt('sighup_config_edit_retries',
149 default=10,
150 help='Count of retries to edit config file during sighup. If '
151 'another worker already edit config file, file can be '
152 'busy, so need to wait and try edit file again.'),
Thomas Herve2ce4bda2016-01-22 17:55:55 +0100153 cfg.StrOpt('heat-config-notify-script',
154 default=('heat-config-notify'),
155 help="Path to the script heat-config-notify"),
Rabi Mishra65493fb2016-01-29 22:23:21 +0530156
Steve Baker450aa7f2014-08-25 10:37:27 +1200157]
158
159
Thomas Hervecd3622e2014-12-17 10:36:51 +0100160def list_opts():
Steve Bakerdc769c32016-07-27 23:31:50 +0000161 yield heat_group.name, HeatGroup
Steve Baker39ed19e2016-08-01 00:55:34 +0000162 yield service_available_group.name, ServiceAvailableGroup