Set iscsi pools' application
This patchset sets the default application name for the charm-created
pools to 'rbd'.
Closes-bug: #2040274
Change-Id: I781a2e33b3de9f55b97fddd661214f601fc6134e
(cherry picked from commit ab6d598ddc
)
This commit is contained in:
parent
2fd966aef8
commit
2b88df327f
|
@ -312,7 +312,8 @@ class CephISCSIGatewayCharmBase(
|
||||||
'configuration?: "{}"'.format(str(e)))
|
'configuration?: "{}"'.format(str(e)))
|
||||||
return
|
return
|
||||||
self.ceph_client.create_replicated_pool(
|
self.ceph_client.create_replicated_pool(
|
||||||
self.config_get('gateway-metadata-pool'))
|
self.config_get('gateway-metadata-pool'),
|
||||||
|
app_name='rbd')
|
||||||
weight = self.config_get('ceph-pool-weight')
|
weight = self.config_get('ceph-pool-weight')
|
||||||
replicas = self.config_get('ceph-osd-replication-count')
|
replicas = self.config_get('ceph-osd-replication-count')
|
||||||
if self.config_get('pool-type') == 'erasure-coded':
|
if self.config_get('pool-type') == 'erasure-coded':
|
||||||
|
@ -361,10 +362,12 @@ class CephISCSIGatewayCharmBase(
|
||||||
erasure_profile=profile_name,
|
erasure_profile=profile_name,
|
||||||
weight=weight,
|
weight=weight,
|
||||||
allow_ec_overwrites=True,
|
allow_ec_overwrites=True,
|
||||||
|
app_name='rbd',
|
||||||
**bcomp_kwargs
|
**bcomp_kwargs
|
||||||
)
|
)
|
||||||
self.ceph_client.create_replicated_pool(
|
self.ceph_client.create_replicated_pool(
|
||||||
name=self.metadata_pool_name,
|
name=self.metadata_pool_name,
|
||||||
|
app_name='rbd',
|
||||||
weight=metadata_weight
|
weight=metadata_weight
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
@ -372,6 +375,7 @@ class CephISCSIGatewayCharmBase(
|
||||||
name=self.data_pool_name,
|
name=self.data_pool_name,
|
||||||
replicas=replicas,
|
replicas=replicas,
|
||||||
weight=weight,
|
weight=weight,
|
||||||
|
app_name='rbd',
|
||||||
**bcomp_kwargs)
|
**bcomp_kwargs)
|
||||||
logging.info("Requesting permissions")
|
logging.info("Requesting permissions")
|
||||||
self.ceph_client.request_ceph_permissions(
|
self.ceph_client.request_ceph_permissions(
|
||||||
|
|
Loading…
Reference in New Issue