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 | |
Nishant Kumar | 6fcbdd7 | 2016-10-10 13:27:10 +0530 | [diff] [blame] | 15 | service_option = cfg.BoolOpt("ironic-inspector", |
| 16 | default=True, |
| 17 | help="Whether or not ironic-inspector is expected" |
| 18 | " to be available") |
Anton Arefiev | 6dc8279 | 2016-08-03 11:50:49 +0300 | [diff] [blame] | 19 | |
| 20 | baremetal_introspection_group = cfg.OptGroup( |
| 21 | name="baremetal_introspection", |
| 22 | title="Baremetal introspection service options", |
| 23 | help="When enabling baremetal introspection tests," |
| 24 | "Ironic must be configured.") |
| 25 | |
| 26 | BaremetalIntrospectionGroup = [ |
| 27 | cfg.StrOpt('catalog_type', |
| 28 | default='baremetal-introspection', |
| 29 | help="Catalog type of the baremetal provisioning service"), |
| 30 | cfg.StrOpt('endpoint_type', |
| 31 | default='publicURL', |
| 32 | choices=['public', 'admin', 'internal', |
| 33 | 'publicURL', 'adminURL', 'internalURL'], |
| 34 | help="The endpoint type to use for the baremetal introspection" |
| 35 | " service"), |
| 36 | cfg.IntOpt('introspection_sleep', |
| 37 | default=30, |
| 38 | help="Introspection sleep before check status"), |
| 39 | cfg.IntOpt('introspection_timeout', |
| 40 | default=600, |
| 41 | help="Introspection time out"), |
| 42 | cfg.IntOpt('hypervisor_update_sleep', |
| 43 | default=60, |
| 44 | help="Time to wait until nova becomes aware of " |
| 45 | "bare metal instances"), |
| 46 | cfg.IntOpt('hypervisor_update_timeout', |
| 47 | default=300, |
| 48 | help="Time out for wait until nova becomes aware of " |
| 49 | "bare metal instances"), |
| 50 | # NOTE(aarefiev): status_check_period default is 60s, but checking |
| 51 | # node state takes some time(API call), so races appear here, |
| 52 | # 80s would be enough to make one more check. |
| 53 | cfg.IntOpt('ironic_sync_timeout', |
| 54 | default=80, |
| 55 | help="Time it might take for Ironic--Inspector " |
| 56 | "sync to happen"), |
Anton Arefiev | 6b00356 | 2016-09-13 12:17:29 +0300 | [diff] [blame] | 57 | cfg.IntOpt('discovery_timeout', |
| 58 | default=300, |
| 59 | help="Time to wait until new node would enrolled in " |
| 60 | "ironic"), |
| 61 | cfg.BoolOpt('auto_discovery_feature', |
| 62 | default=False, |
| 63 | help="Is the auto-discovery feature enabled. Enroll hook " |
| 64 | "should be specified in node_not_found_hook - processing " |
| 65 | "section of inspector.conf"), |
Anton Arefiev | 6dc8279 | 2016-08-03 11:50:49 +0300 | [diff] [blame] | 66 | ] |