"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/manager.py" between
cinder-13.0.2.tar.gz and cinder-13.0.3.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Rocky" series (latest release).

manager.py  (cinder-13.0.2):manager.py  (cinder-13.0.3)
skipping to change at line 1615 skipping to change at line 1615
# NOTE(mnaser): The following configures for per-GB QoS # NOTE(mnaser): The following configures for per-GB QoS
if specs is not None: if specs is not None:
volume_size = int(volume.size) volume_size = int(volume.size)
tune_opts = ('read_iops_sec', 'read_bytes_sec', tune_opts = ('read_iops_sec', 'read_bytes_sec',
'write_iops_sec', 'write_bytes_sec', 'write_iops_sec', 'write_bytes_sec',
'total_iops_sec', 'total_bytes_sec') 'total_iops_sec', 'total_bytes_sec')
for option in tune_opts: for option in tune_opts:
option_per_gb = '%s_per_gb' % option option_per_gb = '%s_per_gb' % option
option_per_gb_min = '%s_per_gb_min' % option option_per_gb_min = '%s_per_gb_min' % option
option_max = '%s_max' % option
if option_per_gb in specs: if option_per_gb in specs:
minimum_value = specs.pop(option_per_gb_min, 0) minimum_value = int(specs.pop(option_per_gb_min, 0))
value = int(specs[option_per_gb]) * volume_size value = int(specs[option_per_gb]) * volume_size
specs[option] = max(minimum_value, value) per_gb_value = max(minimum_value, value)
max_value = int(specs.pop(option_max, per_gb_value))
specs[option] = min(per_gb_value, max_value)
specs.pop(option_per_gb) specs.pop(option_per_gb)
qos_spec = dict(qos_specs=specs) qos_spec = dict(qos_specs=specs)
conn_info['data'].update(qos_spec) conn_info['data'].update(qos_spec)
# Add access_mode to connection info # Add access_mode to connection info
volume_metadata = volume.admin_metadata volume_metadata = volume.admin_metadata
access_mode = volume_metadata.get('attached_mode') access_mode = volume_metadata.get('attached_mode')
if access_mode is None: if access_mode is None:
# NOTE(zhiyan): client didn't call 'os-attach' before # NOTE(zhiyan): client didn't call 'os-attach' before
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

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