[Piuparts-devel] Bug#1064842: piuparts: fails to bind-mount enough of /dev/, runnnig as root in a VM

Stefano Rivera stefanor at debian.org
Mon Feb 26 14:52:38 GMT 2024


Package: piuparts
Version: 1.3
Severity: normal

When running piuparts (as root) in an Incus VM (orchestrated by
Debusine), it seems to miss some /dev/* bind-mounts and then everything
fails.

VM: trixie
Base tarball: trixie (without /dev/ nodes)

Command line: /usr/sbin/piuparts --distribution=trixie --allow-database
 --warn-on-leftovers-after-purge --tmpdir=/var/cache/piuparts/tmp
 --basetgz=/tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar
 /tmp/debusine-fetch-exec-upload-yw5d6btv/python3-anosql_1.0.1-4_all.deb

0m1.1s DEBUG: Starting command: ['chroot', '/var/cache/piuparts/tmp/tmp_nj7ktk5', 'apt-get', 'update']
0m1.9s DUMP:
  Get:1 http://10.233.1.1:3142/debian trixie InRelease [157 kB]
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Sub-process apt-key returned an error code (29)Err:1 http://10.233.1.1:3142/debian trixie InRelease

Full log attached.

Stefano
-------------- next part --------------
cmd: /usr/sbin/piuparts --distribution=trixie --allow-database --warn-on-leftovers-after-purge --tmpdir=/var/cache/piuparts/tmp --basetgz=/tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar /tmp/debusine-fetch-exec-upload-yw5d6btv/python3-anosql_1.0.1-4_all.deb
output (contains stdout and stderr):
0m0.0s INFO: ------------------------------------------------------------------------------
0m0.0s INFO: To quickly glance what went wrong, scroll down to the bottom of this logfile.
0m0.0s INFO: FAQ available at https://wiki.debian.org/piuparts/FAQ
0m0.0s INFO: The FAQ also explains how to contact us in case you think piuparts is wrong.
0m0.0s INFO: ------------------------------------------------------------------------------
0m0.0s INFO: piuparts version 1.3 starting up.
0m0.0s INFO: Command line arguments: /usr/sbin/piuparts --distribution=trixie --allow-database --warn-on-leftovers-after-purge --tmpdir=/var/cache/piuparts/tmp --basetgz=/tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar /tmp/debusine-fetch-exec-upload-yw5d6btv/python3-anosql_1.0.1-4_all.deb
0m0.0s INFO: Running on: Linux debusine-kukzsw 6.6.15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.15-2 (2024-02-04) x86_64
0m0.0s DEBUG: Starting command: ['dpkg', '--info', '/tmp/debusine-fetch-exec-upload-yw5d6btv/python3-anosql_1.0.1-4_all.deb']
0m0.0s DUMP: 
   new Debian package, version 2.0.
   size 10140 bytes: control archive=1424 bytes.
       668 bytes,    19 lines      control
      1139 bytes,    13 lines      md5sums
       263 bytes,    12 lines   *  postinst             #!/bin/sh
       376 bytes,    12 lines   *  prerm                #!/bin/sh
   Package: python3-anosql
   Source: anosql
   Version: 1.0.1-4
   Architecture: all
   Maintainer: Debian Python Team <team+python at tracker.debian.org>
   Installed-Size: 45
   Depends: python3:any
   Section: python
   Priority: optional
   Homepage: https://github.com/honza/anosql
   Description: Manage your raw SQL Queries in an elegant manner
    Inspired by Yesql library by Kris Jenkins, anosql provides an interface to
    manage your SQL queries against PostgreSQL and SQLite engine.
    .
    The interface gives the full flexibility and features of raw SQL to the
    developer.
    .
    Anosql can be seen as an alternative to ORM(s), and can be installed and used
    at the same time as other ORM libraries.
0m0.0s DEBUG: Command ok: ['dpkg', '--info', '/tmp/debusine-fetch-exec-upload-yw5d6btv/python3-anosql_1.0.1-4_all.deb']
0m0.0s DEBUG: Created temporary directory /var/cache/piuparts/tmp/tmp_nj7ktk5
0m0.0s DEBUG: Unpacking /tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar into /var/cache/piuparts/tmp/tmp_nj7ktk5
0m0.0s DEBUG: Starting command: ['tar', '-C', '/var/cache/piuparts/tmp/tmp_nj7ktk5', '--auto-compress', '-xf', '/tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar']
0m1.1s DUMP: 
  tar: Ignoring unknown extended header keyword 'hdrcharset'
0m1.1s DEBUG: Command ok: ['tar', '-C', '/var/cache/piuparts/tmp/tmp_nj7ktk5', '--auto-compress', '-xf', '/tmp/debusine-fetch-exec-upload-yw5d6btv/base_tar/system.tar']
0m1.1s DEBUG: Starting command: ['mount', '-t', 'proc', 'proc', '/var/cache/piuparts/tmp/tmp_nj7ktk5/proc']
0m1.1s DEBUG: Command ok: ['mount', '-t', 'proc', 'proc', '/var/cache/piuparts/tmp/tmp_nj7ktk5/proc']
0m1.1s DEBUG: Starting command: ['mount', '-t', 'devpts', '-o', 'newinstance,noexec,nosuid,gid=5,mode=0620,ptmxmode=0666', 'devpts', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/pts']
0m1.1s DEBUG: Command ok: ['mount', '-t', 'devpts', '-o', 'newinstance,noexec,nosuid,gid=5,mode=0620,ptmxmode=0666', 'devpts', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/pts']
0m1.1s DEBUG: Starting command: ['mount', '-t', 'tmpfs', '-o', 'size=65536k', 'tmpfs', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/shm']
0m1.1s DEBUG: Command ok: ['mount', '-t', 'tmpfs', '-o', 'size=65536k', 'tmpfs', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/shm']
0m1.1s DEBUG: sources.list:
  deb http://10.233.1.1:3142/debian trixie main
0m1.1s DEBUG: Created policy-rc.d and chmodded it.
0m1.1s DEBUG: Created resolv.conf.
0m1.1s DEBUG: Starting command: ['chroot', '/var/cache/piuparts/tmp/tmp_nj7ktk5', 'apt-get', 'update']
0m1.9s DUMP: 
  Get:1 http://10.233.1.1:3142/debian trixie InRelease [157 kB]
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Sub-process apt-key returned an error code (29)Err:1 http://10.233.1.1:3142/debian trixie InRelease
    gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Get:2 http://10.233.1.1:3142/debian unstable InRelease [198 kB]
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Sub-process apt-key returned an error code (29)Err:2 http://10.233.1.1:3142/debian unstable InRelease
    gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Reading package lists...
  W: GPG error: http://10.233.1.1:3142/debian trixie InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://10.233.1.1:3142/debian trixie InRelease' is not signed.
  W: GPG error: http://10.233.1.1:3142/debian unstable InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://10.233.1.1:3142/debian unstable InRelease' is not signed.
0m1.9s ERROR: Command failed (status=100): ['chroot', '/var/cache/piuparts/tmp/tmp_nj7ktk5', 'apt-get', 'update']
  Get:1 http://10.233.1.1:3142/debian trixie InRelease [157 kB]
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Sub-process apt-key returned an error code (29)Err:1 http://10.233.1.1:3142/debian trixie InRelease
    gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Get:2 http://10.233.1.1:3142/debian unstable InRelease [198 kB]
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  /usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
  E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Sub-process apt-key returned an error code (29)Err:2 http://10.233.1.1:3142/debian unstable InRelease
    gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  Reading package lists...
  W: GPG error: http://10.233.1.1:3142/debian trixie InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://10.233.1.1:3142/debian trixie InRelease' is not signed.
  W: GPG error: http://10.233.1.1:3142/debian unstable InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
  E: The repository 'http://10.233.1.1:3142/debian unstable InRelease' is not signed.
  
0m2.2s DEBUG: Starting command: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/shm']
0m2.2s DEBUG: Command ok: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/shm']
0m2.2s DEBUG: Starting command: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/pts']
0m2.2s DEBUG: Command ok: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/dev/pts']
0m2.2s DEBUG: Starting command: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/proc']
0m2.2s DEBUG: Command ok: ['umount', '/var/cache/piuparts/tmp/tmp_nj7ktk5/proc']
0m2.2s DEBUG: Starting command: ['rm', '-rf', '--one-file-system', '/var/cache/piuparts/tmp/tmp_nj7ktk5']
0m2.4s DEBUG: Command ok: ['rm', '-rf', '--one-file-system', '/var/cache/piuparts/tmp/tmp_nj7ktk5']
0m2.4s DEBUG: Removed directory tree at /var/cache/piuparts/tmp/tmp_nj7ktk5
0m2.4s ERROR: piuparts run ends.

Files in working directory:

--------------------


More information about the Piuparts-devel mailing list