Bug 5262 - [ck27.4][anolis8][x86_64]安装4.19.91-27.4内核后,执行rpm -e卸载内核时有warning打印
Summary: [ck27.4][anolis8][x86_64]安装4.19.91-27.4内核后,执行rpm -e卸载内核时有warning打印
Status: NEW
Alias: None
Product: Antest
Classification: Infrastructures
Component: 测试用例 (show other bugs) 测试用例
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: maqiao
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-22 16:13 UTC by zhixin01
Modified: 2025-01-06 14:11 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhixin01 alibaba_cloud_group 2023-05-22 16:13:42 UTC
[缺陷描述]:
安装4.19.91-27.4内核后,执行rpm -e卸载内核时有warning打印

报错日志:
]# rpm -e kernel-4.19.91-27.4.an8.x86_64 kernel-core-4.19.91-27.4.an8.x86_64 kernel-modules-4.19.91-27.4.an8.x86_64
warning: file /boot/symvers-4.19.91-27.4.an8.x86_64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-27.4.an8.x86_64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-27.4.an8.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-27.4.an8.x86_64: remove failed: No such file or directory


完整测试日志:
# rpm -ivh kernel-4.19.91-27.4.an8.x86_64.rpm kernel-core-4.19.91-27.4.an8.x86_64.rpm kernel-modules-4.19.91-27.4.an8.x86_64.rpm --force
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-core-4.19.91-27.4.an8     ################################# [ 33%]
   2:kernel-modules-4.19.91-27.4.an8  ################################# [ 67%]
   3:kernel-4.19.91-27.4.an8          ################################# [100%]

# grubby --default-kernel
/boot/vmlinuz-4.19.91-27.4.an8.x86_64

# rpm -e kernel-4.19.91-27.4.an8.x86_64 kernel-core-4.19.91-27.4.an8.x86_64 kernel-modules-4.19.91-27.4.an8.x86_64
warning: file /boot/symvers-4.19.91-27.4.an8.x86_64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-27.4.an8.x86_64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-27.4.an8.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-27.4.an8.x86_64: remove failed: No such file or directory

# grubby --default-kernel
/boot/vmlinuz-4.19.91-716.git.4477853263.an8.x86_64

# reboot

[重现环境]:
物理机

# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

cpu信息:
# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Intel(R) Corporation
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
BIOS Model name:     Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
Stepping:            4
CPU MHz:             1669.047
CPU max MHz:         3100.0000
CPU min MHz:         1000.0000
BogoMIPS:            5000.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0-95
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts pku ospke md_clear flush_l1d arch_capabilities

内存信息:
# free -h
              total        used        free      shared  buff/cache   available
Mem:          755Gi       3.8Gi       747Gi        10Mi       3.5Gi       747Gi
Swap:         2.0Gi          0B       2.0Gi

[复现步骤]:
1.安装4.19.91-27.4.an8.x86_64内核;
rpm -ivh kernel-4.19.91-27.4.an8.x86_64.rpm kernel-core-4.19.91-27.4.an8.x86_64.rpm kernel-modules-4.19.91-27.4.an8.x86_64.rpm --force

2.grubby --default-kernel查询默认内核已经切换到新安装内核

3.rpm -e卸载4.19.91-27.4.an8.x86_64内核
rpm -e kernel-4.19.91-27.4.an8.x86_64 kernel-core-4.19.91-27.4.an8.x86_64 kernel-modules-4.19.91-27.4.an8.x86_64

4.grubby --default-kernel查询默认内核已经回落到旧内核

5.reboot

[预期结果]:
卸载内核时无报错,reboot后,机器可以正常启动

[实际结果]:
卸载内核时有报错信息

[另]:
相同问题之前在5.10内核已经解决,问题单:https://bugzilla.openanolis.cn/show_bug.cgi?id=3663,但是未修复4.19内核,请开发同学确认下
Comment 1 shanxifanshi alibaba_cloud_group 2024-01-30 17:56:41 UTC
4.19.91-27.8内核测试遇到同样的问题

# rpm -e kernel-4.19.91-27.8.an8.aarch64 kernel-core-4.19.91-27.8.an8.aarch64 kernel-modules-4.19.91-27.8.an8.aarch64 kernel-modules-extra-4.19.91-27.8.an8.aarch64 kernel-modules-internal-4.19.91-27.8.an8.aarch64
warning: file /boot/symvers-4.19.91-27.8.an8.aarch64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-27.8.an8.aarch64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-27.8.an8.aarch64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-27.8.an8.aarch64: remove failed: No such file or directory
Comment 3 zhixin01 alibaba_cloud_group 2024-04-02 11:50:34 UTC
4.19.91-28_rc1内核测试遇到相同问题
# rpm -e kernel-core-4.19.91-28_rc1.an8.x86_64 kernel-modules-4.19.91-28_rc1.an8.x86_64 kernel-modules-extra-4.19.91-28_rc1.an8.x86_64 kernel-modules-internal-4.19.91-28_rc1.an8.x86_64
warning: file /boot/symvers-4.19.91-28_rc1.an8.x86_64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28_rc1.an8.x86_64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28_rc1.an8.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28_rc1.an8.x86_64: remove failed: No such file or directory
Comment 4 anolislw alibaba_cloud_group 2024-04-03 10:00:28 UTC
(In reply to zhixin01 from comment #3)
> 4.19.91-28_rc1内核测试遇到相同问题
> # rpm -e kernel-core-4.19.91-28_rc1.an8.x86_64
> kernel-modules-4.19.91-28_rc1.an8.x86_64
> kernel-modules-extra-4.19.91-28_rc1.an8.x86_64
> kernel-modules-internal-4.19.91-28_rc1.an8.x86_64
> warning: file /boot/symvers-4.19.91-28_rc1.an8.x86_64.gz: remove failed: No
> such file or directory
> warning: file /boot/initramfs-4.19.91-28_rc1.an8.x86_64.img: remove failed:
> No such file or directory
> warning: file /boot/config-4.19.91-28_rc1.an8.x86_64: remove failed: No such
> file or directory
> warning: file /boot/System.map-4.19.91-28_rc1.an8.x86_64: remove failed: No
> such file or directory

4.19.91-28_rc1 aarch64的内核有同样问题
Comment 5 anolislw alibaba_cloud_group 2024-04-24 14:33:25 UTC
anolis8 4.19.91-28_rc2.an8.aarch64对应的内核环境上(ECS),该问题还存在
========================================================
[root@iZbp1ipx4qyd2qe0evmbm2Z ~]# rpm -qa | grep kernel | grep 4.19.91-28_rc2
kernel-4.19.91-28_rc2.an8.aarch64
kernel-modules-4.19.91-28_rc2.an8.aarch64
kernel-modules-extra-4.19.91-28_rc2.an8.aarch64
kernel-core-4.19.91-28_rc2.an8.aarch64
kernel-modules-internal-4.19.91-28_rc2.an8.aarch64


[root@iZbp1ipx4qyd2qe0evmbm2Z ~]# rpm -e kernel-4.19.91-28_rc2.an8.aarch64 kernel-modules-4.19.91-28_rc2.an8.aarch64 kernel-modules-extra-4.19.91-28_rc2.an8.aarch64 kernel-core-4.19.91-28_rc2.an8.aarch64 kernel-modules-internal-4.19.91-28_rc2.an8.aarch64
warning: file /boot/symvers-4.19.91-28_rc2.an8.aarch64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28_rc2.an8.aarch64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28_rc2.an8.aarch64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28_rc2.an8.aarch64: remove failed: No such file or directory
Comment 6 shanxifanshi alibaba_cloud_group 2024-11-04 15:58:34 UTC
anolis8 4.19.91-28.3_rc1.an8.aarch64对应的内核环境上(ECS),该问题还存在

# rpm -e kernel-core-4.19.91-28.3_rc1.an8.aarch64 kernel-modules-internal-4.19.91-28.3_rc1.an8.aarch64 kernel-modules-4.19.91-28.3_rc1.an8.aarch64 kernel-modules-extra-4.19.91-28.3_rc1.an8.aarch64 kernel-4.19.91-28.3_rc1.an8.aarch64
warning: file /boot/symvers-4.19.91-28.3_rc1.an8.aarch64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28.3_rc1.an8.aarch64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28.3_rc1.an8.aarch64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28.3_rc1.an8.aarch64: remove failed: No such file or directory
Comment 7 shanxifanshi alibaba_cloud_group 2024-11-04 16:07:43 UTC
anolis8 4.19.91-28.3_rc1.an8.x86_64对应的内核环境上(ECS),该问题还存在
# rpm -e kernel-modules-internal-4.19.91-28.3_rc1.an8.x86_64 kernel-modules-4.19.91-28.3_rc1.an8.x86_64 kernel-4.19.91-28.3_rc1.an8.x86_64 kernel-core-4.19.91-28.3_rc1.an8.x86_64 kernel-modules-extra-4.19.91-28.3_rc1.an8.x86_64
warning: file /boot/symvers-4.19.91-28.3_rc1.an8.x86_64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28.3_rc1.an8.x86_64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28.3_rc1.an8.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28.3_rc1.an8.x86_64: remove failed: No such file or directory

# cat /etc/image-id
image_name="Anolis OS 8.9 ANCK 64 bit"
image_id="anolisos_8_9_x64_20G_anck_alibase_20240724.vhd"
release_date="20240724163655"
Comment 8 zhixin01 alibaba_cloud_group 2025-01-06 11:47:28 UTC
anolis8 4.19.91-28.4_rc1.an8.aarch64对应的内核环境上(ECS),该问题还存在
# rpm -e kernel-4.19.91-28.4_rc1.an8.aarch64 kernel-core-4.19.91-28.4_rc1.an8.aarch64 kernel-modules-4.19.91-28.4_rc1.an8.aarch64 kernel-modules-internal-4.19.91-28.4_rc1.an8.aarch64 kernel-modules-extra-4.19.91-28.4_rc1.an8.aarch64
warning: file /boot/symvers-4.19.91-28.4_rc1.an8.aarch64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28.4_rc1.an8.aarch64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28.4_rc1.an8.aarch64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28.4_rc1.an8.aarch64: remove failed: No such file or directory

# cat /etc/image-id
image_name="Anolis OS 8.9 ANCK 64 bit ARM Edition"
image_id="anolisos_8_9_arm64_20G_anck_alibase_20240724.vhd"
release_date="20240724162732"
Comment 9 zhixin01 alibaba_cloud_group 2025-01-06 14:11:28 UTC
anolis8 4.19.91-28.4_rc1.an8.x86_64对应的内核环境上(ECS),该问题还存在
# rpm -e kernel-4.19.91-28.4_rc1.an8.x86_64 kernel-core-4.19.91-28.4_rc1.an8.x86_64 kernel-modules-4.19.91-28.4_rc1.an8.x86_64 kernel-modules-internal-4.19.91-28.4_rc1.an8.x86_64 kernel-modules-extra-4.19.91-28.4_rc1.an8.x86_64
warning: file /boot/symvers-4.19.91-28.4_rc1.an8.x86_64.gz: remove failed: No such file or directory
warning: file /boot/initramfs-4.19.91-28.4_rc1.an8.x86_64.img: remove failed: No such file or directory
warning: file /boot/config-4.19.91-28.4_rc1.an8.x86_64: remove failed: No such file or directory
warning: file /boot/System.map-4.19.91-28.4_rc1.an8.x86_64: remove failed: No such file or directory

# cat /etc/image-id
image_name="Anolis OS 8.8 ANCK 64 bit"
image_id="anolisos_8_8_x64_20G_anck_alibase_20240221.vhd"
release_date="20240222152843"