r/openstack • u/KucinGantenk • Jul 07 '25
using san storage as storage backend
Hi,
I'm trying to configure san storage as storage backend. my openstack cluster as set up using kolla-ansible. i did the following:
at deployer: edited /etc/kolla/config/cinder.conf so it has following lines:
[DEFAULT] enabled_backends = rbd-1,hitachi
[hitachi] use_multipath_for_image_xfer = true volume_driver = cinder.volume.drivers.hitachi.hbsd_fc.HBSDFCDriver volume_backend_name = hitachi san_ip = a.b.c.d san_login = aaaa san_password = bbbb hitachi_storage_id = cccc hitachi_pools = POOL0 hitachi_target_ports = CL3-A,CL7-A,CL4-A,CL8-A hitachi_compute_target_ports = CL3-A,CL7-A,CL4-A,CL8-A suppress_requests_ssl_warnings = true hitachi_group_create = true availability_zone = az-san
- reconfigure my cluster:
# kolla-ansible -i ./inventory reconfigure -t cinder
3. add new volume type:
openstack volume type create --description "hitachi vsp" --availability-zone "az-san" --property "volume_backend_name=hitachi" san-storage
# openstack volume type show san-storage
+--------------------+-------------------------------------------------------------------+
| Field | Value |
+--------------------+-------------------------------------------------------------------+
| access_project_ids | None |
| description | hitachi vsp |
| id | 46577506-ecae-478d-a376-02db918a6bf0 |
| is_public | True |
| name | san-storage |
| properties | RESKEY:availability_zones='az-san', volume_backend_name='hitachi' |
| qos_specs_id | None |
+--------------------+-------------------------------------------------------------------+4. create new aggregate - because not all my compute has fiber-channel card.
# openstack aggregate show san-hosts
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| availability_zone | az-san |
| created_at | 2025-07-05T23:42:43.000000 |
| deleted_at | None |
| hosts | dev-compute5, dev-compute6 |
| id | 4 |
| is_deleted | False |
| name | san-hosts |
| properties | |
| updated_at | None |
| uuid | bf82c6e3-628e-4c02-88d9-f531e39be22f |
+-------------------+--------------------------------------+5. check compute availability zone:
# openstack availability zone list --compute
+-----------+-------------+
| Zone Name | Zone Status |
+-----------+-------------+
| az-san | available |
| internal | available |
| nova | available |
+-----------+-------------+6. check volume availability zone:
openstack availability zone list --volume
+-----------+-------------+
| Zone Name | Zone Status |
+-----------+-------------+
| nova | available |
+-----------+-------------+I expect to see 'az-san' in volume availability zone list.
what did I miss here?
Thanks.
Regards
2
u/KucinGantenk Jul 07 '25 edited Jul 10 '25
add:
i tried to remove the availability_zone property from volume type and create a new volume. the volume was created, so the backend configuration should be already good. only need to add the volume availability_zone.
add:
finally find the answer: inside /etc/kolla/config/cinder.conf add following line:
backend_availability_zone = az-sannow i got this:
2
u/IllustriousError6226 Jul 07 '25
Change your availability_zone to storage_availability_zone on your backend config. I used something like this for lvm cinder backend and probably yours also support this.