Bug 2192557

Summary: [eln] kernel-core scriptlet failed
Product: [Fedora] Fedora Reporter: Bruno Goncalves <bgoncalv>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jarodwilson, josef, kernel-maint, lgoncalv, linville, litian, masami256, mchehab, mhofmann, ptalbert, scweaver, steved, vkuznets, xuli, xxiong, yacao, yuxisun
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-05 08:04:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2192895    
Bug Blocks:    

Description Bruno Goncalves 2023-05-02 09:29:09 UTC
Trying to install kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126 using dnf reports success, but some files like /boot/vmlinuz-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64 is not installed.

Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1 
  Installing       : kernel-modules-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                             1/2 
  Installing       : kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                                     2/2 
  Running scriptlet: kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                                     2/2 
  Running scriptlet: kernel-modules-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                             2/2 
  Running scriptlet: kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                                     2/2 
Symvers dump file is not found in /boot/symvers-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64.gz /lib/modules/6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64/symvers.gz
warning: %posttrans(kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package kernel-core
  Verifying        : kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                                     1/2 
  Verifying        : kernel-modules-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                                                                                                             2/2 

Installed:
  kernel-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                  kernel-modules-core-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64                                                 

Complete!


# ls /boot/vmlinuz-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64
ls: cannot access '/boot/vmlinuz-6.4.0-0.rc0.20230501git58390c8ce1bd.10.eln126.x86_64': No such file or directory

Reproducible: Always

Steps to Reproduce:
1.install kernel from https://koji.fedoraproject.org/koji/buildinfo?buildID=2194617

Comment 1 xxiong 2023-05-10 07:14:37 UTC
I also encountered similar issue when rpm install kernel-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.rpm on hyper-v gen1/gen2 VM, (download from https://kojipkgs.fedoraproject.org/packages/kernel/6.4.0/0.rc0.20230504git1a5304fecee5.13.eln126/x86_64/)

And checked this issue not occur with https://kojipkgs.fedoraproject.org/packages/kernel/6.4.0/0.rc0.20230428git33afd4b76393.7.eln126/x86_64/


[root@bootp-73-131-197 ~]# rpm -ivh kernel-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.rpm kernel-core-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.rpm kernel-modules-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.rpm kernel-modules-core-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-modules-core-6.4.0-0.rc0.2################################# [ 25%]
   2:kernel-core-6.4.0-0.rc0.20230504g################################# [ 50%]
   3:kernel-modules-6.4.0-0.rc0.202305################################# [ 75%]
   4:kernel-6.4.0-0.rc0.20230504git1a5################################# [100%]
Symvers dump file is not found in /boot/symvers-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64.gz /lib/modules/6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64/symvers.gz
warning: %posttrans(kernel-core-6.4.0-0.rc0.20230504git1a5304fecee5.13.eln126.x86_64) scriptlet failed, exit status 1
[root@bootp-73-131-197 ~]# 
[root@bootp-73-131-197 ~]# grubby --info ALL
index=0
kernel="/boot/vmlinuz-5.14.0-303.el9.x86_64"
args="ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_vm--74--148-swap rd.lvm.lv=rhel_vm-74-148/root rd.lvm.lv=rhel_vm-74-148/swap rhgb quiet"
root="/dev/mapper/rhel_vm--74--148-root"
initrd="/boot/initramfs-5.14.0-303.el9.x86_64.img $tuned_initrd"
title="Red Hat Enterprise Linux (5.14.0-303.el9.x86_64) 9.3 (Plow)"
id="5299a9a280e047db8db8982af72c5cf9-5.14.0-303.el9.x86_64"
index=1
kernel="/boot/vmlinuz-0-rescue-5299a9a280e047db8db8982af72c5cf9"
args="ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_vm--74--148-swap rd.lvm.lv=rhel_vm-74-148/root rd.lvm.lv=rhel_vm-74-148/swap rhgb quiet"
root="/dev/mapper/rhel_vm--74--148-root"
initrd="/boot/initramfs-0-rescue-5299a9a280e047db8db8982af72c5cf9.img"
title="Red Hat Enterprise Linux (0-rescue-5299a9a280e047db8db8982af72c5cf9) 9.3 (Plow)"
id="5299a9a280e047db8db8982af72c5cf9-0-rescue"
[root@bootp-73-131-197 ~]#

Comment 2 Scott Weaver 2023-05-10 12:19:36 UTC
A fix for this is in progress: BZ2192895
An updated kmod package (kmod-30-5) has been built for rawhide and ELN: https://koji.fedoraproject.org/koji/packageinfo?packageID=13029

Comment 3 Scott Weaver 2023-06-02 15:49:02 UTC
Hi Bruno,

It looks like this is resolved. Do we need to do any testing here in this BZ to close it?

Scott

Comment 4 Bruno Goncalves 2023-06-05 08:04:49 UTC
Hi Scott,

The problem was easily reproducible before, but since 9th on My we don't hit this any more: https://datawarehouse.cki-project.org/issue/1981

I'm closing this as resolved in current release.