Merge "Pure Storage - bump version numbers for 2024.1 (Caracal)"
This commit is contained in:
commit
ff8e3773e3
|
@ -737,11 +737,11 @@ class PureDriverTestCase(test.TestCase):
|
||||||
func, *args, **kwargs)
|
func, *args, **kwargs)
|
||||||
mock_func.side_effect = original_side_effect
|
mock_func.side_effect = original_side_effect
|
||||||
|
|
||||||
@mock.patch('platform.platform')
|
@mock.patch('distro.name')
|
||||||
def test_for_user_agent(self, mock_platform):
|
def test_for_user_agent(self, mock_distro):
|
||||||
mock_platform.return_value = 'MyFavoritePlatform'
|
mock_distro.return_value = 'MyFavouriteDistro'
|
||||||
driver = pure.PureBaseVolumeDriver(configuration=self.mock_config)
|
driver = pure.PureBaseVolumeDriver(configuration=self.mock_config)
|
||||||
expected_agent = "OpenStack Cinder %s/%s (MyFavoritePlatform)" % (
|
expected_agent = "OpenStack Cinder %s/%s (MyFavouriteDistro)" % (
|
||||||
driver.__class__.__name__,
|
driver.__class__.__name__,
|
||||||
driver.VERSION
|
driver.VERSION
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,10 +20,10 @@ This driver requires Purity version 4.0.0 or later.
|
||||||
import functools
|
import functools
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import math
|
import math
|
||||||
import platform
|
|
||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
import distro
|
||||||
from os_brick import constants as brick_constants
|
from os_brick import constants as brick_constants
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
|
@ -257,7 +257,7 @@ class PureBaseVolumeDriver(san.SanDriver):
|
||||||
'base': USER_AGENT_BASE,
|
'base': USER_AGENT_BASE,
|
||||||
'class': self.__class__.__name__,
|
'class': self.__class__.__name__,
|
||||||
'version': self.VERSION,
|
'version': self.VERSION,
|
||||||
'platform': platform.platform()
|
'platform': distro.name(pretty=True)
|
||||||
}
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -2895,7 +2895,7 @@ class PureISCSIDriver(PureBaseVolumeDriver, san.SanISCSIDriver):
|
||||||
the underlying storage connectivity with the FlashArray.
|
the underlying storage connectivity with the FlashArray.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VERSION = "17.0.iscsi"
|
VERSION = "18.0.iscsi"
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
execute = kwargs.pop("execute", utils.execute)
|
execute = kwargs.pop("execute", utils.execute)
|
||||||
|
@ -3120,7 +3120,7 @@ class PureFCDriver(PureBaseVolumeDriver, driver.FibreChannelDriver):
|
||||||
supports the Cinder Fibre Channel Zone Manager.
|
supports the Cinder Fibre Channel Zone Manager.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VERSION = "17.0.fc"
|
VERSION = "18.0.fc"
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
execute = kwargs.pop("execute", utils.execute)
|
execute = kwargs.pop("execute", utils.execute)
|
||||||
|
@ -3318,7 +3318,7 @@ class PureNVMEDriver(PureBaseVolumeDriver, driver.BaseVD):
|
||||||
FlashArray.
|
FlashArray.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VERSION = "17.0.nvme"
|
VERSION = "18.0.nvme"
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
execute = kwargs.pop("execute", utils.execute)
|
execute = kwargs.pop("execute", utils.execute)
|
||||||
|
|
|
@ -11,6 +11,7 @@ krest>=1.3.0 # Apache-2.0
|
||||||
|
|
||||||
# Pure Storage
|
# Pure Storage
|
||||||
purestorage>=1.17.0 # BSD
|
purestorage>=1.17.0 # BSD
|
||||||
|
distro # Apache-2.0
|
||||||
|
|
||||||
# Dell EMC VMAX, IBM DS8K
|
# Dell EMC VMAX, IBM DS8K
|
||||||
pyOpenSSL>=1.0.0 # Apache-2.0
|
pyOpenSSL>=1.0.0 # Apache-2.0
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
other:
|
||||||
|
- |
|
||||||
|
[Pure Storage] ``user_agent`` string changed from reporting kernel
|
||||||
|
version to operating system distro and version.
|
|
@ -63,3 +63,4 @@ cryptography>=3.1 # BSD/Apache-2.0
|
||||||
cursive>=0.2.2 # Apache-2.0
|
cursive>=0.2.2 # Apache-2.0
|
||||||
zstd>=1.4.5.1 # BSD
|
zstd>=1.4.5.1 # BSD
|
||||||
boto3>=1.18.49 # Apache-2.0
|
boto3>=1.18.49 # Apache-2.0
|
||||||
|
distro>=1.8.0 # Apache-2.0
|
||||||
|
|
|
@ -20,3 +20,4 @@ testtools>=2.4.0 # MIT
|
||||||
doc8>=0.8.1 # Apache-2.0
|
doc8>=0.8.1 # Apache-2.0
|
||||||
mypy>=1.7.0 # MIT
|
mypy>=1.7.0 # MIT
|
||||||
moto>=2.2.5 # Apache-2.0
|
moto>=2.2.5 # Apache-2.0
|
||||||
|
distro>=1.8.0 # Apache-2.0
|
||||||
|
|
Loading…
Reference in New Issue