Fix README and make distinction around metadata pool

This commit is contained in:
Liam Young 2020-04-03 14:08:33 +00:00
parent 8e1eba48f7
commit 10f56e75a5
6 changed files with 18 additions and 6 deletions

View File

@ -77,6 +77,7 @@ Run this action to create an iscsi target.
$ juju run-action ceph-iscsi/0 create-target \
image-size=2G \
image-name=bob \
pool-name=superssd \
client-initiatorname=iqn.1993-08.org.debian:01:aaa2299be916 \
client-username=usera \
client-password=testpass
@ -136,3 +137,9 @@ Alternatively, configuration can be provided as part of a bundle:
cluster: cluster-space
```
<!-- LINKS -->
[cg]: https://docs.openstack.org/charm-guide
[cdg]: https://docs.openstack.org/project-deploy-guide/charm-deployment-guide
[juju-docs-spaces]: https://jaas.ai/docs/spaces
[juju-docs-actions]: https://jaas.ai/docs/actions

View File

@ -34,6 +34,10 @@ create-target:
type: string
default: disk_1
description: "Image name "
pool-name:
type: string
default: iscsi
description: "Name of ceph pool to use to back target "
client-initiatorname:
type: string
description: "The initiator name of the client that will mount the target"
@ -44,6 +48,7 @@ create-target:
type: string
description: "The CHAPs password to be created for the client"
required:
- pool-name
- image-size
- image-name
- client-initiatorname

View File

@ -35,11 +35,11 @@ options:
192.168.0.0/24).
If multiple networks are to be used, a space-delimited list of a.b.c.d/x
can be provided.
rbd-pool:
rbd-metadata-pool:
type: string
default: iscsi
description: |
RBD pool to use for iscsi backend.
RBD pool to use to store gateway configuration.
prefer-ipv6:
type: boolean
default: False

View File

@ -160,7 +160,7 @@ class CephISCSIGatewayCharmBase(ops_openstack.OSBaseCharm):
gw_client.add_disk_to_client(
target,
event.params['client-initiatorname'],
self.model.config['rbd-pool'],
self.model.config['pool-name'],
event.params['image-name'])
event.set_results({'iqn': target})
@ -203,7 +203,7 @@ class CephISCSIGatewayCharmBase(ops_openstack.OSBaseCharm):
def on_ceph_client_relation_joined(self, event):
logging.info("Requesting replicated pool")
self.ceph_client.create_replicated_pool(
self.model.config['rbd-pool'])
self.model.config['rbd-metadata-pool'])
logging.info("Requesting permissions")
self.ceph_client.request_ceph_permissions(
'ceph-iscsi',

View File

@ -5,7 +5,7 @@
logger_level = DEBUG
cluster_name = ceph
cluster_client_name = client.ceph-iscsi
pool = {{ options.rbd_pool }}
pool = {{ options.rbd_metadata_pool }}
#
# # Place a copy of the ceph cluster's admin keyring in the gateway's /etc/ceph
# # drectory and reference the filename here

View File

@ -8,7 +8,7 @@ applications:
series: focal
num_units: 2
options:
rbd-pool: tmbtil
rbd-metadata-pool: tmbtil
ceph-osd:
charm: cs:~gnuoy/ceph-osd-5
num_units: 3