hwclock is out of sync on multi-node system

Bug #2043224 reported by Takamasa Takenaka
6
This bug affects 1 person
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to stx-puppet (master)

Reviewed: https://review.opendev.org/c/starlingx/stx-puppet/+/900611
Committed: https://opendev.org/starlingx/stx-puppet/commit/a4b472162468797118a9888edd12c8c68634df51
Submitter: "Zuul (22348)"
Branch: master

commit a4b472162468797118a9888edd12c8c68634df51
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:
    PASS: Set hardware clock different from controller-0
          in each node and fresh install DX,Standard,
          Storage,DC. Enter each node after installation
          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: I29caf94eaeeed366e28069908383eac0577e9fc0
    Signed-off-by: Takamasa Takenaka <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.9.0 stx.config
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.