Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 1 | # Copyright 2015 NEC Corporation |
| 2 | # All Rights Reserved. |
| 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 | from oslo_config import cfg |
| 17 | |
| 18 | from tempest import config # noqa |
| 19 | |
| 20 | |
Jim Rollenhagen | 1c11bdf | 2016-11-29 16:57:30 -0500 | [diff] [blame] | 21 | service_option = cfg.BoolOpt('ironic', |
| 22 | default=False, |
| 23 | help='Whether or not Ironic is expected to be ' |
| 24 | 'available') |
| 25 | |
| 26 | |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 27 | baremetal_group = cfg.OptGroup(name='baremetal', |
| 28 | title='Baremetal provisioning service options', |
| 29 | help='When enabling baremetal tests, Nova ' |
| 30 | 'must be configured to use the Ironic ' |
| 31 | 'driver. The following parameters for the ' |
| 32 | '[compute] section must be disabled: ' |
| 33 | 'console_output, interface_attach, ' |
| 34 | 'live_migration, pause, rescue, resize, ' |
| 35 | 'shelve, snapshot, and suspend') |
| 36 | |
Vasyl Saienko | f46b9fa | 2017-02-23 13:06:56 -0500 | [diff] [blame^] | 37 | baremetal_features_group = cfg.OptGroup( |
| 38 | name='baremetal_feature_enabled', |
| 39 | title="Enabled Baremetal Service Features") |
| 40 | |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 41 | BaremetalGroup = [ |
Thiago Paiva | a776093 | 2016-08-15 15:23:30 -0300 | [diff] [blame] | 42 | cfg.StrOpt('catalog_type', |
| 43 | default='baremetal', |
| 44 | help="Catalog type of the baremetal provisioning service"), |
| 45 | cfg.StrOpt('driver', |
| 46 | default='fake', |
| 47 | help="Driver name which Ironic uses"), |
| 48 | cfg.StrOpt('endpoint_type', |
| 49 | default='publicURL', |
| 50 | choices=['public', 'admin', 'internal', |
| 51 | 'publicURL', 'adminURL', 'internalURL'], |
| 52 | help="The endpoint type to use for the baremetal provisioning" |
| 53 | " service"), |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 54 | cfg.IntOpt('deploywait_timeout', |
| 55 | default=15, |
| 56 | help="Timeout for Ironic node to reach the " |
| 57 | "wait-callback state after powering on."), |
Thiago Paiva | a776093 | 2016-08-15 15:23:30 -0300 | [diff] [blame] | 58 | cfg.IntOpt('active_timeout', |
| 59 | default=300, |
| 60 | help="Timeout for Ironic node to completely provision"), |
| 61 | cfg.IntOpt('association_timeout', |
| 62 | default=30, |
| 63 | help="Timeout for association of Nova instance and Ironic " |
| 64 | "node"), |
| 65 | cfg.IntOpt('power_timeout', |
| 66 | default=60, |
| 67 | help="Timeout for Ironic power transitions."), |
| 68 | cfg.IntOpt('unprovision_timeout', |
| 69 | default=300, |
| 70 | help="Timeout for unprovisioning an Ironic node. " |
| 71 | "Takes longer since Kilo as Ironic performs an extra " |
| 72 | "step in Node cleaning."), |
Yuiko Takada | ff78500 | 2015-12-17 15:56:42 +0900 | [diff] [blame] | 73 | cfg.StrOpt('min_microversion', |
Yuiko Takada | ff78500 | 2015-12-17 15:56:42 +0900 | [diff] [blame] | 74 | help="Lower version of the test target microversion range. " |
| 75 | "The format is 'X.Y', where 'X' and 'Y' are int values. " |
| 76 | "Tempest selects tests based on the range between " |
| 77 | "min_microversion and max_microversion. " |
| 78 | "If both values are None, Tempest avoids tests which " |
| 79 | "require a microversion."), |
| 80 | cfg.StrOpt('max_microversion', |
| 81 | default='latest', |
| 82 | help="Upper version of the test target microversion range. " |
| 83 | "The format is 'X.Y', where 'X' and 'Y' are int values. " |
| 84 | "Tempest selects tests based on the range between " |
| 85 | "min_microversion and max_microversion. " |
| 86 | "If both values are None, Tempest avoids tests which " |
| 87 | "require a microversion."), |
Yuriy Yekovenko | eb612d9 | 2016-01-18 17:49:47 +0200 | [diff] [blame] | 88 | cfg.BoolOpt('use_provision_network', |
| 89 | default=False, |
Vasyl Saienko | 4ddbeec | 2017-01-20 16:26:04 +0000 | [diff] [blame] | 90 | help="Whether the Ironic/Neutron tenant isolation is enabled"), |
| 91 | cfg.StrOpt('whole_disk_image_ref', |
| 92 | help="UUID of the wholedisk image to use in the tests."), |
Vasyl Saienko | f46b9fa | 2017-02-23 13:06:56 -0500 | [diff] [blame^] | 93 | cfg.StrOpt('whole_disk_image_url', |
| 94 | help="An http link to the wholedisk image to use in the " |
| 95 | "tests."), |
| 96 | cfg.StrOpt('whole_disk_image_checksum', |
| 97 | help="An MD5 checksum of the image."), |
Vasyl Saienko | 4ddbeec | 2017-01-20 16:26:04 +0000 | [diff] [blame] | 98 | cfg.StrOpt('partition_image_ref', |
| 99 | help="UUID of the partitioned image to use in the tests."), |
| 100 | cfg.ListOpt('enabled_drivers', |
| 101 | default=['fake', 'pxe_ipmitool', 'agent_ipmitool'], |
| 102 | help="List of Ironic enabled drivers."), |
| 103 | cfg.ListOpt('enabled_hardware_types', |
| 104 | default=['ipmi'], |
| 105 | help="List of Ironic enabled hardware types."), |
| 106 | cfg.IntOpt('adjusted_root_disk_size_gb', |
| 107 | min=0, |
| 108 | help="Ironic adjusted disk size to use in the standalone tests " |
| 109 | "as instance_info/root_gb value."), |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 110 | ] |
Vasyl Saienko | f46b9fa | 2017-02-23 13:06:56 -0500 | [diff] [blame^] | 111 | |
| 112 | BaremetalFeaturesGroup = [ |
| 113 | cfg.BoolOpt('ipxe_enabled', |
| 114 | default=True, |
| 115 | help="Defines if IPXE is enabled"), |
| 116 | ] |