Merge "libvirt: Deprecate disable_native_luksv1 and rbd_volume_local_attach"

This commit is contained in:
Zuul 2021-03-11 05:37:04 +00:00 committed by Gerrit Code Review
commit 36865fcce5
2 changed files with 29 additions and 8 deletions

View File

@ -271,12 +271,15 @@ Related options:
* ``compute_driver`` (libvirt)
* ``[libvirt]/images_type`` (rbd)
"""),
# TODO(lyarwood): Remove this workaround in the W release once all
# supported distros have rebased to a version of libgcrypt that does not
# have the performance issues listed below.
cfg.BoolOpt(
'disable_native_luksv1',
default=False,
deprecated_for_removal=True,
deprecated_since='23.0.0',
deprecated_reason="""
The underlying performance regression within libgcrypt that prompted this
workaround has been resolved as of 1.8.5
""",
help="""
When attaching encrypted LUKSv1 Cinder volumes to instances the Libvirt driver
configures the encrypted disks to be natively decrypted by QEMU.
@ -302,11 +305,16 @@ Related options:
* ``compute_driver`` (libvirt)
* ``rbd_block_device`` (workarounds)
"""),
# TODO(lyarwood): Remove this workaround in the W release when the
# above disable_native_luksv1 configurable is removed.
cfg.BoolOpt('rbd_volume_local_attach',
default=False,
help="""
cfg.BoolOpt(
'rbd_volume_local_attach',
default=False,
deprecated_for_removal=True,
deprecated_since='23.0.0',
deprecated_reason="""
The underlying performance regression within libgcrypt that prompted this
workaround has been resolved as of 1.8.5
""",
help="""
Attach RBD Cinder volumes to the compute as host block devices.
When enabled this option instructs os-brick to connect RBD volumes locally on

View File

@ -0,0 +1,13 @@
---
deprecations:
- |
The ``[workarounds]rbd_volume_local_attach`` and
``[workarounds]disable_native_luksv1`` options have been deprecated as of
the 23.0.0 release ahead of removal in the future as the underlying
``libgcrypt`` performance regressions that prompted their introduction have
been resolved.
Any remaining users of these workarounds should plan to disable these
workarounds as soon as possible. Note that this requires that any instances
on compute hosts using the workaround be shutdown ahead of the value of the
workaround changing, before being restarted.