From f924a681ea005650fae60fcc52c6dc66bfd9b1db Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 30 May 2012 13:26:20 -0700 Subject: [PATCH] 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 --- heat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ' \ -- 2.45.2