Hi @r00ta /@troyanov /all I can see that one of my Ubuntu 24- 6.8.0-87-generic custom image with mellanox ofed package gets failed deployment which was working earlier throwing kernel related errors as below. I am suspecting kernel might got upgraded, Is MaaS automatically updates image kernel while deployment? How can I stop that.
Find the installation output logs below
Building module:
Cleaning build area...(bad exit status: 2)
./configure --with-kernel-dir=/lib/modules/6.8.0-88-generic/build && cd kernel && make...(bad exit status: 1)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/xpmem-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-88-generic (x86_64)
Consult /var/lib/dkms/xpmem/2.7.4/build/make.log for more information.
dkms autoinstall on 6.8.0-88-generic/x86_64 succeeded for iser isert kernel-mft-dkms knem mlnx-ofed-kernel nvidia-srv srp
dkms autoinstall on 6.8.0-88-generic/x86_64 failed for xpmem(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.8.0-88-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.8.0-88-generic (--configure):
installed linux-image-6.8.0-88-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-6.8.0-88-generic
linux-headers-generic
linux-headers-virtual
linux-generic
linux-virtual
linux-image-6.8.0-88-generic
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
TIMED subp(['udevadm', 'settle']): 0.005
Running command ['mount', '--make-private', '/tmp/tmpp4zv8umm/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpp4zv8umm/target/sys/firmware/efi/efivars'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmpp4zv8umm/target/sys'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpp4zv8umm/target/sys'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmpp4zv8umm/target/run'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpp4zv8umm/target/run'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmpp4zv8umm/target/proc'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpp4zv8umm/target/proc'] with allowed return codes [0] (capture=False)
Running command ['mount', '--make-private', '/tmp/tmpp4zv8umm/target/dev'] with allowed return codes [0] (capture=False)
Running command ['umount', '/tmp/tmpp4zv8umm/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks/installing-kernel: FAIL: installing kernel
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
File "/curtin/curtin/commands/curthooks.py", line 399, in install_kernel
map_suffix = mapping[codename][version]
~~~~~~~^^^^^^^^^^
KeyError: 'noble'
