Bug 3952 - [Anolis8.8][RHCK][x86_64][AMD] grubby --info=ALL中查询到的系统信息与/etc/os-release中的VERSION不一致
Summary: [Anolis8.8][RHCK][x86_64][AMD] grubby --info=ALL中查询到的系统信息与/etc/os-release中的VE...
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: gaochang
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-06 17:01 UTC by anolislw
Modified: 2023-02-07 11:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 anolislw alibaba_cloud_group 2023-02-06 17:07:38 UTC
Description of problem:
 Anolis8.8 RHCK x86_64 AMD,grubby --info=ALL中查询到的系统信息与/etc/os-release中的VERSION不一致

Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.登录环境
2.grubby --info=ALL查询当前内核对应的title
3.cat /etc/os-release查询VERSION信息

Actual results:
[root@localhost anuser]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.8"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.8"  #这里是正确的8.8
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.8"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

[root@localhost anuser]#
[root@localhost anuser]# grubby --info=ALL
index=0
kernel="/boot/vmlinuz-4.18.0-425.10.1.an8.x86_64"
args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 $tuned_params"
root="UUID=9af0b2b8-8abf-4cd8-af7b-33ad8c2c91cc"
initrd="/boot/initramfs-4.18.0-425.10.1.an8.x86_64.img $tuned_initrd"
title="Anolis OS (4.18.0-425.10.1.an8.x86_64) 8.6"  #这里应该时8.8
id="22795fd7c2d4493f8b7705aad8c2466d-4.18.0-425.10.1.an8.x86_64"
index=1
kernel="/boot/vmlinuz-4.18.0-372.32.1.an8_6.x86_64"
args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 $tuned_params"
root="UUID=9af0b2b8-8abf-4cd8-af7b-33ad8c2c91cc"
initrd="/boot/initramfs-4.18.0-372.32.1.an8_6.x86_64.img $tuned_initrd"
title="Anolis OS (4.18.0-372.32.1.an8_6.x86_64) 8.6"
id="22795fd7c2d4493f8b7705aad8c2466d-4.18.0-372.32.1.an8_6.x86_64"
index=2
kernel="/boot/vmlinuz-0-rescue-22795fd7c2d4493f8b7705aad8c2466d"
args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295"
root="UUID=9af0b2b8-8abf-4cd8-af7b-33ad8c2c91cc"
initrd="/boot/initramfs-0-rescue-22795fd7c2d4493f8b7705aad8c2466d.img"
title="Anolis OS (0-rescue-22795fd7c2d4493f8b7705aad8c2466d) 8.6"
id="22795fd7c2d4493f8b7705aad8c2466d-0-rescue"
[root@localhost anuser]#
[root@localhost anuser]# uname -r
4.18.0-425.10.1.an8.x86_64


Expected results:
grubby --info=ALL中查询到的系统信息与/etc/os-release中的VERSION一致

Additional info:
[root@localhost anuser]# uname -r
4.18.0-425.10.1.an8.x86_64
[root@localhost anuser]# 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/"

[root@localhost anuser]# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Vendor ID:           AuthenticAMD
BIOS Vendor ID:      Alibaba Cloud
CPU family:          25
Model:               1
Model name:          AMD EPYC 7T83 64-Core Processor
BIOS Model name:     pc-i440fx-2.1
Stepping:            1
CPU MHz:             2545.218
BogoMIPS:            5090.43
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            512K
L3 cache:            32768K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext invpcid_single vmmcall tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat vaes vpclmulqdq rdpid fsrm
[root@localhost anuser]# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-4.18.0-425.10.1.an8.x86_64 root=UUID=9af0b2b8-8abf-4cd8-af7b-33ad8c2c91cc ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295
[root@localhost anuser]# arch
x86_64
[root@localhost anuser]# cat /etc/image-id
image_name="Anolis OS 8.8 RHCK 64 bit"
image_id="anolisos_8_8_x64_20G_rhck_community_alibase_20230203.vhd"
release_date="20230203154040"
[root@localhost anuser]#

分析:
[root@localhost anuser]# uname -r
4.18.0-425.10.1.an8.x86_64
[root@localhost anuser]# cat /boot/loader/entries/22795fd7c2d4493f8b7705aad8c2466d-4.18.0-425.10.1.an8.x86_64.conf
title Anolis OS (4.18.0-425.10.1.an8.x86_64) 8.6 #这里是否需要更正为8.8
version 4.18.0-425.10.1.an8.x86_64
linux /boot/vmlinuz-4.18.0-425.10.1.an8.x86_64
initrd /boot/initramfs-4.18.0-425.10.1.an8.x86_64.img $tuned_initrd
options $kernelopts $tuned_params
id anolis-20230113071451-4.18.0-425.10.1.an8.x86_64
grub_users $grub_users
grub_arg --unrestricted
grub_class kernel
[root@localhost anuser]# uname -r
4.18.0-425.10.1.an8.x86_64
Comment 2 Jacob admin 2023-02-07 11:09:25 UTC
这个不 block 发布。 8.8 目前没有 GA, 所以 post errata 处理还是发布到 8.6 里面, 所以这个 4.18 内核是在 8.6 的环境下编译的,这个对于 4.18 内核来算预期中行为。
Comment 3 Jacob admin 2023-02-07 11:12:26 UTC
(In reply to Jacob from comment #2)
> 这个不 block 发布。 8.8 目前没有 GA, 所以 post errata 处理还是发布到 8.6 里面, 所以这个 4.18 内核是在 8.6
> 的环境下编译的,这个对于 4.18 内核来算预期中行为。

https://gitee.com/src-anolis-os/kernel/blob/a8/generate_bls_conf.sh