rbd-pool-name for create-target action is ignored
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Ceph iSCSI Charm |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When creating a target with the action like:
juju run --format=yaml ceph-iscsi/leader --wait=10m create-target \
client-
client-
client-
image-size=5G \
image-
rbd-
rbd-pool-
However, "iscsi" is the *metadata* pool name by default in the charm not for storing the actual data for tenants.
https:/
Two issues here:
https:/
1. The default value of ec-rbd-
2. The default value of rbd-pool-name in the action is "iscsi"
For 1. by having non-empty value for ec-rbd-
https:/
And it will set target_pool = ec_rbd_
So we shouldn't set the default value in the action.
For 2. "iscsi" is the metadata pool by default so we should not have the default value there and rely on the operator to specify an expected name. Because the pool name will be determined by the application name not by the charm itself.
WORKAROUND: specify an empty value explicitly to ec-rbd-
juju run --format=yaml ceph-iscsi/leader --wait=10m create-target \
client-
client-
client-
image-size=5G \
image-
rbd-
ec-rbd-
summary: |
- The default value as rbd-pool-name=iscsi uses metadata pool for data + rbd-pool-name for create-target action is ignored |
description: | updated |
tags: | added: field-ceph-dashboard |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- ceph-iscsi/ +/899858
Review: https:/