[Pure Storage] Add new FlashArray Cinder driver params

Backport corrects a mistake in the original patch where default
for ``pure_iscsi_cidr`` parameter. Fixed in master by
0555ee4df2

Depends-On: I9ab50d6c0835ea69044249f1cbbbf10f9b6a2498
Change-Id: If135ab7bf06f4bc49db48b4248c472e77054249b
(cherry picked from commit 70720d21d7)
This commit is contained in:
Simon Dodsley 2021-11-05 08:23:45 -04:00
parent 5004eb6520
commit 5c53f0bfc6
3 changed files with 39 additions and 0 deletions

View File

@ -63,6 +63,8 @@ parameters:
CinderPureStorageProtocol:
type: string
default: 'iSCSI'
constraints:
- allowed_values: ['iSCSI', 'FC']
CinderPureSanIp:
type: string
CinderPureAPIToken:
@ -76,6 +78,29 @@ parameters:
CinderPureImageCache:
type: boolean
default: true
CinderPureHostPersonality:
type: string
default: ''
constraints:
- allowed_values: ['aix', 'esxi', 'hitachi-vsp', 'hpux',
'oracle-vm-server', 'solaris', 'vms', '']
description: Determines how the Purity system tunes the protocol
used between the array and the initiator.
A blank string will default to no Host Pesonality.
CinderPureIscsiCidr:
type: string
default: '0.0.0.0/0'
description: CIDR of FlashArray iSCSI targets hosts are allowed
to connect to. Default is any valid IPv4 address.
CinderPureEradicateOnDelete:
type: boolean
default: false
description: When enabled, all Pure volumes, snapshots, and
protection groups will be eradicated at the time of
deletion in Cinder. Data will NOT be recoverable after
a delete with this set to True! When disabled, volumes
and snapshots will go into pending eradication state.
and can be recovered.
outputs:
role_data:
@ -93,6 +118,11 @@ outputs:
cinder::backend::pure::use_chap_auth: {get_param: CinderPureUseChap}
cinder::backend::pure::use_multipath_for_image_xfer: {get_param: CinderPureMultipathXfer}
cinder::backend::pure::image_volume_cache_enabled : {get_param: CinderPureImageCache}
cinder::backend::pure::pure_eradicate_on_delete : {get_param: CinderPureEradicateOnDelete}
cinder::backend::pure::pure_iscsi_cidr : {get_param: CinderPureIscsiCidr}
- if:
- not: {equals : [{get_param: CinderPureAvailabilityZone}, '']}
- cinder::backend::pure::backend_availability_zone: {get_param: CinderPureAvailabilityZone}
- if:
- not: {equals : [{get_param: CinderPureHostPersonality}, '']}
- cinder::backend::pure::pure_host_personality: {get_param: CinderPureHostPersonality}

View File

@ -15,6 +15,9 @@ parameter_defaults:
CinderPureUseChap: false
CinderPureMultipathXfer: true
CinderPureImageCache: true
CinderPureHostPersonality: ''
CinderPureEradicateOnDelete: false
CinderPureIscsiCidr: '0.0.0.0/0'
# To configure multiple Pure backends, use CinderPureMultiConfig to
# assign parameter values specific to that backend. For example:

View File

@ -0,0 +1,6 @@
---
features:
- |
Added ``pure_iscsi_cidr`` and ``pure_host_personality``
and ``eradicate_on_delete`` support for the Pure Storage
FlashArray Cinder driver.