[Bug 895353] New: kiwi: bug with building virtualbox/libvirt vagrant boxes from single package
https://bugzilla.novell.com/show_bug.cgi?id=895353 https://bugzilla.novell.com/show_bug.cgi?id=895353#c0 Summary: kiwi: bug with building virtualbox/libvirt vagrant boxes from single package Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: System Imaging AssignedTo: ms@suse.com ReportedBy: aspiers@suse.com QAContact: adrian@suse.com CC: tboerger@suse.com Found By: Development Blocker: --- [ Discovered by tboerger via https://build.suse.de/package/live_build_log/home:tboerger:vagrant:boxes/min... ] If I set up a package in OBS with a .kiwi definition containing: <preferences> <type image="vmx" filesystem="ext3" boot="vmxboot/suse-SLES11" format="vagrant" bootloader="grub" kernelcmdline="nomodeset"> <vagrantconfig provider="virtualbox" virtualsize="50"/> <vagrantconfig provider="libvirt" virtualsize="50"/> [...] then after building the virtualbox box, it will fail with an error like this: [ 281s] Sep-05 13:08:18 <1> : EXEC [cd /usr/src/packages/KIWI-vmx/vmx && rm -f box.ovf box-disk1.vmdk sles-11sp3-minimal.x86_64-0.0.1.vmdk metadata.json Vagrantfile] [ 281s] Sep-05 13:08:18 <1> : Creating vagrant box for libvirt provider [ 281s] Sep-05 13:08:18 <1> : Creating qcow2 image...Sep-05 13:08:18 <1> : EXEC [/usr/bin/qemu-img convert -c -f raw /usr/src/packages/KIWI-vmx/vmx/sles-11sp3-minimal.x86_64-0.0.1.vmdk -O qcow2 /usr/src/packages/KIWI-vmx/vmx/sles-11sp3-minimal.x86_64-0.0.1.vmdk 2>&1] [ 281s] Sep-05 13:08:18 <3> : Couldn't create qcow2 image: qemu-img: Could not open '/usr/src/packages/KIWI-vmx/vmx/sles-11sp3-minimal.x86_64-0.0.1.vmdk': No such file or directory It seems to be attempting to create a qcow2 from a .vmdk which was already deleted?! Sounds like maybe a case of a variable being reused incorrectly in between box builds. Reversing the order of the <vagrantconfig> elements in the XML works around this issue (and then reveals other bugs, but that's another story). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895353 https://bugzilla.novell.com/show_bug.cgi?id=895353#c1 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Marcus Schaefer <ms@suse.com> 2014-09-08 12:48:59 UTC --- Thanks for reporting this, I can reproduce it and fixed it in commit: commit 873b4e6c0bdfe296e73a87d8e38ad006fc340684 Author: Marcus Schäfer <ms@suse.de> Date: Mon Sep 8 14:45:54 2014 +0200 Fixed building of vagrant boxes (bnc #895353) If multiple boxes for different providers are built at once kiwi uses the result of the first build as input for the next one which is wrong because it should use the same raw disk file for all format conversions -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com