Use this procedure to update time zone configuration in a geo-redundant deployment. It helps you complete the related installation workflow and confirm the deployment state before continuing.
From R25.1.2, you can update the timezone configuration. Previously, only the UTC time zone was supported. You can now configure Cisco Optical Network Controller in your preferred time zone.
For geo-redundant deployments, use the CLI command to update the timezone on each VM. Restart each VM using the steps described in this procedure to ensure a seamless change to the new timezone configuration. If the time zone configuration differs between VMs, a discrepancy can occur during failover or switchover.
Change the timezone only when necessary. Each timezone change requires a reboot of the VMs and services and can cause inconsistencies.
Apply the same time zone on all three VMs. Be sure to review these limitations before making changes.
Before you begin
-
Verify status of every pod is
Runningby using the kubectl get pods -A | grep onc command. This example shows a sample output where all pods are running.root@vm1-cluster1-node1:~# kubectl get pods -A | grep onc onc monitoring-0 2/2 Running 0 21m onc onc-alarm-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-apps-ui-service-6f95dfbc7c-60w87ne 2/2 Running 3 (51m ago) 3h6m onc onc-circuit-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-collector-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-config-service-02/2 Running 3 (51m ago) 3h6m onc onc-devicemanager-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-inventory-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-nbi-service-0 2/2 Running 3 (51m ago) 3h6m onc onc-netconfcollector-service-85bd7c89bf-qc8pf 2/2 Running 0 21m -
Verify that any previous switchover or failover has finished. Confirm that data replication across the active and standby nodes is complete. Use the sedo supercluster status to see the supercluster status and confirm that the DB replication status is streaming and DB Lag is 0.
sedo supercluster status ┌───────────────────────────────────────────────────────────────────────────────────────┐ │ Supercluster Status │ ├──────────────────┬────────────────────────────────────────────────────────────────────┤ │ Cluster ID │ QCTdDdt_rlRd9lgzRM15vSeb0r1tkLMkfCK4DoAy1aw │ │ Cluster Name │ cluster1 │ │ Cluster Role │ worker │ │ Peers │ cluster2 (worker, rabSbdhIWtq1qzhW1lZTm0Hu5_tIxOFZgDyWr5pac90) │ │ │ cluster3 (arbitrator, XxHjr5wMmDyiYW6jbvaCcGZW8VIasb4sBv8x0B15DYk) │ │ Mode │ Running │ │ Current Active │ cluster1 │ │ Previous Active │ cluster2 │ │ Standby Clusters │ cluster2 │ │ Last Switchover │ 2025-06-09 00:34:46.826 -0500 CDT │ │ Last Failover │ │ │ Last Seen │ controller-0.cluster3: 2025-06-09 00:58:23.636 -0500 CDT │ │ │ controller-0.cluster2: 2025-06-09 00:58:23.641 -0500 CDT │ │ │ controller-0.cluster1: 2025-06-09 00:58:23.641 -0500 CDT │ │ Last Peer Error │ │ │ Server Error │ │ │ DB Replication │ streaming │ │ DB Lag │ 0 bytes │ └──────────────────┴────────────────────────────────────────────────────────────────────┘
Follow these steps to configure time zone configuration in a geo-redundant deployment.
Procedure
SUMMARY STEPS
- Use SSH to access the three VMs and run this command.
- Reboot the standby cluster using the sudo reboot command.
- Verify the standby is up and running using these commands.
- Perform a manual switchover using the sedo supercluster switchover cluster command. Wait for the switchover and data replication to complete.
- Repeat steps 2 and 3 for the new standby VM and the arbitrator VM.
- If you want to make the original VM active, repeat Step 4.
DETAILED STEPS
| 1. | Use SSH to access the three VMs and run this command. sudo timedatectl set-timezone timezone-name Example:In this example, the time zone is set to JST.
A few valid time zones are:
|
|
| 2. | Reboot the standby cluster using the sudo reboot command. |
|
| 3. | Verify the standby is up and running using these commands.
Verify the time zone in one of the pods using these commands. See the offset after the time.
|
|
| 4. | Perform a manual switchover using the sedo supercluster switchover cluster command. Wait for the switchover and data replication to complete.
Make sure DB replication status is streaming and DB Lag is 0.
|
|
| 5. | Repeat steps 2 and 3 for the new standby VM and the arbitrator VM. |
|
| 6. | If you want to make the original VM active, repeat Step 4. |
Time zone configuration has been updated and Cisco Optical Network Controller web UI now displays time in the newly configured time zone.
This table shows screenshots highlighting the behavioral differences between Releases 25.1.1 and 25.1.2. In Release 25.1.2, the timestamp includes the time zone name and offset.
| Release 25.1.2 |
Release 25.1.1 |
|---|---|
|
|
|
|
|
|
This table summarizes how different system components handle time zones and describes related limitations.
| Component | Time Zone Behavior | Notes |
|---|---|---|
| Database (Alarms & Logs) | Stored in UTC | During time zone transitions (for example, switchover), the UI might temporarily show alarms with different time zone stamps until the system converges. |
| Cross-launch from Cisco Optical Network Controller | Offset preserved and IANA name may differ | Multiple IANA names can map to the same offset (for example, Asia/Colombo and Asia/Kolkata are both UTC +05:30). |
| TAPI Data and Notifications | UTC (+00:00) | Always uses UTC regardless of system time zone. |
| SNMP Traps | Epoch time | Time zone offset is not applied to epoch timestamps. |
| Developer Logs and Techdump | UTC | No time zone conversion applied. |