Page MenuHomePhabricator
Paste P5945

Error on building new Debian Jessie image
ActivePublic

Authored by madhuvishy on Aug 30 2017, 5:26 AM.
Tags
None
Referenced Files
F9216289: Error on building new Debian Jessie image
Aug 30 2017, 5:26 AM
Subscribers
None
root@labs-bootstrapvz-jessie:/target# bootstrap-vz /etc/bootstrap-vz/manifests/labs-jessie.manifest.yaml
Add puppet package
Adding packages from the manifest
Adding sources from the manifest
Adding default release sources
Adding grub package
Checking whether the assets path exist
Adding commands required for formatting
Adding commands required for creating loopback volumes
Adding openssh package
Adding image packages required for kvm
Adding commands required for bootstrapping Debian
Creating workspace
Adding `unattended-upgrades' to the image packages
Adding locale package to bootstrap installation
Adding commands required for partitioning the volume
Checking availability of external commands
Creating a loopback volume
Attaching the volume
Partitioning the volume
Mapping volume partitions
Formatting the volume
mke2fs 1.42.12 (29-Aug-2014)
Tuning the bootstrap volume filesystem
Creating mountpoint for the root partition
Mounting the root partition
Installing Debian
Mounting special block devices
Copying mtab from host system
Installing trusted keys
Writing aptitude sources to disk
Generating system locale
Updating the package cache
Adding standard packages from tasksel
Disabling daemon autostart
Upgrading packages and fixing broken dependencies
Installing packages
Extracting templates from packages: 100%
Determining kernel version
Enabling shadowconfig
Copying puppet assets
Configuring network interfaces
Adding partitions to the fstab
Configuring grub
Installing grub 2
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.3-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.3-amd64
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
File descriptor 3 (/var/log/bootstrap-vz/20170830051446_labs-jessie.manifest.log) leaked on lvs invocation. Parent PID 23419: /bin/sh
File descriptor 11 (/dev/urandom) leaked on lvs invocation. Parent PID 23419: /bin/sh
Found Debian GNU/Linux (8.9) on /dev/loop0p3
Found Debian GNU/Linux (8.3) on /dev/vda3
done
Rebuilding initramfs
Writing the periodic upgrades apt config file
Setting the selected timezone
Adding SSH private key generation init scripts
Installing startup scripts
Setting the selected local timezone (copy)
Copying user specified files into the image
Executing commands in the image
E: Sub-process /usr/bin/dpkg returned an error code (1)
Command 'SUDO_FORCE_REMOVE=yes chroot /target/eee92eeb/root apt-get --force-yes --assume-yes install sudo-ldap' returned non-zero exit status 100
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/base/main.py", line 109, in run
tasklist.run(info=bootstrap_info, dry_run=dry_run)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/base/tasklist.py", line 43, in run
task.run(info)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/plugins/commands/tasks.py", line 15, in run
log_check_call(command, shell=shell)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/common/tools.py", line 13, in log_check_call
raise e
CalledProcessError: Command 'SUDO_FORCE_REMOVE=yes chroot /target/eee92eeb/root apt-get --force-yes --assume-yes install sudo-ldap' returned non-zero exit status 100
Rolling back
Unmounting the bootstrap volume
Deleting mountpoint for the bootstrap volume
Removing volume partitions mapping
Detaching the volume
Deleting the volume
Deleting workspace
Successfully completed rollback
Traceback (most recent call last):
File "/usr/local/bin/bootstrap-vz", line 9, in <module>
load_entry_point('bootstrap-vz==0.9.10', 'console_scripts', 'bootstrap-vz')()
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/base/main.py", line 29, in main
dry_run=opts['--dry-run'])
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/base/main.py", line 109, in run
tasklist.run(info=bootstrap_info, dry_run=dry_run)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/base/tasklist.py", line 43, in run
task.run(info)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/plugins/commands/tasks.py", line 15, in run
log_check_call(command, shell=shell)
File "/usr/local/lib/python2.7/dist-packages/bootstrap_vz-0.9.10-py2.7.egg/bootstrapvz/common/tools.py", line 13, in log_check_call
raise e
subprocess.CalledProcessError: Command 'SUDO_FORCE_REMOVE=yes chroot /target/eee92eeb/root apt-get --force-yes --assume-yes install sudo-ldap' returned non-zero exit status 100