Bug 2136457 - [RDR] VRG reports lastGroupSyncTime as epoch instead of actual sync time
Summary: [RDR] VRG reports lastGroupSyncTime as epoch instead of actual sync time
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: csi-addons
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ODF 4.12.0
Assignee: Madhu Rajanna
QA Contact: Sidhant Agrawal
URL:
Whiteboard:
Depends On:
Blocks: 2139323
TreeView+ depends on / blocked
 
Reported: 2022-10-20 10:32 UTC by Sidhant Agrawal
Modified: 2023-08-09 16:37 UTC (History)
5 users (show)

Fixed In Version: 4.12.0-100
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2139323 (view as bug list)
Environment:
Last Closed: 2023-02-08 14:06:28 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github csi-addons kubernetes-csi-addons pull 260 0 None open replication: update LastSyncTime if its not nill 2022-10-31 03:20:19 UTC
Github red-hat-storage kubernetes-csi-addons pull 67 0 None open Bug 2136457: replication: update LastSyncTime if its not nil 2022-11-03 09:16:35 UTC

Description Sidhant Agrawal 2022-10-20 10:32:33 UTC
Description of problem (please be detailed as possible and provide log
snippests):
In RDR setup, with a workload consisting of ~20 PVC and Sync schedule of DRPolicy 5m,
observed that DRPC and VRG were reporting lastGroupSyncTime: "1970-01-01T00:00:00Z" even after 60+ minutes of application deployment.
This appears to be because of few VR having epoch as lastSyncTime.

For eg. See the following outputs showing lastGroupSyncTime and lastSyncTime from VRG's yaml output
------------
DRPC status:
...
Thu Oct 20 09:56:50 UTC 2022
NAMESPACE             NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION         PEER READY
busybox-workloads-1   busybox-drpc   158m   sagrawal-c1                                         Deployed       Completed     2022-10-20T07:19:18Z   1m0.039841994s   True
...

VRG status:
-------------------
Thu Oct 20 09:57:28 UTC 2022
NAMESPACE             NAME           DESIREDSTATE   CURRENTSTATE
busybox-workloads-1   busybox-drpc   primary        Primary
    lastGroupSyncTime: "2022-10-20T09:50:01Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:01Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
      lastSyncTime: "2022-10-20T09:50:01Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
      lastSyncTime: "2022-10-20T09:50:02Z"
      lastSyncTime: "2022-10-20T09:50:01Z"
      lastSyncTime: "2022-10-20T09:50:01Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
      lastSyncTime: "2022-10-20T09:55:01Z"
-------------------
Thu Oct 20 10:00:39 UTC 2022
NAMESPACE             NAME           DESIREDSTATE   CURRENTSTATE
busybox-workloads-1   busybox-drpc   primary        Primary
    lastGroupSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "2022-10-20T09:55:02Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
      lastSyncTime: "2022-10-20T10:00:00Z"
------------
Thu Oct 20 10:05:59 UTC 2022
NAMESPACE             NAME           DESIREDSTATE   CURRENTSTATE
busybox-workloads-1   busybox-drpc   primary        Primary
    lastGroupSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:00:01Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
------------
Thu Oct 20 10:10:14 UTC 2022
NAMESPACE             NAME           DESIREDSTATE   CURRENTSTATE
busybox-workloads-1   busybox-drpc   primary        Primary
    lastGroupSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:01Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
      lastSyncTime: "2022-10-20T10:05:00Z"
------------
Thu Oct 20 10:15:32 UTC 2022
NAMESPACE             NAME           DESIREDSTATE   CURRENTSTATE
busybox-workloads-1   busybox-drpc   primary        Primary
    lastGroupSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:10:00Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:00Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
      lastSyncTime: "2022-10-20T10:10:00Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
      lastSyncTime: "2022-10-20T10:10:01Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
      lastSyncTime: "1970-01-01T00:00:00Z"
      lastSyncTime: "2022-10-20T10:15:01Z"
-------------

Version of all relevant components (if applicable):
OCP: 4.12.0-0.nightly-2022-10-18-192348
ODF: 4.12.0-77
ACM: 2.6.1
Submariner: 0.13.0

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

Is there any workaround available to the best of your knowledge?

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
2

Can this issue reproducible?

Can this issue reproduce from the UI?

If this is a regression, please provide more details to justify this:

Steps to Reproduce:
1. Configure RDR setup
2. Deploy an application containing multiple PVCs/Pods 
3. Check VRG status at different intervals

Actual results:
VRG reports lastGroupSyncTime as epoch instead of actual time.

Expected results:
VRG should not randomly report lastGroupSyncTime as epoch.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.