"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "manila/share/drivers/dell_emc/plugins/unity/connection.py" between
manila-8.1.3.tar.gz and manila-8.1.4.tar.gz

About: OpenStack Manila provides “Shared Filesystems as a service”.
The "Stein" series (maintained release).

connection.py  (manila-8.1.3):connection.py  (manila-8.1.4)
skipping to change at line 399 skipping to change at line 399
for pool in self.client.get_pool(): for pool in self.client.get_pool():
if pool.name in self.pool_set: if pool.name in self.pool_set:
# the unit of following numbers are GB # the unit of following numbers are GB
total_size = float(pool.size_total) total_size = float(pool.size_total)
used_size = float(pool.size_used) used_size = float(pool.size_used)
pool_stat = { pool_stat = {
'pool_name': pool.name, 'pool_name': pool.name,
'thin_provisioning': True, 'thin_provisioning': True,
'total_capacity_gb': total_size, 'total_capacity_gb': enas_utils.bytes_to_gb(total_size),
'free_capacity_gb': total_size - used_size, 'free_capacity_gb':
'allocated_capacity_gb': used_size, enas_utils.bytes_to_gb(total_size - used_size),
'provisioned_capacity_gb': float(pool.size_subscribed), 'allocated_capacity_gb': enas_utils.bytes_to_gb(used_size),
'qos': False, 'qos': False,
'reserved_percentage': self.reserved_percentage, 'reserved_percentage': self.reserved_percentage,
'max_over_subscription_ratio': 'max_over_subscription_ratio':
self.max_over_subscription_ratio, self.max_over_subscription_ratio,
} }
stats_dict['pools'].append(pool_stat) stats_dict['pools'].append(pool_stat)
if not stats_dict.get('pools'): if not stats_dict.get('pools'):
message = _("Failed to update storage pool.") message = _("Failed to update storage pool.")
LOG.error(message) LOG.error(message)
 End of changes. 1 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)