查看问题详情

编号项目分类查看权限最后更新
0000018Anolis OS 8public2021-03-31 17:38
报告员wb-zmy745940 分派给ZhangBinChen  
优先级normal严重性minor出现频率always
状态 resolved处理状况fixed 
产品版本8.2-rc1 
目标版本8.2-rc2 
标题0000018: [Anolis 8.2-RC1-4.18-x86/aarch64]系统时间不正确,/etc/chrony.conf未配置,无法同步时间
描述[缺陷描述]:

系统时间不正确,比正常时间快8个小时,chronyd服务正常,/etc/chrony.conf文件未配置,无法同步时间



# date
Thu Mar 11 04:04:34 CST 2021
# hwclock --show
2021-03-11 04:04:37.452898+08:00

# timedatectl status
               Local time: Thu 2021-03-11 03:46:09 CST
           Universal time: Wed 2021-03-10 19:46:09 UTC
                 RTC time: Wed 2021-03-10 19:46:09
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
              NTP service: active
          RTC in local TZ: no
# systemctl status chronyd
● chronyd.service - NTP client/server
   Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-03-11 02:42:23 CST; 1h 4min ago
     Docs: man:chronyd(8)
           man:chrony.conf(5)
  Process: 34432 ExecStartPost=/usr/libexec/chrony-helper update-daemon (code=exited, status=0/SUCCESS)
  Process: 34426 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 34430 (chronyd)
    Tasks: 1 (limit: 101368)
   Memory: 1.3M
   CGroup: /system.slice/chronyd.service
           └─34430 /usr/sbin/chronyd



[重现概率]

必现



[重现环境]

Host:虚拟机 ,x86

OS:Anolis OS release 8.2

kernel:4.18.0-193.el8.x86_64



# 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:  1
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
Stepping:            7
CPU MHz:             2500.000
BogoMIPS:            5000.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            36608K
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 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves avx512_vnni



[重现步骤]:



[期望结果]:

date查看的系统时间正确



[实际结果]:

时间不正确,比当前时间快8h



[原因定位]:

配置anolis的/etc/chrony.conf文件后,可同步时间



[修复建议]: 
标签没加标签.

活动

ZhangBinChen

2021-03-31 17:35

开发人员   ~0000043

1,请确认安装时是否选择时区为 Asia/shanghai (默认是纽约时间,自然会出现八小时的差距)
2,请参照附件图片,选择时区安装验证。
TIME.png (299,253 字节)
date.png (3,733 字节)   
date.png (3,733 字节)   
chosetime.png (239,678 字节)   
chosetime.png (239,678 字节)   
neowk.png (240,320 字节)   
neowk.png (240,320 字节)   

问题历史

日期 用户名 字段 更改
2021-03-19 11:21 wb-zmy745940 新建问题
2021-03-19 11:21 wb-zmy745940 状态 新建 => 已分配
2021-03-19 11:21 wb-zmy745940 分派给 => ZhangBinChen
2021-03-19 22:44 swordantcs 产品版本 8.2 正式版 => 8.2-rc1
2021-03-19 22:45 swordantcs 目标版本 => 8.2-rc2
2021-03-31 17:35 ZhangBinChen 注释已添加: 0000043
2021-03-31 17:35 ZhangBinChen 添加了以下文件:: TIME.png
2021-03-31 17:35 ZhangBinChen 添加了以下文件:: date.png
2021-03-31 17:35 ZhangBinChen 添加了以下文件:: chosetime.png
2021-03-31 17:35 ZhangBinChen 添加了以下文件:: neowk.png
2021-03-31 17:38 ZhangBinChen 状态 已分配 => 已解决
2021-03-31 17:38 ZhangBinChen 处理状况 未处理 => 已修正
2021-04-02 03:22 swordantcs 分类 - aliyun-images => (无分类)