hwclock is out of sync on multi-node system
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Takamasa Takenaka |
Bug Description
Brief Description
-----------------
AIO-DX and further node shows wrong time after it deployed.
hwclock is never updated to the correct time.
Severity
--------
Minor
Steps to Reproduce
------------------
1: Prepare two nodes with BIOS RTC clock does not align correct time.
2: Install subcloud controller-0. Confirm RTC is corrected.
3: Add controller-1. Observe RTC.
Expected Behavior
------------------
In multi-node configuration, RTC in all nodes should be corrected
after deployment is done.
Actual Behavior
----------------
Only controller-0 is corrected. Other node's RTC is not corrected.
Reproducibility
---------------
Reproducible
System Configuration
-------
Any configuration with multi nodes.
Branch/Pull Time/Commit
-------
master
Last Pass
---------
N/A
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Developer Testing
Workaround
----------
After deployment is done, login node and run "hwclock -w".
Changed in starlingx: | |
status: | New → In Progress |
assignee: | nobody → Takamasa Takenaka (ttakenak) |
description: | updated |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 stx.config |
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/900611 /opendev. org/starlingx/ stx-puppet/ commit/ a4b472162468797 118a9888edd12c8 c68634df51
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit a4b472162468797 118a9888edd12c8 c68634df51
Author: Takamasa Takenaka <email address hidden>
Date: Fri Nov 10 09:19:11 2023 -0300
Add hwclock sync when datetime sync
Currently there is a mechanism to sync date time
with controller-0 during installation via ntp
but no process to synchronize date time to hardware
clock.
This fix will add hardware clock sync with system date
when system date is synced with controller-0.
Closes-bug: 2043224
Test Plan:
Storage, DC. Enter each node after installation
PASS: Set hardware clock different from controller-0
in each node and fresh install DX,Standard,
and confirm:
- Install finished successfully
- System date is synced with controller-0
- Hardware clock is synced with system date.
PASS: Set hardware clock different from controller-0
in hardware lab and fresh install. Confirm
system date and hardware clock are synced
with controller-0
PASS: Confirm in SX:
- When ntp is not set, hwclock does not sync
with system date
- When ntp is configured with reachable ntp
server, hwclock is updated with system date
- When ntp is configured with unreachable ntp
server, hwclock does not sync with system date
Change-Id: I29caf94eaeeed3 66e28069908383e ac0577e9fc0
Signed-off-by: Takamasa Takenaka <email address hidden>