Merge "Deprecate Windows OS support"

This commit is contained in:
Zuul 2024-02-21 19:17:10 +00:00 committed by Gerrit Code Review
commit 84fe1810c8
3 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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',

View File

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