Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1056546: When using a cached root-fs, vmdb2 runs apt before mounting the virtual filesystems, leading to some errors

68 views
Skip to first unread message

Daniel Leidert

unread,
Nov 22, 2023, 12:02:51 PM11/22/23
to
Package: vmdb2
Version: 0.28-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I have a chached rootfs. Here the snippet from the .vmdb2 file:

- mount: /

- unpack-rootfs: /

- debootstrap: bookworm
target: /
mirror: https://deb.debian.org/debian
arch: amd64
components:
- main
- contrib
- non-free
exclude: info
require_empty_target: false
unless: rootfs_unpacked

- virtual-filesystems: /

- shell: |
[.. some commands ..]



Here the log:

Exec: ['mount', '/dev/mapper/loop5p2', '/tmp/tmplyhry3x_']
Exec: ['tar', '-C', '/tmp/tmplyhry3x_', '-xf', 'production-vm.amd64.tar.gz', '--numeric-owner']
Exec: ['cp', '/etc/resolv.conf', '/tmp/tmplyhry3x_/etc/resolv.conf']
debootstrap plugin set architecture to amd64
Exec: ['chroot', '/tmp/tmplyhry3x_', 'apt-get', 'update']
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease
/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)/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
Err:1 http://deb.debian.org/debian bookworm InRelease
/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)/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
/usr/bin/apt-key: 95: cannot create /dev/null: Permission denied
Err:2 http://deb.debian.org/debian bookworm-updates InRelease
E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
Sub-process apt-key returned an error code (29)W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian bookworm InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian bookworm-updates InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian-security bookworm-security InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
W: Some index files failed to download. They have been ignored, or old ones used instead.
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/proc', '-t', 'proc']
Exec: ['mount', '/dev', '/tmp/tmplyhry3x_/dev', '--bind']
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/dev/pts', '-t', 'devpts']
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/dev/shm', '-t', 'tmpfs']
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/run', '-t', 'tmpfs']
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/run/lock', '-t', 'tmpfs']
Exec: ['mount', 'none', '/tmp/tmplyhry3x_/sys', '-t', 'sysfs']
Exec: ['sh', '-ec', ... the commands from the shell target ... ]

I'm not quite sure about this, but shouldn't "virtual-filesystems" be a
requirement before running apt (which seems to be called by vmdb2 internally,
not by a target).

Regards, Daniel


- -- System Information:
Debian Release: trixie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-4-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages vmdb2 depends on:
ii cmdtest 0.32.14.gcdfe14e-5
ii debootstrap 1.0.133
ii e2fsprogs 1.47.0-2+b1
ii kpartx 0.9.4-7
ii parted 3.6-3
ii python3 3.11.4-5+b1
ii python3-jinja2 3.1.2-1
ii python3-yaml 6.0.1-1
ii qemu-utils 1:8.1.2+ds-1

Versions of packages vmdb2 recommends:
ii ansible 7.7.0+dfsg-3
ii dosfstools 4.2-1
ii qemu-user-static 1:8.1.2+ds-1
ii zerofree 1.1.1-1

vmdb2 suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEvu1N7VVEpMA+KD3HS80FZ8KW0F0FAmVeL0sACgkQS80FZ8KW
0F0Wlg//S3Qh9o8/ULsFVbD79+fT3lzqvwHE9Y/aRzQ0b4MRcZbvvaV1vaK2q5Fn
qwqyaBHWtyTl27mOwk3BNhw4L3jK8/FN90Jo2gyTX77hE63wnMwTwXnVipBpRRV/
t9tOdIvWELHzEuRob+/SZXf0cR3n9tFNxCTwQoF1HyF6CPmty2EFjdInROwnqEnl
ena7k2pGExcfAB4skTjou83DaPavBaAStMqBBU7bDSD4JRHBfu3sludS33F6cMsK
8X20Ufo7svFX2MpFoPYNk6yC/RBQpyyCbKUzpOEBc/ndmmRWDJePAp8LUpP+f8a0
J9P2fHm2J7AAMiRCbb5cpAA3gjkd05Ec67hRB8rijmNcAh/WtMAQ+05HcdrTN0GM
UOlLFxded6/POi+g/gEVJ6uzQldMYuIlYsy1yMaqhrO5FJRDAZlh0PChxlQDBfBi
mXlx3gKq/8+lvnktnKZoThZLjtXKWpIQN7Ba0TvTzcq3oMmC9tKVM94NorbLQzEL
2AlT/0jvez2Tc4FU79OK3TXKRiHRI8BCw85p4Vqf24FHUh2k2aa7GhYWKVjmj9VL
HxXhKaPUT/teUvU117E+dLNvV7oP2CDbo/yhe0A+eELoh9JslKDUl5GH5GMAz6A9
hrnfzkbS8AHhMTHE+8fGYdldblgAIwoApBpeT2rao6bKeiIfE0k=
=yMYL
-----END PGP SIGNATURE-----
0 new messages