From 278fdf8b3ad9be4c87146d086b7c4da1ce76c7ee Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 15 Nov 2023 00:48:47 +0900 Subject: [PATCH] Deprecate Windows OS support Unfortunately the Winstackers project has been retired because of no maintainers[1][2], and OpenStack on Windows host is no longer maintained. [1] https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031044.html [2] https://review.opendev.org/c/openstack/governance/+/886880 Change-Id: I97a441700304765e6db33f3827d5146fed09a919 --- os_brick/initiator/windows/base.py | 4 ++++ os_brick/remotefs/windows_remotefs.py | 3 +++ .../notes/deprecate-windows-support-bdc643525e9bb132.yaml | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/deprecate-windows-support-bdc643525e9bb132.yaml diff --git a/os_brick/initiator/windows/base.py b/os_brick/initiator/windows/base.py index 7014a750c..0c6dd4b46 100644 --- a/os_brick/initiator/windows/base.py +++ b/os_brick/initiator/windows/base.py @@ -13,6 +13,8 @@ # License for the specific language governing permissions and limitations # under the License. +import warnings + from os_win import utilsfactory from oslo_concurrency import processutils as putils from oslo_log import log as logging @@ -33,6 +35,8 @@ class BaseWindowsConnector(initiator_connector.InitiatorConnector): DEFAULT_DEVICE_SCAN_INTERVAL = 2 def __init__(self, root_helper=None, *args, **kwargs): + warnings.warn('Support for Windows OS has been deprecated.', + category=DeprecationWarning, stacklevel=2) kwargs['executor'] = kwargs.get('executor') or putils.execute super(BaseWindowsConnector, self).__init__(root_helper, *args, **kwargs) diff --git a/os_brick/remotefs/windows_remotefs.py b/os_brick/remotefs/windows_remotefs.py index d3c836368..ce7637943 100644 --- a/os_brick/remotefs/windows_remotefs.py +++ b/os_brick/remotefs/windows_remotefs.py @@ -17,6 +17,7 @@ import os import re +import warnings from os_win import utilsfactory from oslo_log import log as logging @@ -35,6 +36,8 @@ class WindowsRemoteFsClient(remotefs.RemoteFsClient): def __init__(self, mount_type, root_helper=None, execute=None, *args, **kwargs): + warnings.warn('Support for Windows OS has been deprecated.', + category=DeprecationWarning, stacklevel=2) mount_type_to_option_prefix = { 'cifs': 'smbfs', 'smbfs': 'smbfs', diff --git a/releasenotes/notes/deprecate-windows-support-bdc643525e9bb132.yaml b/releasenotes/notes/deprecate-windows-support-bdc643525e9bb132.yaml new file mode 100644 index 000000000..b0f3c147c --- /dev/null +++ b/releasenotes/notes/deprecate-windows-support-bdc643525e9bb132.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + Support for Windows operating systems has been deprecated, because of + retirement of the Winstackers project.