Add ports filtering support to XtremIO Cinder driver
If there are some iSCSI or FC targets (ESXi for example) that
are not connected to the OpenStack host,
attach volume operation waits until timeout.
The XtremIO Cinder driver needs a new option to support ports
filtering.
Depends-On: https://review.opendev.org/#/c/779005
Related-Bug: #1915800
Change-Id: Ib689f08e414f3a10d18ed34932f8a314be7a7344
(cherry picked from commit e0adf10564
)
This commit is contained in:
parent
e64f4f4eb6
commit
a31e100caf
@ -55,6 +55,12 @@ parameters:
|
|||||||
of copies (XtremIO snapshots) taken from each image cache.
|
of copies (XtremIO snapshots) taken from each image cache.
|
||||||
A value of 0 ignores the limit and defers to the array
|
A value of 0 ignores the limit and defers to the array
|
||||||
maximum as the effective limit.
|
maximum as the effective limit.
|
||||||
|
CinderDellEMCXTREMIOIscsiPorts:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
description: Allowed ports. Comma separated list of XtremIO
|
||||||
|
iSCSI IPs or FC WWNs (ex. 58:cc:f0:98:49:22:07:02)
|
||||||
|
to be used. If option is not set all ports are allowed.
|
||||||
ServiceData:
|
ServiceData:
|
||||||
default: {}
|
default: {}
|
||||||
description: Dictionary packing service data
|
description: Dictionary packing service data
|
||||||
@ -96,6 +102,7 @@ parameter_groups:
|
|||||||
- CinderDellEMCXTREMIOIscsiArrayBusyRetryCount
|
- CinderDellEMCXTREMIOIscsiArrayBusyRetryCount
|
||||||
- CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval
|
- CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval
|
||||||
- CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache
|
- CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache
|
||||||
|
- CinderDellEMCXTREMIOIscsiPorts
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
@ -113,6 +120,7 @@ outputs:
|
|||||||
cinder::backend::dellemc_xtremio_iscsi::xtremio_array_busy_retry_count: {get_param: CinderDellEMCXTREMIOIscsiArrayBusyRetryCount}
|
cinder::backend::dellemc_xtremio_iscsi::xtremio_array_busy_retry_count: {get_param: CinderDellEMCXTREMIOIscsiArrayBusyRetryCount}
|
||||||
cinder::backend::dellemc_xtremio_iscsi::xtremio_array_busy_retry_interval: {get_param: CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval}
|
cinder::backend::dellemc_xtremio_iscsi::xtremio_array_busy_retry_interval: {get_param: CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval}
|
||||||
cinder::backend::dellemc_xtremio_iscsi::xtremio_volumes_per_glance_cache: {get_param: CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache}
|
cinder::backend::dellemc_xtremio_iscsi::xtremio_volumes_per_glance_cache: {get_param: CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache}
|
||||||
|
cinder::backend::dellemc_xtremio_iscsi::xtremio_ports: {get_param: CinderDellEMCXTREMIOIscsiPorts}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- {equals : [{get_param: CinderDellEMCXTREMIOIscsiAvailabilityZone}, '']}
|
- {equals : [{get_param: CinderDellEMCXTREMIOIscsiAvailabilityZone}, '']}
|
||||||
|
@ -66,6 +66,12 @@ parameters:
|
|||||||
default: 'iSCSI'
|
default: 'iSCSI'
|
||||||
constraints:
|
constraints:
|
||||||
- allowed_values: [ 'iSCSI', 'FC']
|
- allowed_values: [ 'iSCSI', 'FC']
|
||||||
|
CinderXtremioPorts:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
description: Allowed ports. Comma separated list of XtremIO
|
||||||
|
iSCSI IPs or FC WWNs (ex. 58:cc:f0:98:49:22:07:02)
|
||||||
|
to be used. If option is not set all ports are allowed.
|
||||||
ServiceData:
|
ServiceData:
|
||||||
default: {}
|
default: {}
|
||||||
description: Dictionary packing service data
|
description: Dictionary packing service data
|
||||||
@ -111,6 +117,7 @@ outputs:
|
|||||||
cinder::backend::dellemc_xtremio::xtremio_array_busy_retry_interval: {get_param: CinderXtremioArrayBusyRetryInterval}
|
cinder::backend::dellemc_xtremio::xtremio_array_busy_retry_interval: {get_param: CinderXtremioArrayBusyRetryInterval}
|
||||||
cinder::backend::dellemc_xtremio::xtremio_volumes_per_glance_cache: {get_param: CinderXtremioVolumesPerGlanceCache}
|
cinder::backend::dellemc_xtremio::xtremio_volumes_per_glance_cache: {get_param: CinderXtremioVolumesPerGlanceCache}
|
||||||
cinder::backend::dellemc_xtremio::xtremio_storage_protocol: {get_param: CinderXtremioStorageProtocol}
|
cinder::backend::dellemc_xtremio::xtremio_storage_protocol: {get_param: CinderXtremioStorageProtocol}
|
||||||
|
cinder::backend::dellemc_xtremio::xtremio_ports: {get_param: CinderXtremioPorts}
|
||||||
-
|
-
|
||||||
if:
|
if:
|
||||||
- {equals : [{get_param: CinderXtremioAvailabilityZone}, '']}
|
- {equals : [{get_param: CinderXtremioAvailabilityZone}, '']}
|
||||||
|
@ -13,6 +13,7 @@ parameter_defaults:
|
|||||||
CinderXtremioArrayBusyRetryCount: 5
|
CinderXtremioArrayBusyRetryCount: 5
|
||||||
CinderXtremioArrayBusyRetryInterval: 5
|
CinderXtremioArrayBusyRetryInterval: 5
|
||||||
CinderXtremioVolumesPerGlanceCache: 100
|
CinderXtremioVolumesPerGlanceCache: 100
|
||||||
|
CinderXtremioPorts: ''
|
||||||
# To configure multiple backends, use CinderXtremioMultiConfig to
|
# To configure multiple backends, use CinderXtremioMultiConfig to
|
||||||
# assign parameter values specific to that backend. CinderXtremioMultiConfig
|
# assign parameter values specific to that backend. CinderXtremioMultiConfig
|
||||||
# is a dictionary of the parameter values for each backend specified in
|
# is a dictionary of the parameter values for each backend specified in
|
||||||
|
@ -16,3 +16,4 @@ parameter_defaults:
|
|||||||
CinderDellEMCXTREMIOIscsiArrayBusyRetryCount: 5
|
CinderDellEMCXTREMIOIscsiArrayBusyRetryCount: 5
|
||||||
CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval: 5
|
CinderDellEMCXTREMIOIscsiArrayBusyRetryInterval: 5
|
||||||
CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache: 100
|
CinderDellEMCXTREMIOIscsiVolumesPerGlanceCache: 100
|
||||||
|
CinderDellEMCXTREMIOIscsiPorts: ''
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
`Bug #1915800 <https://bugs.launchpad.net/cinder/+bug/1915800>`_:
|
||||||
|
Add support for ports filtering in XtremIO driver.
|
Loading…
Reference in New Issue
Block a user