blob: 36cb5ba8f0f3758ea979bec0f4e10980805c4589 [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.'),
60 cfg.BoolOpt('premade_server',
61 default=False,
62 help='Allows us to use an already provisioned server to test '
63 'loadbalancing.'),
64 cfg.StrOpt('premade_server_ip',
65 default=None,
66 help='IP of the premade server.'),
67 cfg.StrOpt('premade_server_subnet_id',
68 default=None,
69 help='Subnet ID of the premade server.'),
70 cfg.StrOpt('vip_network_id',
71 default=None,
72 help='Existing network ID to use for loadbalancer.'),
73 cfg.StrOpt('vip_subnet_id',
74 default=None,
75 help='Existing subnet ID to use for loadbalancer.'),
76 cfg.IntOpt('random_server_name_length',
77 default=0,
78 help='If non-zero, generate a random name of the length '
79 'provided for each server, in the format "m[A-Z0-9]*". '),
80 cfg.StrOpt('availability_zone',
81 default=None,
82 help='Availability zone to use for creating servers.'),
83 cfg.StrOpt('member_role',
84 default='load-balancer_member',
85 help="Role to add to users created for octavia tests."),
86]