Merge "Make ipmi lanplus the default in auto fencing"

This commit is contained in:
Zuul 2018-06-05 02:45:24 +00:00 committed by Gerrit Code Review
commit 9680a19dc9
3 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
features:
- |
Deprecate --ipmi-lanplus for ``openstack overcloud generate fencing``
command since now this is the default and add new option --ipmi-no-lanplus
to override it.

View File

@ -158,6 +158,6 @@ class TestGenerateFencingParameters(utils.TestCommand):
}],
'delay': None,
'ipmi_cipher': None,
'ipmi_lanplus': False,
'ipmi_lanplus': True,
'ipmi_level': None
})

View File

@ -78,8 +78,14 @@ class GenerateFencingParameters(command.Command):
help=_('Wait DELAY seconds before fencing is '
'started'))
parser.add_argument('--ipmi-lanplus',
dest='ipmi_lanplus',
default=True,
action='store_true',
help=_('Use Lanplus. Defaults to: false'))
help=_('DEPRECATED: This is the default.'))
parser.add_argument('--ipmi-no-lanplus',
dest='ipmi_lanplus',
action='store_false',
help=_('Do not use Lanplus. Defaults to: false'))
parser.add_argument('--ipmi-cipher', type=int,
help=_('Ciphersuite to use (same as ipmitool -C '
'parameter.'))