Merge "libvirt: Deprecate volume driver for unsupported volume backends"

This commit is contained in:
Zuul 2024-10-24 17:13:00 +00:00 committed by Gerrit Code Review
commit 796250fa0d
5 changed files with 66 additions and 0 deletions

View File

@ -1243,6 +1243,12 @@ Possible values:
libvirt_volume_quobyte_opts = [
cfg.StrOpt('quobyte_mount_point_base',
default=paths.state_path_def('mnt'),
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Quobyte volume driver in cinder was marked unsupported. Quobyte volume support
will be removed from nova when the volume driver is removed from cinder.
""",
help="""
Directory where the Quobyte volume is mounted on the compute node.
@ -1255,17 +1261,37 @@ Possible values:
* A string representing absolute path of mount point.
"""),
cfg.StrOpt('quobyte_client_cfg',
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Quobyte volume driver in cinder was marked unsupported. Quobyte volume support
will be removed from nova when the volume driver is removed from cinder.
""",
help='Path to a Quobyte Client configuration file.'),
]
libvirt_volume_smbfs_opts = [
cfg.StrOpt('smbfs_mount_point_base',
default=paths.state_path_def('mnt'),
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Windows SMB volume driver in cinder was marked unsupported. SMBFS volume
support will be removed from nova when the volume driver is removed from
cinder.
""",
help="""
Directory where the SMBFS shares are mounted on the compute node.
"""),
cfg.StrOpt('smbfs_mount_options',
default='',
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Windows SMB volume driver in cinder was marked unsupported. SMBFS volume
support will be removed from nova when the volume driver is removed from
cinder.
""",
help="""
Mount options passed to the SMBFS client.
@ -1295,6 +1321,13 @@ compute nodes, other method must be used for:
libvirt_volume_vzstorage_opts = [
cfg.StrOpt('vzstorage_mount_point_base',
default=paths.state_path_def('mnt'),
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Virtuozzo Storage volume driver in cinder was marked unsupported. Virtuozzo
Storage volume support will be removed from nova when the volume driver is
removed from cinder.
""",
help="""
Directory where the Virtuozzo Storage clusters are mounted on the compute
node.
@ -1308,6 +1341,13 @@ Related options:
),
cfg.StrOpt('vzstorage_mount_user',
default='stack',
deprecated_for_removal=True,
deprecated_since="31.0.0",
deprecated_reason="""
Virtuozzo Storage volume driver in cinder was marked unsupported. Virtuozzo
Storage volume support will be removed from nova when the volume driver is
removed from cinder.
""",
help="""
Mount owner user name.

View File

@ -14,6 +14,7 @@
# under the License.
import os
import warnings
from oslo_concurrency import processutils
from oslo_log import log as logging
@ -137,6 +138,11 @@ def validate_volume(mount_path):
class LibvirtQuobyteVolumeDriver(fs.LibvirtBaseFileSystemVolumeDriver):
"""Class implements libvirt part of volume driver for Quobyte."""
def __init__(self, host):
super(LibvirtQuobyteVolumeDriver, self).__init__(host)
warnings.warn('Quobyte volume support is deprecated',
category=DeprecationWarning, stacklevel=2)
def _get_mount_point_base(self):
return CONF.libvirt.quobyte_mount_point_base

View File

@ -11,6 +11,7 @@
# under the License.
import re
import warnings
import nova.conf
from nova.virt.libvirt import utils as libvirt_utils
@ -25,6 +26,11 @@ USERNAME_REGEX = re.compile(r"(user(?:name)?)=(?:[^ ,]+\\)?([^ ,]+)")
class LibvirtSMBFSVolumeDriver(fs.LibvirtBaseFileSystemVolumeDriver):
"""Class implements libvirt part of volume driver for SMBFS."""
def __init__(self, host):
super(LibvirtSMBFSVolumeDriver, self).__init__(host)
warnings.warn('SMBFS volume support is deprecated',
category=DeprecationWarning, stacklevel=2)
def _get_mount_point_base(self):
return CONF.libvirt.smbfs_mount_point_base

View File

@ -12,6 +12,7 @@
import collections
import re
import warnings
from os_brick import initiator
from os_brick.initiator import connector
@ -39,6 +40,9 @@ class LibvirtVZStorageVolumeDriver(fs.LibvirtBaseFileSystemVolumeDriver):
def __init__(self, connection):
super(LibvirtVZStorageVolumeDriver, self).__init__(connection)
warnings.warn('VZStorage volume support is deprecated',
category=DeprecationWarning, stacklevel=2)
# Check for duplicate options:
# -c - cluster name
# -l - log file, includes %(cluster_name)s, so it's handled as a

View File

@ -0,0 +1,10 @@
---
deprecations:
- |
The following volume drivers of the libvirt virt driver have been
deprecated and will be removed in a future release. The corresponding
volume drivers in cinder were all marked unsupported and will be removed.
- Quobyte
- SMBFS
- Virtuozzo Storage