Bug 876 - /etc/os-release中的VERSION与镜像版本不符
Summary: /etc/os-release中的VERSION与镜像版本不符
Status: RESOLVED BYDESIGN
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.2
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 葛立伟
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-21 17:46 UTC by chuyang_94
Modified: 2022-04-28 10:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chuyang_94 alibaba_cloud_group 2022-04-21 17:46:28 UTC
Description of problem:
加载anolis8相关镜像后,查看VERSION与预期不符

Version-Release number of selected component (if applicable):
# cat /etc/image-id
image_name="Anolis OS 8.2 RHCK 64 bit"
image_id="anolisos_8_2_x64_20G_rhck_alibase_20220415.vhd"
release_date="20220415105259"

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

How reproducible:
必现

Steps to Reproduce:
1.加载加载anolis8相关镜像
2.查看VERSION号:
cat /etc/os-release

Actual results:
VERSION值与镜像版本号不一致

Expected results:
VERSION值与镜像版本号一致

Additional info:
Comment 1 chuyang_94 alibaba_cloud_group 2022-04-24 11:21:22 UTC
Anolis8.4相关镜像也均是8.5的VERSION_ID
Comment 2 葛立伟 alibaba_cloud_group 2022-04-27 15:21:50 UTC
这个镜像您是ecs镜像还是线下镜像?
是否有升级过anolis-release这个包?
Comment 3 葛立伟 alibaba_cloud_group 2022-04-28 10:13:32 UTC
[root@iZbp1gzcs80c5y41ujrpmiZ ~]# cat /etc/os-release 
NAME="Anolis OS"
VERSION="8.2"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.2"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.2"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

[root@iZbp1gzcs80c5y41ujrpmiZ ~]# cat /etc/image-id 
image_name="Anolis OS 8.2 RHCK 64 bit"
image_id="anolisos_8_2_x64_20G_rhck_alibase_20220415.vhd"
release_date="20220415105259"
[root@iZbp1gzcs80c5y41ujrpmiZ ~]# yum install anolis-release
Repository epel is listed more than once in the configuration
AnolisOS-8 - AppStream                                                                 29 MB/s | 8.4 MB     00:00    
AnolisOS-8 - BaseOS                                                                    19 MB/s | 3.5 MB     00:00    
AnolisOS-8 - PowerTools                                                                15 MB/s | 2.2 MB     00:00    
Package anolis-release-8.2-9.an8.x86_64 is already installed.
Dependencies resolved.
======================================================================================================================
 Package                          Architecture            Version                       Repository               Size
======================================================================================================================
Upgrading:
 anolis-gpg-keys                  noarch                  8.5-2.an8                     BaseOS                   11 k
 anolis-release                   x86_64                  8.5-2.an8                     BaseOS                   16 k
 anolis-repos                     x86_64                  8.5-2.an8                     BaseOS                   10 k

Transaction Summary
======================================================================================================================
Upgrade  3 Packages

Total download size: 37 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): anolis-repos-8.5-2.an8.x86_64.rpm                                              189 kB/s |  10 kB     00:00    
(2/3): anolis-gpg-keys-8.5-2.an8.noarch.rpm                                           193 kB/s |  11 kB     00:00    
(3/3): anolis-release-8.5-2.an8.x86_64.rpm                                            240 kB/s |  16 kB     00:00    
----------------------------------------------------------------------------------------------------------------------
Total                                                                                 542 kB/s |  37 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                              1/1 
  Running scriptlet: anolis-gpg-keys-8.5-2.an8.noarch                                                             1/1 
  Upgrading        : anolis-gpg-keys-8.5-2.an8.noarch                                                             1/6 
  Upgrading        : anolis-release-8.5-2.an8.x86_64                                                              2/6 
  Upgrading        : anolis-repos-8.5-2.an8.x86_64                                                                3/6 
warning: /etc/yum.repos.d/AnolisOS-AppStream.repo created as /etc/yum.repos.d/AnolisOS-AppStream.repo.rpmnew
warning: /etc/yum.repos.d/AnolisOS-BaseOS.repo created as /etc/yum.repos.d/AnolisOS-BaseOS.repo.rpmnew
warning: /etc/yum.repos.d/AnolisOS-DDE.repo created as /etc/yum.repos.d/AnolisOS-DDE.repo.rpmnew
warning: /etc/yum.repos.d/AnolisOS-Plus.repo created as /etc/yum.repos.d/AnolisOS-Plus.repo.rpmnew
warning: /etc/yum.repos.d/AnolisOS-PowerTools.repo created as /etc/yum.repos.d/AnolisOS-PowerTools.repo.rpmnew

  Cleanup          : anolis-release-8.2-9.an8.x86_64                                                              4/6 
  Cleanup          : anolis-repos-8.2-9.an8.x86_64                                                                5/6 
  Cleanup          : anolis-gpg-keys-8.2-9.an8.noarch                                                             6/6 
  Running scriptlet: anolis-gpg-keys-8.2-9.an8.noarch                                                             6/6 
  Verifying        : anolis-gpg-keys-8.5-2.an8.noarch                                                             1/6 
  Verifying        : anolis-gpg-keys-8.2-9.an8.noarch                                                             2/6 
  Verifying        : anolis-release-8.5-2.an8.x86_64                                                              3/6 
  Verifying        : anolis-release-8.2-9.an8.x86_64                                                              4/6 
  Verifying        : anolis-repos-8.5-2.an8.x86_64                                                                5/6 
  Verifying        : anolis-repos-8.2-9.an8.x86_64                                                                6/6 

Upgraded:
  anolis-gpg-keys-8.5-2.an8.noarch        anolis-release-8.5-2.an8.x86_64        anolis-repos-8.5-2.an8.x86_64       

Complete!
[root@iZbp1gzcs80c5y41ujrpmiZ ~]# cat /etc/anolis-release
Anolis OS release 8.5