"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/image/image_utils.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.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 "Train" series (latest release).

image_utils.py  (cinder-15.0.1):image_utils.py  (cinder-15.1.0)
skipping to change at line 65 skipping to change at line 65
image_opts = [ image_opts = [
cfg.StrOpt('image_conversion_dir', cfg.StrOpt('image_conversion_dir',
default='$state_path/conversion', default='$state_path/conversion',
help='Directory used for temporary storage ' help='Directory used for temporary storage '
'during image conversion'), 'during image conversion'),
cfg.BoolOpt('image_compress_on_upload', cfg.BoolOpt('image_compress_on_upload',
default=True, default=True,
help='When possible, compress images uploaded ' help='When possible, compress images uploaded '
'to the image service'), 'to the image service'),
cfg.IntOpt('image_conversion_cpu_limit',
default=60,
help='CPU time limit in seconds to convert the image'),
cfg.IntOpt('image_conversion_address_space_limit',
default=1,
help='Address space limit in gigabytes to convert the image'),
] ]
CONF = cfg.CONF CONF = cfg.CONF
CONF.register_opts(image_opts) CONF.register_opts(image_opts)
QEMU_IMG_LIMITS = processutils.ProcessLimits( QEMU_IMG_LIMITS = processutils.ProcessLimits(
cpu_time=30, cpu_time=CONF.image_conversion_cpu_limit,
address_space=1 * units.Gi) address_space=CONF.image_conversion_address_space_limit * units.Gi)
QEMU_IMG_FORMAT_MAP = { QEMU_IMG_FORMAT_MAP = {
# Convert formats of Glance images to how they are processed with qemu-img. # Convert formats of Glance images to how they are processed with qemu-img.
'iso': 'raw', 'iso': 'raw',
'vhd': 'vpc', 'vhd': 'vpc',
'ploop': 'parallels', 'ploop': 'parallels',
} }
QEMU_IMG_FORMAT_MAP_INV = {v: k for k, v in QEMU_IMG_FORMAT_MAP.items()} QEMU_IMG_FORMAT_MAP_INV = {v: k for k, v in QEMU_IMG_FORMAT_MAP.items()}
QEMU_IMG_VERSION = None QEMU_IMG_VERSION = None
 End of changes. 2 change blocks. 
2 lines changed or deleted 8 lines changed or added

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