https://github.com/RamenDR/ramen/pull/606
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
VERIFICATION COMMENTS:- Verified build - 4.12.0-122 ACM - 2.7