Anton Arefiev | 6dc8279 | 2016-08-03 11:50:49 +0300 | [diff] [blame^] | 1 | # 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 | |
| 13 | from oslo_config import cfg |
| 14 | |
| 15 | from tempest import config # noqa |
| 16 | |
| 17 | |
| 18 | baremetal_introspection_group = cfg.OptGroup( |
| 19 | name="baremetal_introspection", |
| 20 | title="Baremetal introspection service options", |
| 21 | help="When enabling baremetal introspection tests," |
| 22 | "Ironic must be configured.") |
| 23 | |
| 24 | BaremetalIntrospectionGroup = [ |
| 25 | cfg.StrOpt('catalog_type', |
| 26 | default='baremetal-introspection', |
| 27 | help="Catalog type of the baremetal provisioning service"), |
| 28 | cfg.StrOpt('endpoint_type', |
| 29 | default='publicURL', |
| 30 | choices=['public', 'admin', 'internal', |
| 31 | 'publicURL', 'adminURL', 'internalURL'], |
| 32 | help="The endpoint type to use for the baremetal introspection" |
| 33 | " service"), |
| 34 | cfg.IntOpt('introspection_sleep', |
| 35 | default=30, |
| 36 | help="Introspection sleep before check status"), |
| 37 | cfg.IntOpt('introspection_timeout', |
| 38 | default=600, |
| 39 | help="Introspection time out"), |
| 40 | cfg.IntOpt('hypervisor_update_sleep', |
| 41 | default=60, |
| 42 | help="Time to wait until nova becomes aware of " |
| 43 | "bare metal instances"), |
| 44 | cfg.IntOpt('hypervisor_update_timeout', |
| 45 | default=300, |
| 46 | help="Time out for wait until nova becomes aware of " |
| 47 | "bare metal instances"), |
| 48 | # NOTE(aarefiev): status_check_period default is 60s, but checking |
| 49 | # node state takes some time(API call), so races appear here, |
| 50 | # 80s would be enough to make one more check. |
| 51 | cfg.IntOpt('ironic_sync_timeout', |
| 52 | default=80, |
| 53 | help="Time it might take for Ironic--Inspector " |
| 54 | "sync to happen"), |
| 55 | ] |