blob: c722b97b8fb6a553a5e62ef5d5ea03337f0a6891 [file] [log] [blame]
Jude Cross638c4ef2017-07-24 14:57:20 -07001# Copyright 2016 Rackspace Inc.
2# Copyright 2017 Catalyst IT Ltd
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
16
17from oslo_config import cfg
18
19
20service_option = cfg.BoolOpt(
21 'loadbalancer',
22 default=True,
23 help="Whether or not loadbalancing service is expected to be available"
24)
25
26octavia_group = cfg.OptGroup(name='loadbalancer',
27 title='Loadbalancing Service Options')
28
29OctaviaGroup = [
30 cfg.StrOpt("region",
31 default="",
32 help="The region name to use. If empty, the value "
33 "of identity.region is used instead. If no such region "
34 "is found in the service catalog, the first found one is "
35 "used."),
36 cfg.StrOpt('catalog_type',
37 default='load-balancer',
38 help='Catalog type of the Octavia service.'),
39 cfg.StrOpt('endpoint_type',
40 default='publicURL',
41 choices=['public', 'admin', 'internal',
42 'publicURL', 'adminURL', 'internalURL'],
43 help="The endpoint type to use for the Octavia service."),
44 cfg.IntOpt('build_interval',
45 default=5,
46 help='Time in seconds between build status checks for '
47 'non-loadbalancer resources to build'),
48 cfg.IntOpt('build_timeout',
49 default=30,
50 help='Timeout in seconds to wait for non-loadbalancer '
51 'resources to build'),
52 cfg.IntOpt('lb_build_interval',
53 default=10,
54 help='Time in seconds between build status checks for a '
55 'loadbalancer.'),
56 cfg.IntOpt('lb_build_timeout',
57 default=900,
58 help='Timeout in seconds to wait for a '
59 'loadbalancer to build.'),
Jude Cross638c4ef2017-07-24 14:57:20 -070060 cfg.StrOpt('premade_server_ip',
61 default=None,
62 help='IP of the premade server.'),
63 cfg.StrOpt('premade_server_subnet_id',
64 default=None,
65 help='Subnet ID of the premade server.'),
66 cfg.StrOpt('vip_network_id',
67 default=None,
68 help='Existing network ID to use for loadbalancer.'),
69 cfg.StrOpt('vip_subnet_id',
70 default=None,
71 help='Existing subnet ID to use for loadbalancer.'),
72 cfg.IntOpt('random_server_name_length',
73 default=0,
74 help='If non-zero, generate a random name of the length '
75 'provided for each server, in the format "m[A-Z0-9]*". '),
76 cfg.StrOpt('availability_zone',
77 default=None,
78 help='Availability zone to use for creating servers.'),
79 cfg.StrOpt('member_role',
80 default='load-balancer_member',
81 help="Role to add to users created for octavia tests."),
ZhaoBo2a69ad02017-12-22 17:19:56 +080082 cfg.StrOpt('vip_qos_policy_id',
83 default=None,
84 help='Existing QoS Policy ID in neutron to use for'
85 'loadbalancer.')
Jude Cross638c4ef2017-07-24 14:57:20 -070086]