From 51441e369bb05e9cb9149ac9a7290fe541e3ed1a Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 17 Sep 2012 16:42:33 -0700 Subject: Inherit the base images qcow2 properties When creating an image based off a base image we likely want to ensure that we are inheriting some of that bases properties. This includes items like cluster_size and encryption for now. Likely it is not intended for those to differ in a child image. Blueprint backing-file-options Change-Id: I0d684ca9825a3d9c4310e4a6d4279f10331d210e --- nova/tests/test_libvirt.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nova/tests') diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index 060a8445a..9a348459b 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -3402,6 +3402,9 @@ class LibvirtUtilsTestCase(test.TestCase): def test_create_cow_image(self): self.mox.StubOutWithMock(utils, 'execute') + rval = ('', '') + utils.execute('env', 'LC_ALL=C', 'LANG=C', + 'qemu-img', 'info', '/some/path').AndReturn(rval) utils.execute('qemu-img', 'create', '-f', 'qcow2', '-o', 'backing_file=/some/path', '/the/new/cow') -- cgit