"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/flows/manager/create_volume.py" between
cinder-17.0.0.tar.gz and cinder-17.0.1.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 "Victoria" series (latest release).

create_volume.py  (cinder-17.0.0):create_volume.py  (cinder-17.0.1)
skipping to change at line 495 skipping to change at line 495
:returns: tuple (source_pass, new_pass, new_key_id) :returns: tuple (source_pass, new_pass, new_key_id)
""" """
keymgr = key_manager.API(CONF) keymgr = key_manager.API(CONF)
key = keymgr.get(context, encryption['encryption_key_id']) key = keymgr.get(context, encryption['encryption_key_id'])
source_pass = binascii.hexlify(key.get_encoded()).decode('utf-8') source_pass = binascii.hexlify(key.get_encoded()).decode('utf-8')
new_key_id = volume_utils.create_encryption_key(context, new_key_id = volume_utils.create_encryption_key(context,
keymgr, keymgr,
volume.volume_type_id) volume.volume_type_id)
new_key = keymgr.get(context, encryption['encryption_key_id']) new_key = keymgr.get(context, new_key_id)
new_pass = binascii.hexlify(new_key.get_encoded()).decode('utf-8') new_pass = binascii.hexlify(new_key.get_encoded()).decode('utf-8')
return (source_pass, new_pass, new_key_id) return (source_pass, new_pass, new_key_id)
def _rekey_volume(self, context, volume): def _rekey_volume(self, context, volume):
"""Change encryption key on volume. """Change encryption key on volume.
:returns: model update dict :returns: model update dict
""" """
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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