Fix backward compatibility of compare volume stats
When we fixed tempest test "test_compare_volume_stats_values" (Change-Id
I04d0eaa1f6dba16bd11052f91a3d1d0967029ea6) to make it work with the
"storage_protocol" canonical names that are returned by Cinder master on
the get-pools call (after Change-Id Change-Id:
I07d74078dbb102490dd722029e32c74cec3aa44c) we made the test non-backward
compatible, because stable releases don't return canonical names.
For example the NFS driver will return value "nfs" in stable releases,
but the test expects it to be "NFS" and thus will fail.
This patch fixes this by converting "storage_protocol" for the result of
both the get-pools and get-capabilities calls.
So we have 3 different cases:
- Current cinder master code --> Should work with current test
- Stable cinder branches with some backends (eg: NFS) --> Fixed by this
patch
- Future Cinder when get-capabilities returns canonical name (Change-Id
I8b21fbc2c8ef29689f101f6c397550604662cd8a) --> Works with or without
this patch.
Reviewed: https:/ /review. opendev. org/c/openstack /tempest/ +/847952 /opendev. org/openstack/ tempest/ commit/ d30577d07ceb184 f7cf82b2d2f000a 6381fb024d
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d30577d07ceb184 f7cf82b2d2f000a 6381fb024d
Author: Gorka Eguileor <email address hidden>
Date: Tue Jun 28 12:58:43 2022 +0200
Fix backward compatibility of compare volume stats
When we fixed tempest test "test_compare_ volume_ stats_values" (Change-Id dba16bd11052f91 a3d1d0967029ea6 ) to make it work with the protocol" canonical names that are returned by Cinder master on b102490dd722029 e32c74cec3aa44c ) we made the test non-backward
I04d0eaa1f6
"storage_
the get-pools call (after Change-Id Change-Id:
I07d74078db
compatible, because stable releases don't return canonical names.
For example the NFS driver will return value "nfs" in stable releases,
but the test expects it to be "NFS" and thus will fail.
This patch fixes this by converting "storage_protocol" for the result of
both the get-pools and get-capabilities calls.
So we have 3 different cases:
- Current cinder master code --> Should work with current test
- Stable cinder branches with some backends (eg: NFS) --> Fixed by this
patch
- Future Cinder when get-capabilities returns canonical name (Change-Id c8ef29689f101f6 c397550604662cd 8a) --> Works with or without
I8b21fbc2
this patch.
Closes-Bug: #1979826 a0bda18cbf7d315 825562042aa
Change-Id: I56099463791bb9