[feature request] Add support of Cinder iSCSI/FC storage backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Fix Released
|
Wishlist
|
Hemanth Nakkina |
Bug Description
Hi there,
Currently, our Glance charm can use only Ceph as a storage backend; however, the upstream Glance can support some more different backends:
"A comma separated list of enabled glance stores. Some available options for this option are (filesystem, http, rbd, swift, cinder, vmware)"
The expectation in this case is to have a possibility to completely remove Ceph from the deployment equation (we have a customer who has FC-backed external storage array and almost no local drives, meaning we can't deploy Ceph).
As for now, both charms have a relation:
relations:
- - 'cinder:
- 'glance:
- - 'cinder:
- 'glance:
But it does nothing except of writing the "default_
Changed in charm-glance: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: | added: good-first-bug |
tags: | added: sts |
Changed in charm-glance: | |
assignee: | nobody → Hemanth Nakkina (hemanth-n) |
Changed in charm-glance: | |
milestone: | none → 22.04 |
tags: |
added: seg removed: sts |
Changed in charm-glance: | |
status: | Fix Committed → Fix Released |
The work required to use Cinder (iSCSI based) as a backend of Glance:
1. enable cinder backend per relation[1] %s\n" "$(iscsi-iname -p iqn.1993- 08.org. debian: 01)" | sudo tee /etc/iscsi/ initiatorname. iscsi
2. generate a unique initiator name
printf "InitiatorName=
3. restart open-iscsi service
Please note that Glance will attach and mount a Cinder volume in the Glance unit so it has to be a bare metal or a KVM machine instead of a LXD container to use iSCSI.
[1] For example: glance- api.conf{ .orig,} glance- api.conf. orig b/etc/glance/ glance- api.conf glance- api.conf. orig glance- api.conf mysql_charset = False
# git diff --no-index /etc/glance/
diff --git a/etc/glance/
index e85b4c1..1682794 100644
--- a/etc/glance/
+++ b/etc/glance/
@@ -21,12 +21,12 @@ db_enforce_
image_size_cap = 1099511627776
-enabled_backends = local:file
+enabled_backends = cinder-lvm:cinder
[glance_store]
-default_backend = local
+default_backend = cinder-lvm
filesystem_ store_datadir = /var/lib/ glance/ images/