From 6358aa167e2212b62f1250fcfb08e13da53bcb1d Mon Sep 17 00:00:00 2001 From: tushargite96 Date: Tue, 4 Oct 2022 13:27:34 +0530 Subject: [PATCH] Toyou: Remove allocated_capacity_gb calculation toyou drivers are currently reporting allocated_capacity_gb. Drivers should not report this and let Cinder core take care of this value. Closes-Bug: #1991634 Change-Id: I62c3d41ef92e0d474f5315b5bb1186faa187d958 --- cinder/volume/drivers/toyou/acs5000/acs5000_common.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cinder/volume/drivers/toyou/acs5000/acs5000_common.py b/cinder/volume/drivers/toyou/acs5000/acs5000_common.py index a8ff3807222..52355a171ec 100644 --- a/cinder/volume/drivers/toyou/acs5000/acs5000_common.py +++ b/cinder/volume/drivers/toyou/acs5000/acs5000_common.py @@ -776,8 +776,6 @@ class Acs5000CommonDriver(san.SanDriver, pool_data['capacity']) / units.Gi free_capacity_gb = float( pool_data['free_capacity']) / units.Gi - allocated_capacity_gb = float( - pool_data['used_capacity']) / units.Gi total_volumes = None if 'total_volumes' in pool_data.keys(): total_volumes = int(pool_data['total_volumes']) @@ -788,7 +786,6 @@ class Acs5000CommonDriver(san.SanDriver, 'pool_name': pool_data['name'], 'total_capacity_gb': total_capacity_gb, 'free_capacity_gb': free_capacity_gb, - 'allocated_capacity_gb': allocated_capacity_gb, 'compression_support': True, 'reserved_percentage': self.configuration.reserved_percentage,