cinder/cinder/interface
Gorka Eguileor 39e518456c Fix reported storage_protocol
Cinder has multiple drivers reporting the same storage_protocol in their
stats but with different strings:

For example we have the following variants:
- nfs and NFS
- nveof, NVMe-oF, NVMeOF
- iSCSI, iscsi
- FC, fc, fibre_channel

This patch documents the right values (to use existing constants) and
makes the scheduler treat all variants as if they were equal.

This is done by changing the storage_protocol into a list in the
scheduler upon reception of the stats from the volume.  Most of the code
in the scheduler is already able to handle this, the only changes
necessary are on the filter and goodness function code, which will now
run the respective functions for all the different protocol alternatives
and select the right one, but only when the function actually uses the
storage_protocol.

The API will now report the preferred protocol name in operations like
"cinder get-pools --detail".

Closes-Bug: #1966103
Change-Id: I07d74078dbb102490dd722029e32c74cec3aa44c
2022-04-20 18:48:24 +02:00
..
__init__.py Add driver interface checks 2016-06-13 15:21:47 +00:00
backup_chunked_driver.py Fix doc comments 2016-11-11 18:53:29 +05:30
backup_driver.py Merge "Add cinder backup service initialize check" 2017-07-25 22:42:57 +00:00
base.py Replace getargspec with getfullargspec 2021-05-13 09:22:14 +08:00
fczm_driver.py Add driver interface checks 2016-06-13 15:21:47 +00:00
util.py Add get_driver_options method 2019-03-07 09:18:01 -05:00
volume_consistencygroup_driver.py Add driver interface checks 2016-06-13 15:21:47 +00:00
volume_driver.py Fix reported storage_protocol 2022-04-20 18:48:24 +02:00
volume_group_driver.py Add driver interface for groups 2016-11-30 13:48:45 -05:00
volume_manageable_driver.py Add driver interface documentation for list manageable 2017-06-29 01:27:00 +00:00
volume_snapshot_revert.py Add snapshots to minimum driver interface 2018-05-10 13:52:32 +00:00
volume_snapshotmanagement_driver.py Fix some format error in docstrings 2017-03-30 10:01:18 +08:00