ScaleIO 1.32 deprecation notice

ScaleIO 1.32 is coming to EOL within Dell EMC. We will deprecate
support in Pike and remove support in a future release

Change-Id: Id3aa5163319b46b21ee5dcecb8559f8498d1f67e
This commit is contained in:
Eric Young 2017-05-05 05:55:48 -04:00
parent 2161f4a450
commit a4acf1268d
3 changed files with 15 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class TestMisc(scaleio.TestScaleIODriver):
'instances/Volume::{}/action/setVolumeName'.format(
self.new_volume['provider_id']):
self.volume['provider_id'],
'version': '"{}"'.format('2.0.1'),
},
self.RESPONSE_MODE.BadStatus: {
'types/Domain/instances/getByName::' +

View File

@ -24,6 +24,7 @@ import math
from os_brick.initiator import connector
from oslo_config import cfg
from oslo_log import log as logging
from oslo_log import versionutils
from oslo_utils import units
import re
import requests
@ -254,6 +255,14 @@ class ScaleIODriver(driver.VolumeDriver):
'ratio': self.configuration.max_over_subscription_ratio})
raise exception.InvalidInput(reason=msg)
server_api_version = self._get_server_api_version(fromcache=False)
if not self._version_greater_than_or_equal(
server_api_version, "2.0.0"):
# we are running against a pre-2.0.0 ScaleIO instance
msg = (_("Using ScaleIO versions less than v2.0.0 has been "
"deprecated and will be removed in a future version"))
versionutils.report_deprecated_feature(LOG, msg)
def _find_storage_pool_id_from_storage_type(self, storage_type):
# Default to what was configured in configuration file if not defined.
return storage_type.get(STORAGE_POOL_ID,

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Support for ScaleIO 1.32 is now deprecated and will be removed
in a future release.