[Cloud-packages] Bug#853862: bootstrap-vz: Fails removing volume partitions mapping

Olivier Berger olivier.berger at telecom-sudparis.eu
Wed Feb 1 15:46:00 UTC 2017


Package: bootstrap-vz
Version: 0.9.10+20170110git-1
Severity: normal

Hi.

I've hit the following error:
Removing volume partitions mapping
device-mapper: remove ioctl on loop0p3 failed: Device or resource busy
Command 'kpartx -ds /dev/loop0' returned non-zero exit status 1
Traceback (most recent call last):
File "/usr/share/bootstrap-vz/bootstrapvz/base/main.py", line 111, in run
tasklist.run(info=bootstrap_info, dry_run=dry_run)
File "/usr/share/bootstrap-vz/bootstrapvz/base/tasklist.py", line 44, in run
task.run(info)
File "/usr/share/bootstrap-vz/bootstrapvz/common/tasks/partitioning.py", line 49, in run
info.volume.partition_map.unmap(info.volume)
File "/usr/share/bootstrap-vz/bootstrapvz/base/fs/partitionmaps/abstract.py", line 106, in unmap
self.fsm.unmap(volume=volume)
File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 283, in fn
if self._before_event(e) is False:
File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 318, in _before_event
return getattr(self, fnname)(e)
File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 89, in _callback
return func(obj, *args, **kwargs)
File "/usr/share/bootstrap-vz/bootstrapvz/base/fs/partitionmaps/abstract.py", line 119, in _before_unmap
log_check_call(['kpartx', '-ds', volume.device_path])
File "/usr/share/bootstrap-vz/bootstrapvz/common/tools.py", line 13, in log_check_call
raise e
CalledProcessError: Command 'kpartx -ds /dev/loop0' returned non-zero exit status 1

The commandline was :
sudo bootstrap-vz debian-jessie.manifest.yaml

with the content below :
---
name: debian-clover-{system.release}-{system.architecture}-{%Y}{%m}{%d}
provider:
name: kvm
virtio_modules:
- virtio_pci
- virtio_blk
bootstrapper:
workspace: /target
# create or reuse a tarball of packages
tarball: true
system:
release: jessie
architecture: amd64
bootloader: grub
charmap: UTF-8
locale: en_US
timezone: UTC
volume:
backing: raw
partitions:
type: gpt
root:
filesystem: ext4
size: 4GiB
swap:
size: 512MiB
packages:
# change if another mirror is closer
mirror: http://ftp.fr.debian.org/debian/
install:
- xserver-xorg-video-vesa
- lightdm
- xfce4
plugins:
# root_password:
#   password: test
admin_user:
username: Administrator
password: *******
minimize_size:
# reduce the size by around 250 Mb
zerofree: true
# apt:
#   autoclean: true
#   languages: [none]
#   gzip_indexes: true
#   autoremove_suggests: true
# dpkg:
#   locales: []
#   exclude_docs: true

Thanks in advance.

Best regards,

-- System Information:
Debian Release: 9.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bootstrap-vz depends on:
ii  debootstrap        1.0.87
ii  python-boto        2.44.0-1
ii  python-boto3       1.4.2-1
ii  python-docopt      0.6.2-1
ii  python-fysom       2.1.2-1
ii  python-jsonschema  2.5.1-6
ii  python-requests    2.12.4-1
ii  python-rfc3339     1.0-4
ii  python-termcolor   1.1.0-1
ii  python-yaml        3.12-1
ii  python2-pyro4      4.53-2
pn  python:any         <none>

Versions of packages bootstrap-vz recommends:
ii  git         1:2.11.0-2
ii  kpartx      0.6.4-3
ii  qemu-utils  1:2.8+dfsg-2

Versions of packages bootstrap-vz suggests:
pn  bootstrap-vz-doc                <none>
pn  euca2ools                       <none>
ii  parted                          3.2-17
ii  virtualbox-guest-additions-iso  5.1.14-1
ii  wget                            1.18-4
ii  zerofree                        1.0.4-1

-- no debconf information



More information about the Cloud-packages mailing list