From: Steven Dake Date: Wed, 30 May 2012 20:26:20 +0000 (-0700) Subject: Compress qcow2 files to take up less disk space X-Git-Tag: 2014.1~1775 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f924a681ea005650fae60fcc52c6dc66bfd9b1db;p=openstack-build%2Fheat-build.git Compress qcow2 files to take up less disk space This results in less data transferred during a glance registration. Change-Id: I36d17c6e1bf12e3e0f37394d5522c6f4f59313de Signed-off-by: Steven Dake --- diff --git a/heat/utils.py b/heat/utils.py index 29344611..4dd5a23e 100644 --- a/heat/utils.py +++ b/heat/utils.py @@ -235,7 +235,7 @@ def jeos_create(options, arguments, jeos_path, cfntools_path): sys.exit(1) logging.info('Converting raw disk image to a qcow2 image.') - os.system("qemu-img convert -O qcow2 %s %s" % (dsk_filename, + os.system("qemu-img convert -c -O qcow2 %s %s" % (dsk_filename, qcow2_filename)) logging.info('Registering JEOS image (%s) ' \