blob: 7b09e903721f37f46b5908f9b868a85ac38dab6c [file] [log] [blame]
Anton Arefiev6dc82792016-08-03 11:50:49 +03001# 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
13from oslo_config import cfg
14
15from tempest import config # noqa
16
AvnishPal8a7942e2016-08-23 16:11:44 +053017service_available_group = cfg.OptGroup(name="service_available",
18 title="Available OpenStack Services")
19
20ServiceAvailableGroup = [
21 cfg.BoolOpt("ironic-inspector",
22 default=True,
23 help="Whether or not ironic-inspector is expected to be"
24 " available"),
25]
Anton Arefiev6dc82792016-08-03 11:50:49 +030026
27baremetal_introspection_group = cfg.OptGroup(
28 name="baremetal_introspection",
29 title="Baremetal introspection service options",
30 help="When enabling baremetal introspection tests,"
31 "Ironic must be configured.")
32
33BaremetalIntrospectionGroup = [
34 cfg.StrOpt('catalog_type',
35 default='baremetal-introspection',
36 help="Catalog type of the baremetal provisioning service"),
37 cfg.StrOpt('endpoint_type',
38 default='publicURL',
39 choices=['public', 'admin', 'internal',
40 'publicURL', 'adminURL', 'internalURL'],
41 help="The endpoint type to use for the baremetal introspection"
42 " service"),
43 cfg.IntOpt('introspection_sleep',
44 default=30,
45 help="Introspection sleep before check status"),
46 cfg.IntOpt('introspection_timeout',
47 default=600,
48 help="Introspection time out"),
49 cfg.IntOpt('hypervisor_update_sleep',
50 default=60,
51 help="Time to wait until nova becomes aware of "
52 "bare metal instances"),
53 cfg.IntOpt('hypervisor_update_timeout',
54 default=300,
55 help="Time out for wait until nova becomes aware of "
56 "bare metal instances"),
57 # NOTE(aarefiev): status_check_period default is 60s, but checking
58 # node state takes some time(API call), so races appear here,
59 # 80s would be enough to make one more check.
60 cfg.IntOpt('ironic_sync_timeout',
61 default=80,
62 help="Time it might take for Ironic--Inspector "
63 "sync to happen"),
64]