Package: vmdb2
Version: 0.26-1
Severity: normal

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

I see the following error even with successful builds:

[..]
Removing /tmp/tmpe5io4xoc.yaml
Removing /tmp/tmp7_tev8wl
Exec: ['zerofree', '-v', '/dev/mapper/loop0p2']
Exec: ['kpartx', '-dsv', 'fantronics.arm64.img']
ERROR: Program failed: 1
ERROR: RuncmdError('Program failed: 1')
All went fine.


This is from the .log file:

[..]
2022-05-08 16:48:04 INFO Exec: ['kpartx', '-dsv', 'myproject.arm64.img']
2022-05-08 16:48:05 DEBUG STDOUT: del devmap : loop0p1
loop0p2 is in use. Not removing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^???

2022-05-08 16:48:05 DEBUG STDERR: loop deleted : /dev/loop0

2022-05-08 16:48:05 ERROR Program failed: 1
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vmdb/app.py", line 243, in 
run_steps_helper
    method(values, settings, state)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/kpartx_plugin.py", line 51, 
in teardown
    vmdb.runcmd(["kpartx", "-dsv", device])
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 58, in runcmd
    raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 1
2022-05-08 16:48:05 ERROR RuncmdError('Program failed: 1')
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/vmdb/app.py", line 243, in 
run_steps_helper
    method(values, settings, state)
  File "/usr/lib/python3/dist-packages/vmdb/plugins/kpartx_plugin.py", line 51, 
in teardown
    vmdb.runcmd(["kpartx", "-dsv", device])
  File "/usr/lib/python3/dist-packages/vmdb/runcmd.py", line 58, in runcmd
    raise RuncmdError("Program failed: {}".format(p.returncode))
vmdb.runcmd.RuncmdError: Program failed: 1

Is it the underlined line? Interestingly this works fine in a docker container.

If I can provide more information, please let me know.

Regards, Daniel


- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'stable-security'), (500, 'stable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_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-2
ii  debootstrap     1.0.126+nmu1
ii  e2fsprogs       1.46.5-2
ii  kpartx          0.8.8-1
ii  parted          3.5-1
ii  python3         3.10.4-1+b1
ii  python3-jinja2  3.0.3-1
ii  python3-yaml    5.4.1-1+b1
ii  qemu-utils      1:7.0+dfsg-5

Versions of packages vmdb2 recommends:
ii  ansible           5.5.0-1
ii  dosfstools        4.2-1
ii  qemu-user-static  1:7.0+dfsg-5

vmdb2 suggests no packages.

- -- no debconf information

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

iQIzBAEBCgAdFiEEIB9kcJqmmF4VguFXclr8JZgo7DMFAmJ4AdIACgkQclr8JZgo
7DMKWQ/+Ju9gSdfcd/kmKyBs0sRLG/1ZFAWQ8VWpYaG7Dn3yiyo1W+KdemVvIZlS
SzPpiI+NOuY+AVC9QuC8LwuQeAvJ+koSsw8XQDHF9rzu3YM+63DchJIenUca4xdi
EgB73i4LTvE3AyAMoacCooz1Jwu18xQ2ZRUVYNnKZYpIhZE1xYUKeRUcZ8eIb2hC
7CteZIU3DUcb7sA8/XMhWwRuqS8v+q1lniw+2HPTDA23KT9GHxAeItJ5NVMd9D9k
JmZcWsL16+PUmFLN9GEdIIcebTUVP4GSqGg8ZfpA8IIADdkgUtixXi9a5zh+5Z90
rVgCuYM/4ZVw1Iu2IqjjNWU+uibY1YwrF2wD7GMg2FwyhQJapIs8dIOMpAniFlMG
lgcItd3IkftMYYjjtYE7luiiMOlhwGRlS0QTWIKGrzD0BLYQWEx1QD5hPtoIH+om
IxicYb+FraHc6JsHmY9m3NODjYRULeUR3z8tqQUMGbCF0EyRuzEzrri424hbtZHG
bffQTNlSWLKqU1G8ygE/bn5bqnCSZ5ZMqcGFiPVLmAFi+ssK5MioxdVZrwHjh4ZW
OIyxINh2oxcXk+r0ke0+Tyvy+cV2uMYnFLFhOS6pss5a76rw2WeasahJzim8xEVa
uHIxiwjIzLi9v+WjqlNOnL3+BoYaFRD7iOz+tESO0XEvv0wiXwk=
=nSGu
-----END PGP SIGNATURE-----

Reply via email to