Switch salt-formula-cinder to cinderv3 calls
The patch does the following:
- Switches salt-formula-cinder to use cinderv3 module
and state instead of cinderng.
- Adds retries to functions to avoid failing in case of
cinder service or any relevant service is not available
for some reason.
- Arranges function return data
Change-Id: I347cc3b8f53e85a2e1eaa08cf8637d0092cb6ef7
Related-PROD: PROD-23594 (PROD:23594)
diff --git a/_modules/cinderv3/volume.py b/_modules/cinderv3/volume.py
index deaaf6d..876416e 100644
--- a/_modules/cinderv3/volume.py
+++ b/_modules/cinderv3/volume.py
@@ -83,7 +83,7 @@
keys = {}
cloud_name = kwargs["cloud_name"]
cur_keys = keys_volume_type_get(
- volume_type_id, cloud_name=cloud_name)["body"]["extra_specs"]
+ volume_type_id, cloud_name=cloud_name)["extra_specs"]
for k, v in keys.items():
if (k, v) in cur_keys.items():