[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
(From my limited time looking at this) I would guess commit e3f1d2a8201e552837f77ce38613a24888cc in libvirt might change the semantics of creating volumes. So _create_volume_from_fobj_with_size in uvtool might need to be modified to take into account those changes. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: uvtool (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
** Changed in: uvtool (Ubuntu) Importance: Undecided => High ** Changed in: uvtool (Ubuntu) Milestone: None => ubuntu-15.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
This bug was fixed in the package libvirt - 1.2.16-2ubuntu4 --- libvirt (1.2.16-2ubuntu4) wily; urgency=medium * d/p/{storage-allow-zero-capacity-with-non-backing-file-to.patch, tests-add-vol-qcow2-zerocapacity-test-to-storagevolx.patch} added to address (LP: #1459748). Allow zero capacity storage creation with non-backing file. -- Chris J Arges Fri, 10 Jul 2015 12:50:50 -0500 ** Changed in: libvirt (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
I don't think this is related to qemu, it may be a libvirt change. A simpler reproducer: echo "test0" > vol.xml virsh vol-create uvtool vol.xml shows the error: error: internal error: Child process (/usr/bin/qemu-img create -f qcow2 -o compat=0.10 /var/lib/uvtool/libvirt/images/test) unexpected exit status 1: qemu-img: /var/lib/uvtool/libvirt/images/test: Image creation needs a size parameter However if you run the same command in an older version this works. The qemu-img command fails in all versions, so I suspect a libvirt change. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
In the change between vivid (1.2.12) and wily (1.2.15) the following patch from upstream was applied: commit fbcf7da95b872ac45cabc4356fc9c06e809d0237 Author: Ján Tomko Date: Thu Jul 31 18:07:56 2014 +0200 Introduce struct _virStorageBackendQemuImgInfo This will contain the data required for creating the qemu-img command line without having access to the volume definition. diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index fdda0dc..f5b95ec 100644 The core issue is when the qemu-img command builder includes the size string ("%llk", size_arg). In vivid, if you are not converting, it creates it (0k) in our case, which is completely valid parameter to qemu-img. In wily (1.2.15) this is now a new condition see this diff: -if (convert) -virCommandAddArg(cmd, inputPath); -virCommandAddArg(cmd, vol->target.path); -if (!convert) -virCommandAddArgFormat(cmd, "%lluK", size_arg); +if (info.inputPath) +virCommandAddArg(cmd, info.inputPath); +virCommandAddArg(cmd, info.path); +if (!info.inputPath && info.size_arg) +virCommandAddArgFormat(cmd, "%lluK", info.size_arg); I suspect that we might need to report this upstream. If we don't pass a capacity (or pass it as 0) then the if (!info.inputPath && info.size_arg) will always fail: if (1 && 0), and it will stay broken I think it's safe to drop the && info.size_arg check since it's safe to call qemu-img with size 0: (foudres) libvirt % sudo /usr/bin/qemu-img create -f qcow2 -o compat=0.10 /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= qemu-img: /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ=: Image creation needs a size parameter (foudres) libvirt % sudo /usr/bin/qemu-img create -f qcow2 -o compat=0.10 /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= 0K Formatting '/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ=', fmt=qcow2 size=0 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off (foudres) libvirt % ls -al /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= -rw-r--r-- 1 root root 196608 Jun 29 12:12 /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= (foudres) libvirt % sudo qemu-img info /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= image: /var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZDpzZXJ2ZXI6MTUuMTA6YW1kNjQgMjAxNTA2MjQ= file format: qcow2 virtual size: 0 (0 bytes) disk size: 192K cluster_size: 65536 Format specific information: compat: 0.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
** Also affects: libvirt (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
** Patch added: "libvirt_storage_create_dont_check_size_arg.patch" https://bugs.launchpad.net/ubuntu/+source/uvtool/+bug/1459748/+attachment/4422050/+files/libvirt_storage_create_dont_check_size_arg.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
The attachment "libvirt_storage_create_dont_check_size_arg.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
This patch causes the libvirt test 'storagevolxml2argvtest' to fail. A few changes as discussed in channel also cause failures. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
Test build with another attempt: http://people.canonical.com/~arges/lp1459748/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
The rebuilt packages with the updated check resolves the sync issue for me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
** Changed in: uvtool (Ubuntu) Status: Confirmed => Invalid ** Changed in: libvirt (Ubuntu) Status: New => In Progress ** Changed in: libvirt (Ubuntu) Importance: Undecided => Medium ** Changed in: uvtool (Ubuntu) Importance: High => Critical ** Changed in: uvtool (Ubuntu) Importance: Critical => Undecided ** Changed in: libvirt (Ubuntu) Assignee: (unassigned) => Chris J Arges (arges) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
Posted patches here: http://www.redhat.com/archives/libvir-list/2015-June/msg01681.html -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1459748] Re: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter
** Tags removed: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459748 Title: libvirt.libvirtError: internal error: Child process () unexpected exit status 1: qemu-img: Image creation needs a size parameter To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1459748/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs