Add backend-availability-zone config option
Add support for configuring a backend availability zone. Closes-Bug: #2058407 Change-Id: I1c6620b72923260a52e288911649c2e0e5ec3c61
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
options:
|
options:
|
||||||
|
backend-availability-zone:
|
||||||
|
default:
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
Availability zone name of this volume backend. If set, it will
|
||||||
|
override the default availability zone.
|
||||||
driver-source:
|
driver-source:
|
||||||
type: string
|
type: string
|
||||||
default:
|
default:
|
||||||
|
@@ -42,6 +42,11 @@ class CinderpurestorageCharm(
|
|||||||
('volume_backend_name', service),
|
('volume_backend_name', service),
|
||||||
('allowed_direct_url_schemes', 'cinder')]
|
('allowed_direct_url_schemes', 'cinder')]
|
||||||
|
|
||||||
|
backend_az = self.config.get('backend-availability-zone')
|
||||||
|
if backend_az:
|
||||||
|
driver_options.append(
|
||||||
|
('backend_availability_zone', backend_az))
|
||||||
|
|
||||||
if self.config.get('protocol') == 'nvme-roce':
|
if self.config.get('protocol') == 'nvme-roce':
|
||||||
if self.config.get('nvme-cidr'):
|
if self.config.get('nvme-cidr'):
|
||||||
nvme_roce.extend([('pure_nvme_cidr',
|
nvme_roce.extend([('pure_nvme_cidr',
|
||||||
|
Reference in New Issue
Block a user