cinder/cinder/volume/targets
Gorka Eguileor 68311a0794 Fix cacheable capability
When using the LVM cinder driver the cacheable capability is not being
reported by the backend to the scheduler when the transport protocol is
NVMe-oF (nvmet target driver), but it is properly reported if it's the
LIO target driver.

This also happens with other drivers that should be reporting that they
are cacheable.

This happens because even if the volume manager correctly uses the
"storage_protocol" reported by the drivers on their stats to add the
"cacheable" capability for iSCSI, FC, and NVMe-oF protocols, it isn't
taking into account all the variants these have:

- FC, fc, fibre_channel
- iSCSI, iscsi
- NVMe-oF, nvmeof, NVMeOF

Same thing happens for the shared_targets of the volumes, which are not
missing an iSCSI variant.

This patch creates constants for the different storge protocols to try
to avoid these variants (as agreed on the PTG) and also makes the
cacheable and shared_targets check against all the existing variants.

This change facilitates identifying NVMe-oF drivers (for bug 1961102)
for the shared_targets part.

Closes-Bug: #1969366
Related-Bug: #1961102
Change-Id: I1333b0471974e94eb2b3b79ea70a06e0afe28cd9
2022-04-20 18:47:46 +02:00
..
__init__.py Add iSCSI Target objects as independent objects 2014-11-25 09:09:00 -07:00
cxt.py Remove log translations 2017-03-19 14:59:57 +00:00
driver.py db: Remove 'db' argument from various managers 2021-08-27 15:13:21 +01:00
fake.py Remove unused __init__ 2016-07-04 10:36:56 +08:00
iet.py Mark IET target driver deprecated 2020-01-08 11:01:50 -06:00
iscsi.py Fix cacheable capability 2022-04-20 18:47:46 +02:00
lio.py [Trivial fix]Remove unnecessary slash 2019-05-06 13:56:27 +08:00
nvmeof.py Fix cacheable capability 2022-04-20 18:47:46 +02:00
nvmet.py LVM: Added NVMe TCP support for the nvmet target 2021-05-18 12:01:15 +02:00
scst.py Raise hacking version to 2.0.0 2020-01-02 14:42:49 -06:00
spdknvmf.py [SPDK] Add https protocol option to communicate with SPDK 2020-05-21 16:53:40 +02:00
tgt.py Move tgt targets to privsep 2018-10-24 14:28:59 -04:00