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
This commit is contained in:
Takashi Kajinami 2023-11-15 00:48:47 +09:00
parent fb23a40a65
commit 278fdf8b3a
3 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import warnings
from os_win import utilsfactory from os_win import utilsfactory
from oslo_concurrency import processutils as putils from oslo_concurrency import processutils as putils
from oslo_log import log as logging from oslo_log import log as logging
@ -33,6 +35,8 @@ class BaseWindowsConnector(initiator_connector.InitiatorConnector):
DEFAULT_DEVICE_SCAN_INTERVAL = 2 DEFAULT_DEVICE_SCAN_INTERVAL = 2
def __init__(self, root_helper=None, *args, **kwargs): 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 kwargs['executor'] = kwargs.get('executor') or putils.execute
super(BaseWindowsConnector, self).__init__(root_helper, super(BaseWindowsConnector, self).__init__(root_helper,
*args, **kwargs) *args, **kwargs)

View File

@ -17,6 +17,7 @@
import os import os
import re import re
import warnings
from os_win import utilsfactory from os_win import utilsfactory
from oslo_log import log as logging from oslo_log import log as logging
@ -35,6 +36,8 @@ class WindowsRemoteFsClient(remotefs.RemoteFsClient):
def __init__(self, mount_type, root_helper=None, def __init__(self, mount_type, root_helper=None,
execute=None, *args, **kwargs): execute=None, *args, **kwargs):
warnings.warn('Support for Windows OS has been deprecated.',
category=DeprecationWarning, stacklevel=2)
mount_type_to_option_prefix = { mount_type_to_option_prefix = {
'cifs': 'smbfs', 'cifs': 'smbfs',
'smbfs': 'smbfs', 'smbfs': 'smbfs',

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Support for Windows operating systems has been deprecated, because of
retirement of the Winstackers project.