Open osallou opened 10 years ago
Could you upload the corresponding logfile or try again with --debug
? I don't see any output by parted.
It's not tested on sid yet, btw. Only wheezy.
here is log with --debug
Loaded provider virtualbox' Loaded plugin
user_packages'
Tasklist:
<class 'common.tasks.workspace.CreateWorkspace'>
<class 'common.tasks.packages.ImagePackages'>
<class 'plugins.user_packages.user_packages.AddUserPackages'>
<class 'providers.virtualbox.tasks.packages.ImagePackages'>
<class 'common.tasks.packages.HostPackages'>
<class 'common.tasks.host.CheckPackages'>
<class 'common.tasks.loopback.Create'>
<class 'common.tasks.volume.Attach'>
<class 'common.tasks.partitioning.PartitionVolume'>
<class 'common.tasks.partitioning.MapPartitions'>
<class 'common.tasks.filesystem.Format'>
<class 'common.tasks.filesystem.TuneVolumeFS'>
<class 'common.tasks.filesystem.CreateMountDir'>
<class 'common.tasks.filesystem.MountRoot'>
<class 'common.tasks.filesystem.CreateBootMountDir'>
<class 'common.tasks.filesystem.MountBoot'>
<class 'common.tasks.bootstrap.Bootstrap'>
<class 'common.tasks.filesystem.MountSpecials'>
<class 'common.tasks.network.RemoveHostname'>
<class 'plugins.user_packages.user_packages.AddLocalUserPackages'>
<class 'common.tasks.initd.ResolveInitScripts'>
<class 'common.tasks.initd.InstallInitScripts'>
<class 'common.tasks.locale.SetTimezone'>
<class 'common.tasks.network.ConfigureNetworkIF'>
<class 'common.tasks.apt.DisableDaemonAutostart'>
<class 'common.tasks.filesystem.FStab'>
<class 'common.tasks.boot.BlackListModules'>
<class 'common.tasks.boot.DisableGetTTYs'>
<class 'common.tasks.locale.GenerateLocale'>
<class 'common.tasks.apt.AptSources'>
<class 'common.tasks.apt.AptUpgrade'>
<class 'providers.virtualbox.tasks.boot.ConfigureGrub'>
<class 'common.tasks.network.RemoveDNSInfo'>
<class 'common.tasks.security.EnableShadowConfig'>
<class 'common.tasks.apt.AptClean'>
<class 'common.tasks.cleanup.ClearMOTD'>
<class 'common.tasks.apt.PurgeUnusedPackages'>
<class 'common.tasks.apt.EnableDaemonAutostart'>
<class 'common.tasks.cleanup.CleanTMP'>
<class 'common.tasks.filesystem.UnmountBoot'>
<class 'common.tasks.filesystem.UnmountSpecials'>
<class 'common.tasks.filesystem.UnmountRoot'>
<class 'common.tasks.partitioning.UnmapPartitions'>
<class 'common.tasks.volume.Detach'>
<class 'common.tasks.filesystem.DeleteMountDir'>
<class 'common.tasks.loopback.MoveImage'>
<class 'common.tasks.workspace.DeleteWorkspace'>
Creating workspace
Determining required image packages
Adding user defined packages to the image packages
Determining required image packages
Determining required host packages
Checking installed host packages
Executing: /usr/bin/dpkg-query -s qemu-utils
Package: qemu-utils
Status: install ok installed
Priority: optional
Section: otherosfs
Installed-Size: 2439
Maintainer: Debian QEMU Team pkg-qemu-devel@lists.alioth.debian.org
Architecture: amd64
Multi-Arch: foreign
Source: qemu
Version: 1.7.0+dfsg-2
Depends: libaio1 (>= 0.3.93), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), libglib2.0-0 (>= 2.24.0), libiscsi1 (>= 1.4), libssh2-1 (>= 1.2.8), libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4)
Recommends: sharutils
Suggests: debootstrap
Description: QEMU utilities
QEMU is a fast processor emulator: currently the package supports
ARM, CRIS, i386, M68k (ColdFire), MicroBlaze, MIPS, PowerPC, SH4,
SPARC and x86-64 emulation. By using dynamic translation it achieves
reasonable speed while being easy to port on new host CPUs.
.
This package provides QEMU related utilities:
Argg, previous insertion lost formating, sending file as attachement
2013/12/5 Anders Ingemann notifications@github.com
Could you upload the corresponding logfile or try again with --debug? I don't see any output by parted.
It's not tested on sid yet, btw. Only wheezy.
— Reply to this email directly or view it on GitHubhttps://github.com/andsens/build-debian-cloud/issues/115#issuecomment-29893799 .
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
Attachment not working, here is a gist link to log:
I have tested on wheezy in a virtualbox (to generate a virtualbox :-) ), and it works. So there may be an issue with upcoming packages....
Grub install fails however on Wheezy with error:
Executing: /usr/sbin/chroot /target/af963f8b/root /usr/sbin/grub-install /dev/dm-0
/usr/sbin/grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/usr/sbin/grub-setup: error: embedding is not possible, but this is required for cross-disk install.
Debug log at: https://gist.github.com/osallou/7805556
My manifest: "volume": { "backing": "raw", "partitions": { "type": "mbr", "boot": { "size": 32, "filesystem": "ext2" }, "root": { "size": 1000, "filesystem": "ext4" }, "swap": {"size": 128} } },
I copied the VirtualBox example, just replacing vdi by raw. This may be a config issue with mbr boot partition but I see no documentation on this (and is set as this in virtualbox manifest)
So this is the actual error:
Executing: /sbin/parted --script --align none /dev/loop2 -- mkpart primary 1MiB 33MiB Error: Error informing the kernel about modifications to partition /dev/loop2p1 -- Invalid argument. This means Linux won't know about any changes you made to /dev/loop2p1 until you reboot -- so you shouldn't mount it or use it in any way before rebooting. Error: Failed to add partition 1 (Invalid argument)
You should create another issue for the grub problem.
For info, I tried a reboot of the server, just in case..., but this is the same.
Are you still seeing this error?
did'nt test it with latest. I will test next week and let you know
Hi, I tried to create an image with the raw backing volume and it creates an error on parted:
Partitioning the volume Command '/sbin/parted --script --align none /dev/loop2 -- mkpart primary 1MiB 33MiB' returned non-zero exit status 1 Traceback (most recent call last): File "/home/osallou/build-debian-cloud/base/main.py", line 40, in run tasklist.run(info=bootstrap_info, dry_run=args.dry_run) File "/home/osallou/build-debian-cloud/base/tasklist.py", line 30, in run task.run(info) File "/home/osallou/build-debian-cloud/common/tasks/partitioning.py", line 12, in run info.volume.partition_map.create(info.volume) File "/home/osallou/build-debian-cloud/base/fs/partitionmaps/abstract.py", line 28, in create self.fsm.create(volume=volume) File "/usr/local/lib/python2.7/dist-packages/fysom/init.py", line 131, in fn if self._before_event(e) is False: File "/usr/local/lib/python2.7/dist-packages/fysom/init.py", line 151, in _before_event return getattr(self, fnname)(e) File "/home/osallou/build-debian-cloud/base/fs/partitionmaps/mbr.py", line 31, in _before_create partition.create(volume) File "/home/osallou/build-debian-cloud/base/fs/partitions/base.py", line 22, in create self.fsm.create(volume=volume) File "/usr/local/lib/python2.7/dist-packages/fysom/init.py", line 131, in fn if self._before_event(e) is False: File "/usr/local/lib/python2.7/dist-packages/fysom/init.py", line 151, in _before_event return getattr(self, fnname)(e) File "/home/osallou/build-debian-cloud/base/fs/partitions/mbr.py", line 19, in _before_create '--', parted_command]) File "/home/osallou/build-debian-cloud/common/tools.py", line 7, in log_check_call raise CalledProcessError(status, ' '.join(command), '\n'.join(stderr)) CalledProcessError: Command '/sbin/parted --script --align none /dev/loop2 -- mkpart primary 1MiB 33MiB' returned non-zero exit status 1 Rolling back
My server is using sid.