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 | |
| 21 | baremetal_group = cfg.OptGroup(name='baremetal', |
| 22 | title='Baremetal provisioning service options', |
| 23 | help='When enabling baremetal tests, Nova ' |
| 24 | 'must be configured to use the Ironic ' |
| 25 | 'driver. The following parameters for the ' |
| 26 | '[compute] section must be disabled: ' |
| 27 | 'console_output, interface_attach, ' |
| 28 | 'live_migration, pause, rescue, resize, ' |
| 29 | 'shelve, snapshot, and suspend') |
| 30 | |
Mauro S. M. Rodrigues | 27cbcee | 2016-02-03 14:14:58 -0500 | [diff] [blame] | 31 | # NOTE(maurosr): Until liberty-eol we need to keep config options and tests |
| 32 | # on tempest's tree to test stable branches and thus we have to comment the |
| 33 | # options bellow to avoid duplication. Only new options should live here. |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 34 | BaremetalGroup = [ |
Mauro S. M. Rodrigues | 27cbcee | 2016-02-03 14:14:58 -0500 | [diff] [blame] | 35 | # cfg.StrOpt('catalog_type', |
| 36 | # default='baremetal', |
| 37 | # help="Catalog type of the baremetal provisioning service"), |
| 38 | # cfg.BoolOpt('driver_enabled', |
| 39 | # default=True, |
| 40 | # help="Whether the Ironic nova-compute driver is enabled"), |
| 41 | # cfg.StrOpt('driver', |
| 42 | # default='fake', |
| 43 | # help="Driver name which Ironic uses"), |
| 44 | # cfg.StrOpt('endpoint_type', |
| 45 | # default='publicURL', |
| 46 | # choices=['public', 'admin', 'internal', |
| 47 | # 'publicURL', 'adminURL', 'internalURL'], |
| 48 | # help="The endpoint type to use for the baremetal provisioning" |
| 49 | # " service"), |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 50 | cfg.IntOpt('deploywait_timeout', |
| 51 | default=15, |
| 52 | help="Timeout for Ironic node to reach the " |
| 53 | "wait-callback state after powering on."), |
Mauro S. M. Rodrigues | 27cbcee | 2016-02-03 14:14:58 -0500 | [diff] [blame] | 54 | # cfg.IntOpt('active_timeout', |
| 55 | # default=300, |
| 56 | # help="Timeout for Ironic node to completely provision"), |
| 57 | # cfg.IntOpt('association_timeout', |
| 58 | # default=30, |
| 59 | # help="Timeout for association of Nova instance and Ironic " |
| 60 | # "node"), |
| 61 | # cfg.IntOpt('power_timeout', |
| 62 | # default=60, |
| 63 | # help="Timeout for Ironic power transitions."), |
| 64 | # cfg.IntOpt('unprovision_timeout', |
| 65 | # default=300, |
| 66 | # help="Timeout for unprovisioning an Ironic node. " |
| 67 | # "Takes longer since Kilo as Ironic performs an extra " |
| 68 | # "step in Node cleaning.") |
Yuiko Takada | ff78500 | 2015-12-17 15:56:42 +0900 | [diff] [blame^] | 69 | cfg.StrOpt('min_microversion', |
| 70 | default=None, |
| 71 | help="Lower version of the test target microversion range. " |
| 72 | "The format is 'X.Y', where 'X' and 'Y' are int values. " |
| 73 | "Tempest selects tests based on the range between " |
| 74 | "min_microversion and max_microversion. " |
| 75 | "If both values are None, Tempest avoids tests which " |
| 76 | "require a microversion."), |
| 77 | cfg.StrOpt('max_microversion', |
| 78 | default='latest', |
| 79 | help="Upper version of the test target microversion range. " |
| 80 | "The format is 'X.Y', where 'X' and 'Y' are int values. " |
| 81 | "Tempest selects tests based on the range between " |
| 82 | "min_microversion and max_microversion. " |
| 83 | "If both values are None, Tempest avoids tests which " |
| 84 | "require a microversion."), |
Mike Turek | a7cb4be | 2016-01-18 19:35:29 +0000 | [diff] [blame] | 85 | ] |