From 7f1b1b69d70a6c7ee37b0f8c907473ddf5c08cac Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 15 Mar 2013 16:57:47 -0400 Subject: Revert 1154253 causes XenServer image compat issue In 1154253 we: Drop gzip flag from tar command for OVF archives While support more OVF file formats is a worthy goal the approach in 1154253 is going to cause serious issues for existing Nova XenServer users who are already zipping their OVS images. I would also point out that our utils.py xenserver plugins still zips tarballs we create (see create_tarball) so the new code causes internal inconsistencies as well. This should fix SmokeStack. Fixes LP Bug #1155783. Change-Id: Iff6db314c0dec6df2e48d98db2a547f6624b9d9a --- plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py b/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py index 850d6ab98..2a5d3d9ae 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/utils.py @@ -345,7 +345,7 @@ def extract_tarball(fileobj, path, callback=None): :param path: path to extract tarball into :param callback: optional callback to call on each chunk read """ - tar_cmd = "tar -x --directory=%(path)s" % locals() + tar_cmd = "tar -zx --directory=%(path)s" % locals() tar_proc = make_subprocess(tar_cmd, stderr=True, stdin=True) while True: -- cgit