cinder/cinder/api/views
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 Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
availability_zones.py Fix and enable gating on H402 2013-12-14 12:34:24 +01:00
backups.py Fix issue of getting detail backups list info 2019-08-02 03:17:29 +00:00
capabilities.py Fix reported storage_protocol 2022-04-20 18:48:24 +02:00
cgsnapshots.py CG API changes for migrating CGs 2016-11-22 19:08:20 -05:00
consistencygroups.py CG API changes for migrating CGs 2016-11-22 19:08:20 -05:00
limits.py Cleanup limit view name processing 2017-01-06 15:59:38 -06:00
manageable_snapshots.py Remove unused LOG 2016-07-05 10:36:28 +08:00
manageable_volumes.py Remove unused LOG 2016-07-05 10:36:28 +08:00
qos_specs.py To fix miscellaneous bugs in OVOs 2016-10-31 22:50:41 +00:00
scheduler_stats.py Fix reported storage_protocol 2022-04-20 18:48:24 +02:00
snapshots.py Support count info in List&Detail APIs 2017-10-25 08:43:47 +00:00
transfers.py Improve volume transfer records 2019-01-14 11:50:43 +08:00
types.py Add the ability to update type public status 2015-08-18 09:36:25 +08:00
versions.py Remove six of dir cinder/api/* 2020-10-07 14:20:48 +08:00