Bug 2120962

Summary: [RDR] When drpc status is already relocated, the status doesn't get into 'initiating' when another such operation is performed
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Aman Agrawal <amagrawa>
Component: odf-drAssignee: Benamar Mekhissi <bmekhiss>
odf-dr sub component: ramen QA Contact: kmanohar
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: medium    
Priority: unspecified CC: bmekhiss, kmanohar, muagarwa, ocs-bugs, odf-bz-bot, srangana
Version: 4.11   
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.12.0-114 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 14:06:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 4 Benamar Mekhissi 2022-11-13 14:49:32 UTC
https://github.com/RamenDR/ramen/pull/606

Comment 8 kmanohar 2022-12-19 09:30:41 UTC
VERIFICATION COMMENTS

Steps to Reproduce:
1. On a RDR setup, perform a relocate operation and monitor the drpc status. It changes from Deployed to Initiating to Relocating.
2. Wait for the relocate to complete.
3. Perform another relocate operation, this time the drpc status doesn't get into Initiating phase.


Actual results: When drpc status is already relocated, the status doesn't get into 'initiating' when another such operation is performed


Expected results: The status should get into Initiating phase before moving to Relocating.
Both the UI and yaml on CLI should reflect this change.


____________________________________________________________________________________________________________

drpc moves to relocate state on performing subsequent relocates

relocate 1:
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION          START TIME             DURATION   PEER READY
busybox-drpc   7d2h   kmanohar-clu1                        Relocate       Initiating     PreparingFinalSync   2022-12-19T08:47:12Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d2h   kmanohar-clu1                        Relocate       Relocating     MovingToSecondary   2022-12-19T08:47:12Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION          PEER READY
busybox-drpc   7d2h   kmanohar-clu1                        Relocate       Relocated      Completed     2022-12-19T08:47:12Z   2m57.930727287s   True

relocate 2:

NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION          START TIME             DURATION   PEER READY
busybox-drpc   7d2h   kmanohar-clu2                        Relocate       Initiating     PreparingFinalSync   2022-12-19T08:58:35Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION        START TIME             DURATION   PEER READY
busybox-drpc   7d2h   kmanohar-clu2                        Relocate       Relocating     RunningFinalSync   2022-12-19T08:58:35Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION   PEER READY
busybox-drpc   7d2h   kmanohar-clu2                        Relocate       Relocated      Cleaning Up   2022-12-19T08:58:35Z              False
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION          PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocated      Completed     2022-12-19T08:58:35Z   2m25.637827308s   True
[kmanohar@kmanohar ~]$ 

relocate 3:
oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION          START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Initiating     PreparingFinalSync   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION          START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Initiating     PreparingFinalSync   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION        START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     RunningFinalSync   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION        START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     RunningFinalSync   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     MovingToSecondary   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     MovingToSecondary   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     MovingToSecondary   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     MovingToSecondary   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION         START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocating     MovingToSecondary   2022-12-19T09:26:52Z              True
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION   PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocated      Cleaning Up   2022-12-19T09:26:52Z              False
[kmanohar@kmanohar ~]$ oc get drpc busybox-drpc -o wide
NAME           AGE    PREFERREDCLUSTER   FAILOVERCLUSTER   DESIREDSTATE   CURRENTSTATE   PROGRESSION   START TIME             DURATION         PEER READY
busybox-drpc   7d3h   kmanohar-clu2                        Relocate       Relocated      Completed     2022-12-19T09:26:52Z   3m8.396824614s   True

Comment 10 kmanohar 2022-12-20 06:35:20 UTC
VERIFICATION COMMENTS:-

Verified build - 4.12.0-122
ACM - 2.7