Move nimble driver code to hpe folder

blueprint nimble-change-location

Change-Id: Id1f111462fc2558b90f9066387498bcb5e3217b2
This commit is contained in:
Ajitha Robert 2021-04-13 06:44:12 -07:00 committed by raghavendrat
parent 2969504e98
commit d67dcf42d4
6 changed files with 33 additions and 14 deletions

View File

@ -101,6 +101,8 @@ from cinder.volume.drivers.hitachi import hbsd_rest as \
cinder_volume_drivers_hitachi_hbsdrest cinder_volume_drivers_hitachi_hbsdrest
from cinder.volume.drivers.hpe import hpe_3par_common as \ from cinder.volume.drivers.hpe import hpe_3par_common as \
cinder_volume_drivers_hpe_hpe3parcommon cinder_volume_drivers_hpe_hpe3parcommon
from cinder.volume.drivers.hpe import nimble as \
cinder_volume_drivers_hpe_nimble
from cinder.volume.drivers.huawei import common as \ from cinder.volume.drivers.huawei import common as \
cinder_volume_drivers_huawei_common cinder_volume_drivers_huawei_common
from cinder.volume.drivers.ibm import flashsystem_common as \ from cinder.volume.drivers.ibm import flashsystem_common as \
@ -143,7 +145,6 @@ from cinder.volume.drivers.netapp import options as \
from cinder.volume.drivers.nexenta import options as \ from cinder.volume.drivers.nexenta import options as \
cinder_volume_drivers_nexenta_options cinder_volume_drivers_nexenta_options
from cinder.volume.drivers import nfs as cinder_volume_drivers_nfs from cinder.volume.drivers import nfs as cinder_volume_drivers_nfs
from cinder.volume.drivers import nimble as cinder_volume_drivers_nimble
from cinder.volume.drivers.open_e import options as \ from cinder.volume.drivers.open_e import options as \
cinder_volume_drivers_open_e_options cinder_volume_drivers_open_e_options
from cinder.volume.drivers.prophetstor import options as \ from cinder.volume.drivers.prophetstor import options as \
@ -331,6 +332,7 @@ def list_opts():
cinder_volume_drivers_hitachi_hbsdfc.FC_VOLUME_OPTS, cinder_volume_drivers_hitachi_hbsdfc.FC_VOLUME_OPTS,
cinder_volume_drivers_hitachi_hbsdrest.REST_VOLUME_OPTS, cinder_volume_drivers_hitachi_hbsdrest.REST_VOLUME_OPTS,
cinder_volume_drivers_hpe_hpe3parcommon.hpe3par_opts, cinder_volume_drivers_hpe_hpe3parcommon.hpe3par_opts,
cinder_volume_drivers_hpe_nimble.nimble_opts,
cinder_volume_drivers_huawei_common.huawei_opts, cinder_volume_drivers_huawei_common.huawei_opts,
cinder_volume_drivers_ibm_flashsystemcommon.flashsystem_opts, cinder_volume_drivers_ibm_flashsystemcommon.flashsystem_opts,
cinder_volume_drivers_ibm_flashsystemiscsi. cinder_volume_drivers_ibm_flashsystemiscsi.
@ -372,7 +374,6 @@ def list_opts():
cinder_volume_drivers_nexenta_options.NEXENTA_RRMGR_OPTS, cinder_volume_drivers_nexenta_options.NEXENTA_RRMGR_OPTS,
cinder_volume_drivers_nexenta_options.NEXENTA_EDGE_OPTS, cinder_volume_drivers_nexenta_options.NEXENTA_EDGE_OPTS,
cinder_volume_drivers_nfs.nfs_opts, cinder_volume_drivers_nfs.nfs_opts,
cinder_volume_drivers_nimble.nimble_opts,
cinder_volume_drivers_prophetstor_options.DPL_OPTS, cinder_volume_drivers_prophetstor_options.DPL_OPTS,
cinder_volume_drivers_pure.PURE_OPTS, cinder_volume_drivers_pure.PURE_OPTS,
cinder_volume_drivers_qnap.qnap_opts, cinder_volume_drivers_qnap.qnap_opts,

View File

@ -30,16 +30,16 @@ from cinder.tests.unit import fake_group
from cinder.tests.unit import fake_snapshot from cinder.tests.unit import fake_snapshot
from cinder.tests.unit import fake_volume from cinder.tests.unit import fake_volume
from cinder.tests.unit import test from cinder.tests.unit import test
from cinder.volume.drivers import nimble from cinder.volume.drivers.hpe import nimble
from cinder.volume import volume_types from cinder.volume import volume_types
from cinder.volume import volume_utils from cinder.volume import volume_utils
NIMBLE_CLIENT = 'cinder.volume.drivers.nimble.NimbleRestAPIExecutor' NIMBLE_CLIENT = 'cinder.volume.drivers.hpe.nimble.NimbleRestAPIExecutor'
NIMBLE_URLLIB2 = 'cinder.volume.drivers.nimble.requests' NIMBLE_URLLIB2 = 'cinder.volume.drivers.hpe.nimble.requests'
NIMBLE_RANDOM = 'cinder.volume.drivers.nimble.random' NIMBLE_RANDOM = 'cinder.volume.drivers.hpe.nimble.random'
NIMBLE_ISCSI_DRIVER = 'cinder.volume.drivers.nimble.NimbleISCSIDriver' NIMBLE_ISCSI_DRIVER = 'cinder.volume.drivers.hpe.nimble.NimbleISCSIDriver'
NIMBLE_FC_DRIVER = 'cinder.volume.drivers.nimble.NimbleFCDriver' NIMBLE_FC_DRIVER = 'cinder.volume.drivers.hpe.nimble.NimbleFCDriver'
DRIVER_VERSION = '4.1.0' DRIVER_VERSION = '4.2.0'
nimble.DEFAULT_SLEEP = 0 nimble.DEFAULT_SLEEP = 0
FAKE_POSITIVE_LOGIN_RESPONSE_1 = '2c20aad78a220ed1dae21dcd6f9446f5' FAKE_POSITIVE_LOGIN_RESPONSE_1 = '2c20aad78a220ed1dae21dcd6f9446f5'

View File

@ -48,7 +48,7 @@ from cinder.volume import volume_utils
from cinder.zonemanager import utils as fczm_utils from cinder.zonemanager import utils as fczm_utils
DRIVER_VERSION = "4.1.0" DRIVER_VERSION = "4.2.0"
AES_256_XTS_CIPHER = 'aes_256_xts' AES_256_XTS_CIPHER = 'aes_256_xts'
DEFAULT_CIPHER = 'none' DEFAULT_CIPHER = 'none'
EXTRA_SPEC_ENCRYPTION = 'nimble:encryption' EXTRA_SPEC_ENCRYPTION = 'nimble:encryption'
@ -136,11 +136,13 @@ class NimbleBaseVolumeDriver(san.SanDriver):
4.1.0 - Added multiattach support 4.1.0 - Added multiattach support
Added revert to snapshot support Added revert to snapshot support
Added consistency groups support Added consistency groups support
4.2.0 - The Nimble driver is now located in the
cinder.volume.drivers.hpe module.
""" """
VERSION = DRIVER_VERSION VERSION = DRIVER_VERSION
# ThirdPartySystems wiki page # ThirdPartySystems wiki page
CI_WIKI_NAME = "Nimble_Storage_CI" CI_WIKI_NAME = "HPE_Nimble_Storage_CI"
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(NimbleBaseVolumeDriver, self).__init__(*args, **kwargs) super(NimbleBaseVolumeDriver, self).__init__(*args, **kwargs)

View File

@ -185,6 +185,10 @@ MAPPING = {
'cinder.volume.drivers.dell_emc.powerflex.driver.PowerFlexDriver', 'cinder.volume.drivers.dell_emc.powerflex.driver.PowerFlexDriver',
'cinder.volume.drivers.zadara.ZadaraVPSAISCSIDriver': 'cinder.volume.drivers.zadara.ZadaraVPSAISCSIDriver':
'cinder.volume.drivers.zadara.zadara.ZadaraVPSAISCSIDriver', 'cinder.volume.drivers.zadara.zadara.ZadaraVPSAISCSIDriver',
'cinder.volume.drivers.nimble.NimbleISCSIDriver':
'cinder.volume.drivers.hpe.nimble.NimbleISCSIDriver',
'cinder.volume.drivers.nimble.NimbleFCDriver':
'cinder.volume.drivers.hpe.nimble.NimbleFCDriver',
} }

View File

@ -106,8 +106,8 @@ NIMBLE_PASSWORD
Password of the admin account for Nimble/Alletra 6k array. Password of the admin account for Nimble/Alletra 6k array.
NIMBLE_VOLUME_DRIVER NIMBLE_VOLUME_DRIVER
Use either cinder.volume.drivers.nimble.NimbleISCSIDriver for iSCSI or Use either cinder.volume.drivers.hpe.nimble.NimbleISCSIDriver for iSCSI or
cinder.volume.drivers.nimble.NimbleFCDriver for Fibre Channel. cinder.volume.drivers.hpe.nimble.NimbleFCDriver for Fibre Channel.
NIMBLE_BACKEND_NAME NIMBLE_BACKEND_NAME
A volume back-end name which is specified in the ``cinder.conf`` file. A volume back-end name which is specified in the ``cinder.conf`` file.
@ -168,7 +168,7 @@ The Nimble/Alletra 6k storage driver supports these configuration options:
.. config-table:: .. config-table::
:config-target: Nimble :config-target: Nimble
cinder.volume.drivers.nimble cinder.volume.drivers.hpe.nimble
Multipathing Multipathing
~~~~~~~~~~~~ ~~~~~~~~~~~~

View File

@ -0,0 +1,12 @@
---
upgrade:
- |
The Nimble Storage became a part of the HPE family of Storage solutions.
The cinder Nimble driver has been relocated to the
``cinder.volume.driver.hpe`` module to reflect this.
The impact on operators is that the module path
``cinder.volume.drivers.nimble.NimbleISCSIDriver`` and
``cinder.volume.drivers.nimble.FCDriver`` should now be updated to
``cinder.volume.drivers.hpe.nimble.NimbleISCSIDriver`` and
``cinder.volume.drivers.hpe.nimble.NimbleFCDriver`` respectively in
``cinder.conf``