Cinder doesn't honour volume type volume_backend_name property

Solution In Progress - Updated -

Issue

  • We have two storage backends defined in one availability zone:
$ openstack volume service list --long | grep BFI2-DH3-1104
| cinder-volume    | hostgroup@FA-IFA401-PURE01-BFI2-DH3-1104          | BFI2-DH3-1104 | enabled | up    | 2025-04-09T18:34:52.000000 | None            |
| cinder-volume    | hostgroup@FB-BFI2-DH3-1104-01                     | BFI2-DH3-1104 | enabled | up    | 2025-04-09T18:34:54.000000 | None            |
  • Then we have a volume type defined for each of these two backends, both having property 'volume_backend_name' set to the right storage backend:
$ openstack volume type list --long | grep BFI2-DH3-1104
| b4234672-8094-461f-a57a-1d3611a73803 | IFA400-RHOSP-ST01-DS11-External-NVMeoF | True      | None        | availability_zone='BFI2-DH3-1104', volume_backend_name='FA-IFA401-PURE01-BFI2-DH3-1104' |
| fd8df215-d23b-4368-b65a-76a950d01a4f | IFA400-RHOSP-ST01-DS01-External-NFS    | True      | None        | availability_zone='BFI2-DH3-1104', volume_backend_name='FB-BFI2-DH3-1104-01'            |
  • The problem we have, is that when try to create a volume on the FA-IFA401-PURE01-BFI2-DH3-1104 storage backend (by specifying the right volume type), it ends up on the 'wrong' storage backed:
$ openstack volume create --availability-zone BFI2-DH3-1104 --type IFA400-RHOSP-ST01-DS11-External-NVMeoF --size 100 storage_rack_1_nvmeo 

$ openstack volume show 459f6cf0-e115-4f1b-91a1-d30955f005d8 -c os-vol-host-attr:host -c type
+-----------------------+---------------------------------------------------+
| Field                 | Value                                             |
+-----------------------+---------------------------------------------------+
| os-vol-host-attr:host | hostgroup@FB-BFI2-DH3-1104-01#FB-BFI2-DH3-1104-01 |
| type                  | IFA400-RHOSP-ST01-DS11-External-NVMeoF            |
+-----------------------+---------------------------------------------------+
  • That's FB-BFI2-DH3-1104-01 instead of FA-IFA401-PURE01-BFI2-DH3-1104.

  • Cinder scheduler filter is set to 'AvailabilityZoneFilter,DriverFilter'.

Environment

  • Red Hat OpenStack Platform 17.1 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content